Net::SPID::SAML::Out::LogoutResponse
version 0.15
use Net::SPID; # generate a LogoutResponse my $logoutres = $idp->logoutresponse( status => 'success', in_response_to => $logoutreq->id, ); my $url = $logoutres->redirect_url;
This class represents an outgoing LogoutResponse. You need to craft such a response in case you received a LogoutRequest from the Identity Provider, thus during an IdP-initiated logout.
This class is not supposed to be instantiated directly. You can get one by calling "logoutresponse" in Net::SPID::SAML::IdP on the Net::SPID::SAML::IdP object or by calling "make_response" in Net::SPID::SAML::In::LogoutRequest on the Net::SPID::SAML::In::LogoutRequest.
This method returns the raw message in XML format (signed).
my $xml = $logoutreq->xml;
This method returns the full URL of the Identity Provider where user should be redirected in order to continue their Single Logout. In SAML words, this implements the HTTP-Redirect binding.
my $url = $logoutres->redirect_url;
This method returns an HTML page with a JavaScript auto-post command that submits the request to the Identity Provider in order to complete their Single Logout. In SAML words, this implements the HTTP-POST binding.
my $html = $logoutres->post_form;
This method parses the status code and returns success, partial or 0.
success
partial
0
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.