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::SP(3) User Contributed Perl Documentation Net::SAML2::SP(3)

Net::SAML2::SP - SAML Service Provider object

version 0.82

my $sp = Net::SAML2::SP->new(
issuer => 'http://localhost:3000',
url => 'http://localhost:3000',
cert => 'sign-nopw-cert.pem',
key => 'sign-nopw-key.pem', );

Constructor. Create an SP object.

Arguments:

The ID attribute used in the EntityDescription tag
Base for all SP service URLs
The error URI. Can be relative to the base URI or a regular URI
SP's identity URI.
Path to the signing certificate
Path to the private key for the signing certificate
Path to the public key that the IdP should use for encryption. This is used when generating the metadata.
Indicate that the key for signing is exclusively used for signing and not encryption and signing.
Path to the CA certificate for verification
Set the language for the "md:localizedNameType", defaults to "en".
SP organisation name
SP organisation display name
SP contact email address
SP organization url. This is optional and url will be used as in previous versions if this is not provided.
Specifies in the metadata whether the SP signs the AuthnRequest Optional (0 or 1) defaults to 1 (TRUE) if not specified.
Specifies in the metadata whether the SP wants the Assertion from the IdP to be signed Optional (0 or 1) defaults to 1 (TRUE) if not specified.
Sign the metadata, defaults to 1 (TRUE) if not specified.
The following option replaces the previous "slo_url_post", "slo_url_soap" and "slo_url_redirect" constructor parameters. The former options are mapped to this new structure.

This expects an array of hash refs where you define one or more Single Logout Services

  [
    {
        Binding => BINDING_HTTP_POST,
        Location => https://foo.example.com/your-post-endpoint,
    },
    {
        Binding => BINDING_HTTP_ARTIFACT,
        Location => https://foo.example.com/your-artifact-endpoint,
    }
  ]
    
The following option replaces the previous "acs_url_post" and "acs_url_artifact" constructor parameters. The former options are mapped to this new structure.

This expects an array of hash refs where you define one or more Assertion Consumer Services.

  [
    # Order decides the index if not supplied, else we assume you have an index
    {
        Binding => BINDING_HTTP_POST,
        Location => https://foo.example.com/your-post-endpoint,
        isDefault => 'false',
        # optionally
        index => 1,
    },
    {
        Binding => BINDING_HTTP_ARTIFACT,
        Location => https://foo.example.com/your-artifact-endpoint,
        isDefault => 'true',
        index => 2,
    }
  ]
    

Returns an AuthnRequest object created by this SP, intended for the given destination, which should be the identity URI of the IdP.

%params is a hash containing parameters valid for Net::SAML2::Protocol::AuthnRequest. For example:

my %params = (
force_authn => 1,
is_passive => 1,
)

my $authnreq = authn_request(
'https://keycloak.local:8443/realms/Foswiki/protocol/saml',
'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
%params
);

Returns a LogoutRequest object created by this SP, intended for the given destination, which should be the identity URI of the IdP.

Also requires the nameid (+format) and session to be logged out.

$params is a HASH reference for parameters to Net::SAML2::Protocol::LogoutRequest

$params = (
# name qualifier parameters from Assertion NameId
name_qualifier => "https://idp.shibboleth.local/idp/shibboleth"
sp_name_qualifier => "https://netsaml2-testapp.local"
);

Returns a LogoutResponse object created by this SP, intended for the given destination, which should be the identity URI of the IdP.

Also requires the status and the ID of the corresponding LogoutRequest.

Returns an ArtifactResolve request object created by this SP, intended for the given destination, which should be the identity URI of the IdP.

Returns a POST binding object for this SP, configured against the given IDP for Single Sign On. $param specifies the name of the query parameter involved - typically "SAMLRequest".

Returns a Redirect binding object for this SP, configured against the given IDP for Single Sign On. $param specifies the name of the query parameter involved - typically "SAMLRequest".

Returns a Redirect binding object for this SP, configured against the given IDP for Single Log Out. $param specifies the name of the query parameter involved - typically "SAMLRequest" or "SAMLResponse".

Returns a SOAP binding object for this SP, with a destination of the given URL and signing certificate.

XXX UA

Returns a POST binding object for this SP.

Generate the metadata XML document for this SP.

Get the key name for either the "signing" or "encryption" key

Returns the metadata XML document for this SP.

Return the assertion service which is the default

  • 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.