Net::SPID::SAML::In::LogoutResponse
version 0.15
use Net::SPID; # initialize our SPID object my $spid = Net::SPID->new(...); # parse a LogoutResponse my $logoutres = $spid->parse_logoutresponse($payload, $url, $in_response_to);
This class represents an incoming LogoutResponse. You can use this to parse the response coming from the Identity Provider after you sent a LogoutRequest for a SP-initiated logout.
This class is not supposed to be instantiated directly. You can get one by calling "parse_logoutresponse" in Net::SPID::SAML.
This method returns the raw message in XML format.
my $xml = $logoutres->xml;
This method performs validation of the incoming message according to the SPID rules. In case of success it returns a true value; in case of failure it will die with the relevant error.
eval { $logoutres->validate(in_response_to => $logout_req_ID) }; if ($@) { warn "Bad LogoutResponse: $@"; }
The in_response_to argument is required in order to perform the mandatory security check.
in_response_to
This method returns success, failure or partial according to the status code returned by the Identity Provider.
my $result = $logoutres->status;
Alessandro Ranellucci <aar@cpan.org>
This software is Copyright (c) 2018 by Alessandro Ranellucci.
This is free software, licensed under:
The (three-clause) BSD License
To install Net::SPID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SPID
CPAN shell
perl -MCPAN -e shell install Net::SPID
For more information on module installation, please visit the detailed CPAN module installation guide.