Net::SAML2::Binding::Redirect
version 0.10
my $redirect = Net::SAML2::Binding::Redirect->new( key => 'sign-nopw-cert.pem', url => $sso_url, param => 'SAMLRequest', cacert => '/path/to/cac-cert.pem' ); my $url = $redirect->sign($authnreq); # or my $redirect = Net::SAML2::Binding::Redirect->new( cert => $idp_cert, param => 'SAMLResponse', ); my $ret = $redirect->verify($url);
Constructor. Creates an instance of the Redirect binding.
Arguments:
signing key (for creating Redirect URLs)
IdP's signing cert (for verifying Redirect URLs)
IdP's SSO service url for the Redirect binding
query param name to use (SAMLRequest, SAMLResponse)
Signs the given request, and returns the URL to which the user's browser should be redirected.
Accepts an optional RelayState parameter, a string which will be returned to the requestor when the user returns from the authentication process with the IdP.
Decode a Redirect binding URL.
Verifies the signature on the response.
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.