2010-10-03 10:25:40 +02:00
|
|
|
##@file
|
2010-10-02 17:45:10 +02:00
|
|
|
# SAML Metadata object for Lemonldap::NG
|
2010-01-21 18:27:43 +01:00
|
|
|
|
|
|
|
##@class
|
|
|
|
# SAML Metadata object for Lemonldap::NG
|
|
|
|
package Lemonldap::NG::Common::Conf::SAML::Metadata;
|
|
|
|
|
|
|
|
use strict;
|
2016-12-28 19:38:03 +01:00
|
|
|
use Mouse;
|
2010-03-15 17:59:13 +01:00
|
|
|
use Crypt::OpenSSL::RSA;
|
2010-05-31 16:57:34 +02:00
|
|
|
use Crypt::OpenSSL::X509;
|
2010-02-05 16:48:53 +01:00
|
|
|
use HTML::Template;
|
2010-03-15 17:59:13 +01:00
|
|
|
use MIME::Base64;
|
2010-01-21 18:27:43 +01:00
|
|
|
use Safe;
|
2010-03-26 12:19:07 +01:00
|
|
|
use Encode;
|
2010-01-21 18:27:43 +01:00
|
|
|
|
2019-04-05 09:54:43 +02:00
|
|
|
our $VERSION = '2.0.3';
|
2010-01-21 18:27:43 +01:00
|
|
|
|
2016-12-28 19:38:03 +01:00
|
|
|
my $dataStart = tell(DATA);
|
2010-01-22 17:32:57 +01:00
|
|
|
|
2010-02-05 16:48:53 +01:00
|
|
|
## @method public string serviceToXML
|
|
|
|
# Return all SAML parameters in well formated XML format, corresponding to
|
|
|
|
# SAML 2 description.
|
|
|
|
# @return string
|
|
|
|
sub serviceToXML {
|
2019-02-27 18:05:35 +01:00
|
|
|
my ( $self, $conf, $type ) = @_;
|
2010-08-18 11:49:55 +02:00
|
|
|
|
2016-12-28 19:38:03 +01:00
|
|
|
seek DATA, $dataStart, 0;
|
|
|
|
my $s = join '', <DATA>;
|
2010-02-05 16:48:53 +01:00
|
|
|
my $template = HTML::Template->new(
|
2016-12-28 19:38:03 +01:00
|
|
|
scalarref => \$s,
|
2010-02-05 16:48:53 +01:00
|
|
|
die_on_bad_params => 0,
|
|
|
|
cache => 0,
|
2010-02-08 16:27:20 +01:00
|
|
|
);
|
|
|
|
|
2010-02-05 16:48:53 +01:00
|
|
|
# Automatic parameters
|
|
|
|
my @param_auto = qw(
|
2010-02-08 16:27:20 +01:00
|
|
|
samlEntityID
|
|
|
|
samlOrganizationName
|
|
|
|
samlOrganizationDisplayName
|
|
|
|
samlOrganizationURL
|
|
|
|
);
|
|
|
|
|
2019-03-07 18:22:16 +01:00
|
|
|
if ( $type and $type eq 'idp' ) {
|
|
|
|
$template->param( 'hideSPMetadata', 1 );
|
2019-02-27 18:05:35 +01:00
|
|
|
}
|
|
|
|
|
2019-03-07 18:22:16 +01:00
|
|
|
if ( $type and $type eq 'sp' ) {
|
|
|
|
$template->param( 'hideIDPMetadata', 1 );
|
2019-02-27 18:05:35 +01:00
|
|
|
}
|
|
|
|
|
2010-02-08 16:27:20 +01:00
|
|
|
foreach (@param_auto) {
|
2010-08-18 11:49:55 +02:00
|
|
|
$template->param( $_, $self->getValue( $_, $conf ) );
|
2010-02-05 16:48:53 +01:00
|
|
|
}
|
2010-02-08 16:27:20 +01:00
|
|
|
|
2019-02-27 15:47:44 +01:00
|
|
|
# When asked to provide only IDP metadata, take into account EntityID override
|
|
|
|
if ( $type eq "idp" and $conf->{samlOverrideIDPEntityID} ) {
|
|
|
|
$template->param( 'samlEntityID', $conf->{samlOverrideIDPEntityID} );
|
|
|
|
}
|
|
|
|
|
2010-05-27 14:39:32 +02:00
|
|
|
# Boolean parameters
|
|
|
|
my @param_boolean = qw(
|
|
|
|
samlSPSSODescriptorAuthnRequestsSigned
|
2010-05-31 12:37:43 +02:00
|
|
|
samlSPSSODescriptorWantAssertionsSigned
|
2010-05-27 14:39:32 +02:00
|
|
|
samlIDPSSODescriptorWantAuthnRequestsSigned
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach (@param_boolean) {
|
2010-08-18 11:49:55 +02:00
|
|
|
$template->param( $_, $self->getValue( $_, $conf ) ? 'true' : 'false' );
|
2010-05-27 14:39:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Format public keys
|
2010-03-15 17:59:13 +01:00
|
|
|
my @param_keys = qw(
|
2010-06-08 18:20:17 +02:00
|
|
|
samlServicePublicKeySig
|
|
|
|
samlServicePublicKeyEnc
|
2010-03-15 17:59:13 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
foreach (@param_keys) {
|
|
|
|
my $str = '';
|
2010-08-18 11:49:55 +02:00
|
|
|
my $val = $self->getValue( $_, $conf );
|
2010-06-21 17:29:59 +02:00
|
|
|
|
2010-06-08 18:20:17 +02:00
|
|
|
# A default value for samlServicePublicKeyEnc parameter
|
|
|
|
if ( $_ =~ /samlServicePublicKeyEnc/ ) {
|
|
|
|
unless ( $val && length $val gt 0 ) {
|
|
|
|
$val = $conf->{samlServicePublicKeySig};
|
|
|
|
}
|
|
|
|
}
|
2010-06-21 17:29:59 +02:00
|
|
|
|
2010-06-08 18:20:17 +02:00
|
|
|
# Generate XML
|
|
|
|
if ( defined $val && length $val gt 0 ) {
|
2010-06-21 17:29:59 +02:00
|
|
|
|
2010-05-31 16:57:34 +02:00
|
|
|
# Public Key ?
|
2010-06-08 18:20:17 +02:00
|
|
|
if ( $val =~ /^-----BEGIN PUBLIC KEY-----/
|
2010-06-21 17:29:59 +02:00
|
|
|
and my $rsa_pub = Crypt::OpenSSL::RSA->new_public_key($val) )
|
2010-03-15 17:59:13 +01:00
|
|
|
{
|
|
|
|
my @params = $rsa_pub->get_key_parameters();
|
2010-03-20 18:14:28 +01:00
|
|
|
my $mod = encode_base64( $params[0]->to_bin() );
|
|
|
|
my $exp = encode_base64( $params[1]->to_bin() );
|
|
|
|
$str =
|
2010-05-31 16:57:34 +02:00
|
|
|
'<ds:KeyValue>' . "\n\t"
|
|
|
|
. '<RSAKeyValue xmlns="http://www.w3.org/2000/09/xmldsig#">'
|
|
|
|
. "\n\t\t"
|
2010-06-21 17:29:59 +02:00
|
|
|
. '<Modulus>'
|
|
|
|
. $mod
|
|
|
|
. '</Modulus>'
|
|
|
|
. "\n\t\t"
|
|
|
|
. '<Exponent>'
|
|
|
|
. $exp
|
|
|
|
. '</Exponent>' . "\n\t"
|
2010-05-31 16:57:34 +02:00
|
|
|
. '</RSAKeyValue>' . "\n"
|
|
|
|
. '</ds:KeyValue>';
|
|
|
|
}
|
2010-06-21 17:29:59 +02:00
|
|
|
|
2010-05-31 16:57:34 +02:00
|
|
|
# Certificate ?
|
2010-06-08 18:20:17 +02:00
|
|
|
if ( $val =~ /^-----BEGIN CERTIFICATE-----/
|
2010-06-21 17:29:59 +02:00
|
|
|
and my $certificate =
|
|
|
|
Crypt::OpenSSL::X509->new_from_string($val) )
|
2010-05-31 16:57:34 +02:00
|
|
|
{
|
2010-05-31 17:07:46 +02:00
|
|
|
$certificate = $certificate->as_string();
|
|
|
|
$certificate =~ s/^-----BEGIN CERTIFICATE-----\n?//g;
|
|
|
|
$certificate =~ s/\n?-----END CERTIFICATE-----$//g;
|
2010-05-31 16:57:34 +02:00
|
|
|
$str =
|
|
|
|
'<ds:X509Data>' . "\n\t"
|
|
|
|
. '<ds:X509Certificate>' . "\n\t"
|
2010-05-31 17:07:46 +02:00
|
|
|
. $certificate
|
2010-05-31 16:57:34 +02:00
|
|
|
. '</ds:X509Certificate>' . "\n"
|
|
|
|
. '</ds:X509Data>';
|
2010-03-15 17:59:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
$template->param( $_, $str );
|
|
|
|
}
|
|
|
|
|
2010-02-05 16:48:53 +01:00
|
|
|
# Rebuilded parameters for SAML services
|
|
|
|
# A samlService value is formated like the following:
|
|
|
|
# "binding;location;responseLocation"
|
|
|
|
# The last value, responseLocation, is optional.
|
|
|
|
my @param_service = qw(
|
2010-05-28 13:51:53 +02:00
|
|
|
samlSPSSODescriptorSingleLogoutServiceHTTPRedirect
|
|
|
|
samlSPSSODescriptorSingleLogoutServiceHTTPPost
|
2010-02-08 16:27:20 +01:00
|
|
|
samlSPSSODescriptorSingleLogoutServiceSOAP
|
2010-05-28 13:51:53 +02:00
|
|
|
samlIDPSSODescriptorSingleSignOnServiceHTTPRedirect
|
|
|
|
samlIDPSSODescriptorSingleSignOnServiceHTTPPost
|
2010-07-01 11:58:39 +02:00
|
|
|
samlIDPSSODescriptorSingleSignOnServiceHTTPArtifact
|
2010-05-28 13:51:53 +02:00
|
|
|
samlIDPSSODescriptorSingleLogoutServiceHTTPRedirect
|
|
|
|
samlIDPSSODescriptorSingleLogoutServiceHTTPPost
|
2010-02-08 16:27:20 +01:00
|
|
|
samlIDPSSODescriptorSingleLogoutServiceSOAP
|
2010-05-31 12:37:43 +02:00
|
|
|
samlAttributeAuthorityDescriptorAttributeServiceSOAP
|
2010-02-08 16:27:20 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
foreach (@param_service) {
|
2010-08-18 11:49:55 +02:00
|
|
|
my @_tab = split( /;/, $self->getValue( $_, $conf ) );
|
2010-09-01 14:56:15 +02:00
|
|
|
$template->param( $_ . 'Binding', $_tab[0] );
|
|
|
|
$template->param( $_ . 'Location', $_tab[1] );
|
|
|
|
$template->param( $_ . 'ResponseLocation', $_tab[2] );
|
|
|
|
}
|
2010-02-08 16:27:20 +01:00
|
|
|
|
2010-02-05 16:48:53 +01:00
|
|
|
# Rebuilded parameters for SAML assertions
|
|
|
|
# A samlAssertion value is formated like the following:
|
|
|
|
# "default;index;binding;location"
|
|
|
|
my @param_assertion = qw(
|
2010-02-08 16:27:20 +01:00
|
|
|
samlSPSSODescriptorAssertionConsumerServiceHTTPArtifact
|
|
|
|
samlSPSSODescriptorAssertionConsumerServiceHTTPPost
|
2010-04-02 10:40:35 +02:00
|
|
|
samlSPSSODescriptorArtifactResolutionServiceArtifact
|
2010-02-08 16:27:20 +01:00
|
|
|
samlIDPSSODescriptorArtifactResolutionServiceArtifact
|
|
|
|
);
|
2010-04-14 17:37:57 +02:00
|
|
|
|
2010-02-08 16:27:20 +01:00
|
|
|
foreach (@param_assertion) {
|
2010-08-18 11:49:55 +02:00
|
|
|
my @_tab = split( /;/, $self->getValue( $_, $conf ) );
|
2010-09-01 14:56:15 +02:00
|
|
|
$template->param( $_ . 'Default', $_tab[0] ? 'true' : 'false' );
|
|
|
|
$template->param( $_ . 'Index', $_tab[1] );
|
|
|
|
$template->param( $_ . 'Binding', $_tab[2] );
|
|
|
|
$template->param( $_ . 'Location', $_tab[3] );
|
|
|
|
}
|
2010-02-08 16:27:20 +01:00
|
|
|
|
2010-02-05 16:48:53 +01:00
|
|
|
# Return the XML metadata.
|
|
|
|
return $template->output;
|
|
|
|
}
|
|
|
|
|
2010-08-18 11:49:55 +02:00
|
|
|
#@method string getValue(string key, hashref conf)
|
|
|
|
# Get the value for a metadata configuration key
|
|
|
|
# Replace #PORTAL# macro
|
|
|
|
# @param key Configuration key
|
|
|
|
# @param conf Configuration hash ref
|
|
|
|
# @return value
|
|
|
|
sub getValue {
|
2016-01-02 10:29:05 +01:00
|
|
|
my ( $self, $key, $conf ) = @_;
|
2010-08-18 11:49:55 +02:00
|
|
|
|
|
|
|
# Get portal value
|
2014-05-11 22:02:43 +02:00
|
|
|
my $portal = $conf->{portal} || "http://auth.example.com/";
|
2010-08-18 11:49:55 +02:00
|
|
|
$portal =~ s/\/$//;
|
|
|
|
|
|
|
|
# Try to get value for the given key in configuraiton
|
|
|
|
my $value = $conf->{$key};
|
|
|
|
return unless defined $value;
|
|
|
|
|
|
|
|
# Replace #PORTAL# macro
|
|
|
|
$value =~ s/#PORTAL#/$portal/g;
|
|
|
|
|
|
|
|
# Return value
|
|
|
|
return $value;
|
|
|
|
}
|
|
|
|
|
2010-01-21 18:27:43 +01:00
|
|
|
1;
|
2016-12-28 19:38:03 +01:00
|
|
|
__DATA__
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
|
|
|
|
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
|
|
|
|
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
|
|
|
entityID="<TMPL_VAR NAME="samlEntityID">">
|
|
|
|
|
2019-02-27 18:05:35 +01:00
|
|
|
<TMPL_UNLESS NAME="hideIDPMetadata">
|
2016-12-28 19:38:03 +01:00
|
|
|
<IDPSSODescriptor
|
|
|
|
WantAuthnRequestsSigned="<TMPL_VAR NAME="samlIDPSSODescriptorWantAuthnRequestsSigned">"
|
|
|
|
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
|
|
|
|
<KeyDescriptor use="signing">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeySig">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<KeyDescriptor use="encryption">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeyEnc">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<ArtifactResolutionService
|
|
|
|
isDefault="<TMPL_VAR NAME="samlIDPSSODescriptorArtifactResolutionServiceArtifactDefault">"
|
|
|
|
index="<TMPL_VAR NAME="samlIDPSSODescriptorArtifactResolutionServiceArtifactIndex">"
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorArtifactResolutionServiceArtifactBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorArtifactResolutionServiceArtifactLocation">" />
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceSOAPBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceSOAPLocation">" />
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPRedirectBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPRedirectLocation">"
|
|
|
|
<TMPL_IF NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPRedirectResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPRedirectResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPPostBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPPostLocation">"
|
|
|
|
<TMPL_IF NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPPostResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlIDPSSODescriptorSingleLogoutServiceHTTPPostResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:entity</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
|
|
|
|
<SingleSignOnService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPRedirectBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPRedirectLocation">"
|
|
|
|
<TMPL_IF NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPRedirectResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPRedirectResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<SingleSignOnService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPPostBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPPostLocation">"
|
|
|
|
<TMPL_IF NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPPostResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPPostResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<SingleSignOnService
|
|
|
|
Binding="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPArtifactBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPArtifactLocation">"
|
|
|
|
<TMPL_IF NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPArtifactResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlIDPSSODescriptorSingleSignOnServiceHTTPArtifactResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
</IDPSSODescriptor>
|
2019-02-27 18:05:35 +01:00
|
|
|
</TMPL_UNLESS>
|
2016-12-28 19:38:03 +01:00
|
|
|
|
2019-02-27 18:05:35 +01:00
|
|
|
<TMPL_UNLESS NAME="hideSPMetadata">
|
2016-12-28 19:38:03 +01:00
|
|
|
<SPSSODescriptor
|
|
|
|
AuthnRequestsSigned="<TMPL_VAR NAME="samlSPSSODescriptorAuthnRequestsSigned">"
|
|
|
|
WantAssertionsSigned="<TMPL_VAR NAME="samlSPSSODescriptorWantAssertionsSigned">"
|
|
|
|
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
|
|
|
|
<KeyDescriptor use="signing">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeySig">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<KeyDescriptor use="encryption">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeyEnc">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<ArtifactResolutionService
|
|
|
|
isDefault="<TMPL_VAR NAME="samlSPSSODescriptorArtifactResolutionServiceArtifactDefault">"
|
|
|
|
index="<TMPL_VAR NAME="samlSPSSODescriptorArtifactResolutionServiceArtifactIndex">"
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorArtifactResolutionServiceArtifactBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorArtifactResolutionServiceArtifactLocation">" />
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceSOAPBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceSOAPLocation">" />
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPRedirectBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPRedirectLocation">"
|
|
|
|
<TMPL_IF NAME="samlSPSSODescriptorSingleLogoutServiceHTTPRedirectResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPRedirectResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<SingleLogoutService
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPPostBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPPostLocation">"
|
|
|
|
<TMPL_IF NAME="samlSPSSODescriptorSingleLogoutServiceHTTPPostResponseLocation">
|
|
|
|
ResponseLocation="<TMPL_VAR NAME="samlSPSSODescriptorSingleLogoutServiceHTTPPostResponseLocation">"
|
|
|
|
</TMPL_IF>/>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:entity</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
|
|
|
|
<AssertionConsumerService
|
|
|
|
isDefault="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPArtifactDefault">"
|
|
|
|
index="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPArtifactIndex">"
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPArtifactBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPArtifactLocation">" />
|
|
|
|
<AssertionConsumerService
|
|
|
|
isDefault="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPPostDefault">"
|
|
|
|
index="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPPostIndex">"
|
|
|
|
Binding="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPPostBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlSPSSODescriptorAssertionConsumerServiceHTTPPostLocation">" />
|
|
|
|
</SPSSODescriptor>
|
2019-02-27 18:05:35 +01:00
|
|
|
</TMPL_UNLESS>
|
2016-12-28 19:38:03 +01:00
|
|
|
|
2019-02-27 18:05:35 +01:00
|
|
|
<TMPL_UNLESS NAME="hideIDPMetadata">
|
2016-12-28 19:38:03 +01:00
|
|
|
<AttributeAuthorityDescriptor
|
|
|
|
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
|
|
|
|
<KeyDescriptor use="signing">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeySig">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<KeyDescriptor use="encryption">
|
|
|
|
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
|
|
|
<TMPL_VAR NAME="samlServicePublicKeyEnc">
|
|
|
|
</ds:KeyInfo>
|
|
|
|
</KeyDescriptor>
|
|
|
|
<AttributeService
|
|
|
|
Binding="<TMPL_VAR NAME="samlAttributeAuthorityDescriptorAttributeServiceSOAPBinding">"
|
|
|
|
Location="<TMPL_VAR NAME="samlAttributeAuthorityDescriptorAttributeServiceSOAPLocation">"/>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:entity</NameIDFormat>
|
|
|
|
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat>
|
|
|
|
</AttributeAuthorityDescriptor>
|
2019-02-27 18:05:35 +01:00
|
|
|
</TMPL_UNLESS>
|
2019-04-03 14:15:16 +02:00
|
|
|
|
2016-12-28 19:38:03 +01:00
|
|
|
<Organization>
|
|
|
|
<OrganizationName xml:lang="en"><TMPL_VAR NAME="samlOrganizationName"></OrganizationName>
|
|
|
|
<OrganizationDisplayName xml:lang="en"><TMPL_VAR NAME="samlOrganizationDisplayName"></OrganizationDisplayName>
|
|
|
|
<OrganizationURL xml:lang="en"><TMPL_VAR NAME="samlOrganizationURL"></OrganizationURL>
|
|
|
|
</Organization>
|
|
|
|
</EntityDescriptor>
|
2010-01-21 18:27:43 +01:00
|
|
|
|