NAME
Net::SAML2::Protocol::Artifact - SAML2 artifact object
VERSION
version 0.80
SYNOPSIS
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();
METHODS
new_from_xml( ... )
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
-
XML data
response
Returns the response
logout_response
Returns the logoutresponse
get_response ( )
Returns the LogoutResponse or Response depending on which is defined
AUTHORS
Chris Andrews <chrisa@cpan.org>
Timothy Legge <timlegge@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 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.