![]() |
![]()
| ![]() |
![]()
NAMENet::SAML2::Protocol::Assertion - SAML2 assertion object VERSIONversion 0.82 SYNOPSISmy $assertion = Net::SAML2::Protocol::Assertion->new_from_xml( xml => decode_base64($SAMLResponse) ); METHODSnew_from_xml( ... )Constructor. Creates an instance of the Assertion object, parsing the given XML to find the attributes, session and nameid. Arguments:
response_statusReturns the response status response_substatusSAML errors are usually "nested" ("Responder -> RequestDenied" for instance, means that the responder in this transaction (the IdP) denied the login request). For proper error message generation, both levels are needed. nameReturns the CN attribute, if provided. nameidReturns the NameID nameid_formatReturns the NameID Format nameid_name_qualifierReturns the NameID NameQualifier nameid_sp_name_qualifierReturns the NameID SPNameQualifier nameid_sp_provided_idReturns the NameID SPProvidedID authnstatementReturns the AuthnStatement authnstatement_authninstantReturns the AuthnStatement AuthnInstant authnstatement_sessionindexReturns the AuthnStatement SessionIndex authnstatement_subjectlocalityReturns the AuthnStatement SubjectLocality subjectlocality_addressReturns the SubjectLocality Address subjectlocality_dnsnameReturns the SubjectLocality DNSName authnstatement_authncontextReturns the AuthnContext for the AuthnStatement contextclass_authncontextclassrefReturns the ContextClass AuthnContextClassRef valid( $audience, $in_response_to )Returns true if this Assertion is currently valid for the given audience. Also accepts $in_response_to which it checks against the returned Assertion. This is very important for security as it helps ensure that the assertion that was received was for the request that was made. Checks the audience matches, and that the current time is within the Assertions validity period as specified in its Conditions element. successReturns true if the response status is a success, returns false otherwise. In case the assertion isn't successfull, the "response_status" and "response_substatus" calls can be use to see why the assertion wasn't successful. AUTHORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2025 by Venda Ltd, see the CONTRIBUTORS file for others. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|