- COPYRIGHT AND LICENSE
use Net::SPID; # initialize our SPID object my $spid = Net::SPID->new(...); # get an IdP my $idp = $spid->get_idp($spid_session->idp_id); # generate a LogoutRequest my $logoutreq = $idp->logoutrequest( session => $spid_session, ); my $url = $logoutreq->redirect_url;
This class represents an outgoing LogoutRequest. You can use it to generate such a request in case you're initiating a logout procedure on behalf of your user.
This method generates the message in XML format.
my $xml = $logoutreq->xml;
This method returns the full URL of the Identity Provider where user should be redirected in order to initiate their Single Logout. In SAML words, this implements the HTTP-Redirect binding.
my $url = $logoutreq->redirect_url;
my $html = $logoutreq->post_form;
Alessandro Ranellucci <email@example.com>
This software is Copyright (c) 2018 by Alessandro Ranellucci.
This is free software, licensed under:
The (three-clause) BSD License