NAME

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

SYNOPSIS

my $idp = Net::SAML2::IdP->new_from_url($IDP);
my $sso_url = $idp->sso_url('urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect');

METHODS

new

Constructor

* entityID

new_from_url( url => $url, cacert => $cacert )

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

Dies if the metadata can't be retrieved.

new_from_xml( xml => $xml, cacert => $cacert )

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

sso_url($binding)

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

slo_url($binding)

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

art_url($binding)

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

cert($use)

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

binding($name)

Returns the full Binding URI for the given binding name. Includes this module's currently-supported bindings.

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.