Net::SAML2::Protocol::Artifact - Net::SAML2::Protocol::Artifact - SAML2 artifact object
version 0.66
my $artifact = Net::SAML2::Protocol::Artifact->new_from_xml( xml => Net::SAML2::Binding::SOAP->request( Net::SAML2::SP->artifact_request( $art_url, $artifact )->as_xml) ); or my $request = Net::SAML2::SP->artifact_request($art_url, $artifact)->as_xml; my soap_response = Net::SAML2::Binding::SOAP->request($request); my $artifact = Net::SAML2::Protocol::Artifact->new_from_xml(soap_response); # get_response returns the Response or LogoutResponse my art_response = $artifact->get_response();
Net::SAML2::Protocol::Artifact - SAML2 artifact object
Constructor. Creates an instance of the Artifact object, parsing the given XML to find the response and logout_response should they exist as well as the issuer, issue_instant and in_response_to.
Arguments:
XML data
Returns the response
Returns the logoutresponse
Returns true if the Response's status is Success.
Returns the LogoutResponse or Response depending on which is defined
Chris Andrews <chrisa@cpan.org>
Timothy Legge <timlegge@gmail.com>
This software is copyright (c) 2023 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.
To install Net::SAML2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SAML2
CPAN shell
perl -MCPAN -e shell install Net::SAML2
For more information on module installation, please visit the detailed CPAN module installation guide.