Authen::NZigovt::ResolutionResponse - Encapsulates the response from the IdP to the artifact resolution request
This package is used by the Authen::NZigovt::ServiceProvider to represent the response received from the Identity Provider.
is_error methods can be used to determine whether the user's logon was successful.
the user's FLT can be retrieved using the
the URN identifying the exact error can be determined using the
Convenience methods are also provided for identifying common error codes that you might want to handle (see:
Should not be called directly.
resolve_artifact method on the service provider object.
The raw XML response from the IdP. Useful for logging and diagnostics.
The 'StatusCode' 'Value' (most specific if more than one) in the response from the IdP.
You probably want to use the convenience methods (such as
is_cancel) rather than querying this directly although in the case of errors you will want to log this value.
In some error cases the IdP will return a human readable message relating to the error condition. If provided, you should include it in the error screen you display to your users. This routine will return an empty string if the response contained no message.
Returns true if the artifact resolution was successful and an FLT is available. Returns false otherwise.
Returns true if the artifact resolution was not successful. Returns false otherwise.
Returns true if the igovt logon service timed out waiting for the user to enter their account details. After this error, it is safe to present the user with a "try again" link.
Returns true if the user selected 'Cancel' or 'Return to agency site' rather than logging in. After this error, it is safe to present the user with a "try again" link.
Returns true if the logon was successful but the user's igovt logon account has not been associated with this service provider (agency web site).
This situation will only occur if the original authentication request specified a false value for the
Agency sites which use a separate flow for the initial sign-up process will need to handle this error.
If the artifact resolution was successful, use this method to retrieve the user's FLT - a token uniquely identifying the user.
The URN indicating the logon strength returned by the IdP.
Note: If you have specific logon strength requirements,
you should specify them using the
strength_match options when calling the service provider's
The following methods are used by the service provider while setting up the response object and are not intended for use by the calling application.
See Authen::NZigovt for documentation index.
Copyright (c) 2010-2011 the New Zealand Electoral Enrolment Centre
Written by Grant McLean <email@example.com>
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.