NAME
Net::SPID::SAML::LogoutRequest
VERSION
version 0.11
SYNOPSIS
use Net::SPID;
# initialize our SPID object
my $spid = Net::SPID->new(...);
# get an IdP
my $idp = $spid->get_idp('https://www.prova.it/');
# generate a LogoutRequest
my $logoutreq = $idp->logoutrequest(
session => $spid_session,
);
my $url = $logoutreq->redirect_url;
# parse a LogoutRequest
my $logutreq = $spid->parse_logoutrequest;
ABSTRACT
This class represents a LogoutRequest. You may need to generate this request in case you're initiating a logout procedure on behalf of your user, or you may need to parse a logout request in case the user initiated a logout procedure elsewhere and an Identity Provider is requesting logout to you.
CONSTRUCTOR
This class is not supposed to be instantiated directly. You can get one by calling "logoutrequest" in Net::SPID::SAML::IdP or "parse_logoutrequest" in Net::SPID::SAML.
METHODS
xml
This method returns the raw message in XML format (signed).
my $xml = $logoutreq->xml;
redirect_url
This method returns the full URL of the Identity Provider where user should be redirected in order to initiate their Single Sign-On. In SAML words, this implements the HTTP-Redirect binding.
my $url = $logoutreq->redirect_url;
AUTHOR
Alessandro Ranellucci <aar@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018 by Alessandro Ranellucci.
This is free software, licensed under:
The (three-clause) BSD License