- COPYRIGHT AND LICENSE
my $redirect = Net::SAML2::Binding::Redirect->new( key => '/path/to/SPsign-nopw-key.pem', # Service Provider (SP) private key url => $sso_url, # Service Provider Single Sign Out URL param => 'SAMLRequest' OR 'SAMLResponse', # Type of request cert => '/path/to/IdP-cert.pem' # Service Provider (SP) certificate ); my $url = $redirect->sign($authnreq); my $ret = $redirect->verify($url);
Constructor. Creates an instance of the Redirect binding.
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.
Original Author: Chris Andrews <firstname.lastname@example.org>
This software is copyright (c) 2020 by Chris Andrews and Others; in detail:
Copyright 2010-2011 Chris Andrews 2012 Peter Marschall 2016 Jeff Fearn 2020 Timothy Legge
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.