Net::SA...ssertion(3)
π Net::SAML2::Protocol::Assertion π
okay bestie, welcome to the User Contributed Perl Documentation for this SAML2 icon. Itβs version 0.85 and itβs giving iconic assertion-object energy, lowkey highkey essential, no cap. β¨
π NAME π
Net::SAML2::Protocol::Assertion β SAML2 assertion object π«Ά
β¨ VERSION β¨
version 0.85 β thatβs the version, periodt. π
π¦ SYNOPSIS π¦
my $assertion = Net::SAML2::Protocol::Assertion->new_from_xml(
xml => decode_base64($SAMLResponse)
);
π METHODS π
okay, methods section, main character energy, letβs go. π
π new_from_xml( ... ) π
Constructor. Creates an instance of the Assertion object, parsing the given XML to find the attributes, session and nameid. π§
Arguments:
xmlβ XML data.key_fileβ Optional but Required handling Encrypted Assertions. path to the SP's private key file that matches the SP's public certificate used by the IdP to Encrypt the response (or parts of the response).cacertβ path to the CA certificate for verification. Optional: This is only used for validating the certificate provided for a signed Assertion that was found when theEncryptedAssertionis decrypted.
While optional it is recommended for ensuring that the Assertion in an EncryptedAssertion is properly validated.
π₯ response_status π₯
Returns the response status. β
π response_substatus π
SAML 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. π
π name π
Returns the CN attribute, if provided.
πΈ nameid πΈ
Returns the NameID.
π¦ nameid_format π¦
Returns the NameID Format.
π nameid_name_qualifier π
Returns the NameID NameQualifier.
π§ nameid_sp_name_qualifier π§
Returns the NameID SPNameQualifier.
β nameid_sp_provided_id β
Returns the NameID SPProvidedID.
π authnstatement π
Returns the AuthnStatement.
β¨ authnstatement_authninstant β¨
Returns the AuthnStatement AuthnInstant.
π authnstatement_sessionindex π
Returns the AuthnStatement SessionIndex.
π authnstatement_subjectlocality π
Returns the AuthnStatement SubjectLocality.
π«Ά subjectlocality_address π«Ά
Returns the SubjectLocality Address.
π₯ subjectlocality_dnsname π₯
Returns the SubjectLocality DNSName.
π§ authnstatement_authncontext π§
Returns the AuthnContext for the AuthnStatement.
π contextclass_authncontextclassref π
Returns 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. β°
π success π
Returns true if the response status is a success, returns false otherwise. In case the assertion isn't successful, the response_status and response_substatus calls can be used to see why the assertion wasn't successful. π
πΈ AUTHOR πΈ
Timothy Legge <timlegge@gmail.com> π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 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. π«Ά
mwah π and thatβs the whole page, bestie β the footer energy is perl v5.42.2 and the date is 2026-02-11, with the manual name folded in as Net::SAML2::Protocol::Assertion (and the truncated footer version Net::SA...ssertion(3) if youβre keeping score). π
π¦ where this page comes from
- alpine 3.24: perl-net-saml2-doc 0.85-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms