Net::SPID::Session
version 0.11
use Net::SPID; # initialize our SPID object my $spid = Net::SPID->new(...); # parse a response from an Identity Provider my $assertion = eval { $spid->parse_assertion($saml_response_xml, $authnreq_id); }; # get a Net::SPID::Session object (serializable for later reuse, such as logout) my $session = $assertion->spid_session;
This class represents a SPID session. It encapsulates the assertion and its most important data (nameid, session number, attributes) for later reuse, including for logout purposes.
This class is not supposed to be initialized directly. It can be generated by calling the "spid_session" in Net::SPID::SAML::Assertion method.
This method returns the entityID of the Identity Provider which emitted the assertion (and to which any logout request must go).
This method returns the subject identifier as returned in the assertion.
This method returns the session identifier as returned in the assertion.
This method returns the raw XML of the assertion.
This method returns a hashref containing the attributes.
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.