Net::SPID::SAML::In::LogoutRequest
version 0.13
use Net::SPID; # initialize our SPID object my $spid = Net::SPID->new(...); # parse a LogoutRequest my $logoutreq = $spid->parse_logoutrequest($payload, $url);
This class represents an incoming LogoutRequest. You can use this to parse a logout request in case the user initiated a logout procedure elsewhere and an Identity Provider is requesting logout to you.
This class is not supposed to be instantiated directly. You can get one by calling "parse_logoutrequest" in Net::SPID::SAML.
This method returns the raw message in XML format.
my $xml = $logoutreq->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 { $logoutreq->validate }; if ($@) { warn "Bad LogoutRequest: $@"; }
This is a shortcut for "logoutresponse" in Net::SPID::SAML::IdP. See its documentation for the required parameters (in_response_to is automatically supplied).
in_response_to
my $logoutres = $logoutreq->make_response( status => 'success', );
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.