AuthenRequest 

use Authen::NZigovt;

my $sp = Authen::NZigovt->class_for('service_provider')->new(
    conf_dir => $path_to_igovt_conf_dir,
);

my $req = $sp->new_request();

return [ 302, $req->as_url, '' ];