NAME

Mojo::SAML::Names - Functions that qualify shortened names

DESCRIPTION

There are several types of names that come in fully qualified form that are too verbose for day to day use. This modules contains functions that provide qualified version of from short names.

FUNCTIONS

Mojo::SAML::Names exports no functions by default but exports any of the following upon request.

attrname_format

$name = attrname_format($name);
$name = attrname_format($name, $lax);

Qualify an attrname format used by SAML. Given a short or qualified name return the qualified name. If the fully qualified name is not known the function throws an exception unless the lax flag is true.

unspecified => 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified'
uri => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
basic => 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic'

binding

$name = binding($name);
$name = binding($name, $lax);

Qualify a binding used by SAML. Given a short or qualified name return the qualified name. If the fully qualified name is not known the function throws an exception unless the lax flag is true.

SOAP => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP'
'HTTP-Redirect' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
'HTTP-POST' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'

nameid_format

$name = nameid_format($name);
$name = nameid_format($name, $lax);

Qualify a nameid format used by SAML. Given a short or qualified name return the qualified name. If the fully qualified name is not known the function throws an exception unless the lax flag is true.

unspecified => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified'
emailAddress => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'
X509SubjectName => 'urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName'
WindowsDomainQualifiedName => 'urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName'
kerberos => 'urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos'
entity => 'urn:oasis:names:tc:SAML:2.0:nameid-format:entity'
persistent => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'
transient => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'