Net::SAML2::IdP(3)
Okay bestie, welcome to the Net::SAML2::IdP(3) page β Perl docs, section 3, all about the SAML Identity Provider object. Buckle up, it's lowkey iconic π
β¨ NAME β¨
Net::SAML2::IdP β the SAML Identity Provider object, no cap. That's literally the whole vibe of this page π
π VERSION π
version 0.85 β periodt, that's the version β¨
π SYNOPSIS π
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');
Okay so quick heads-up, bestie: this uses LWP::UserAgent, which means environment variables may affect the use of https β see these:
PERL_LWP_SSL_CA_FILEandHTTPS_CA_FILEβhttps://metacpan.org/pod/LWP::UserAgent#SSL_ca_file-=%3E-$pathPERL_LWP_SSL_CA_PATHandHTTPS_CA_DIRβhttps://metacpan.org/pod/LWP::UserAgent#SSL_ca_path-=%3E-$path
π οΈ METHODS π οΈ
πΈ new( ) πΈ
Constructor, periodt.
entityid
π new_from_url( url => $url, cacert => $cacert, ssl_opts => {} ) π
Create an IdP object by retrieving the metadata at the given URL.
If the metadata can't be retrieved, it dies with the reason β no silent ghosting, bestie π
π¦ new_from_xml( xml => $xml, cacert => $cacert ) π¦
Constructor. Create an IdP object using the provided metadata XML document. Main character energy, honestly π
π sso_url( $binding ) π
Returns the url for the SSO service using the given binding. Binding name should be the full URI. Yes, full URI β don't try to be cute with shorthand, bestie π
π slo_url( $binding ) π
Returns the url for the Single Logout Service using the given binding. Binding name should be the full URI. The way that full URI matters? Highkey yes π¦
π§ art_url( $binding ) π§
Returns the url for the Artifact Resolution service using the given binding. Binding name should be the full URI. Artifact Resolution service, in the building π
π cert( $use ) π
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.
π binding( $name ) π
Returns the full Binding URI for the given binding name (i.e. "redirect" or "soap"). Includes this module's currently-supported bindings. So if you need to know what's supported, this is the vibe check πΈ
π format( $short_name ) π
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. Not me crying over undef π
π AUTHOR π
Timothy Legge <timlegge@gmail.com> β iconic author behavior π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 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. Slay, free software π«Ά
Cute sign-off, bestie: this page comes from perl v5.42.2, dated 2026-02-11, and it's Net::SAML2::IdP(3) β mwah πβ¨
π¦ where this page comes from
- alpine 3.24: perl-net-saml2-doc 0.85-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms