GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::SAML2::IdP(3) User Contributed Perl Documentation Net::SAML2::IdP(3)

Net::SAML2::IdP - SAML Identity Provider object

version 0.82

  my $idp = Net::SAML2::IdP->new_from_url(
        url => $url,
        cacert => $cacert,
        ssl_opts =>         # Optional options supported by LWP::Protocol::https
            {
                SSL_ca_file     => '/your/directory/cacert.pem',
                SSL_ca_path     => '/etc/ssl/certs',
                verify_hostname => 1,
            }
        );
  my $sso_url = $idp->sso_url('urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect');

Note that LWP::UserAgent is used which means that environment variables may affect the use of https see:

  • PERL_LWP_SSL_CA_FILE and HTTPS_CA_FILE <https://metacpan.org/pod/LWP::UserAgent#SSL_ca_file-=%3E-$path>
  • PERL_LWP_SSL_CA_PATH and HTTPS_CA_DIR <https://metacpan.org/pod/LWP::UserAgent#SSL_ca_path-=%3E-$path>

Constructor

Create an IdP object by retrieving the metadata at the given URL.

Dies if the metadata can't be retrieved with reason.

Constructor. Create an IdP object using the provided metadata XML document.

Returns the url for the SSO service using the given binding. Binding name should be the full URI.

Returns the url for the Single Logout Service using the given binding. Binding name should be the full URI.

Returns the url for the Artifact Resolution service using the given binding. Binding name should be the full URI.

Returns the IdP's certificates for the given use (e.g. "signing").

IdP's are generated from the metadata it is possible for multiple certificates to be contained in the metadata and therefore possible for them to be there to be multiple verified certs in $self->certs. At this point any certs in the IdP have been verified and are valid for the specified use. All certs are of type $use are returned.

Returns the full Binding URI for the given binding name (i.e. "redirect" or "soap"). Includes this module's currently-supported bindings.

Returns the full NameID Format URI for the given short name.

If no short name is provided, returns the URI for the default format, the one listed first by the IdP.

If no NameID formats were advertised by the IdP, returns undef.

  • Chris Andrews <chrisa@cpan.org>
  • Timothy Legge <timlegge@gmail.com>

This software is copyright (c) 2025 by Venda Ltd, see the CONTRIBUTORS file for others.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2025-05-27 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.