Net::SAML2::Object::Response − A response object
version 0.83
use
Net::SAML2::Object::Response;
my $xml = ...;
my $response =
Net::SAML2::Object::Response−>new_from_xml(xml
=> $xml);
if (!$response−>is_success) {
warn "Got a response but isn't successful";
my $status = $response−>status;
my $substatus = $response−>substatus;
warn "We got a $status back with the following sub
status $substatus";
}
else {
$response−>to_assertion(
# See Net::SAML2::Protocol::Assertion−>new_from_xml
for the other
# construction options
key_file => ...,
key_name => ...,
)
}
A generic response object to be able to deal with an response from the IdP. If the status is successful you can grab an assertion and continue your flow.
Returns the status of the response
Returns the sub status of the response
Returns the nodes of the assertion
Creates the response object based on the response XML
Stringify the object to the full response XML
Create a Net::SAML2::Protocol::Assertion from the response. See "new_from_xml" in Net::SAML2::Protocol::Assertion for more.
|
• |
Chris Andrews <[email protected]> |
|||
|
• |
Timothy Legge <[email protected]> |
This 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.