- COPYRIGHT AND LICENSE
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;
my $html = $logoutres->post_form;
This method parses the status code and returns
Alessandro Ranellucci <firstname.lastname@example.org>
This software is Copyright (c) 2018 by Alessandro Ranellucci.
This is free software, licensed under:
The (three-clause) BSD License