|
|
@ -14,11 +14,12 @@ BEGIN { |
|
|
|
|
|
|
|
|
|
|
|
my $debug = 'error'; |
|
|
|
my $debug = 'error'; |
|
|
|
my ( $issuer, $res ); |
|
|
|
my ( $issuer, $res ); |
|
|
|
|
|
|
|
my $maintests = 6; |
|
|
|
|
|
|
|
|
|
|
|
SKIP: { |
|
|
|
SKIP: { |
|
|
|
eval "use Lasso"; |
|
|
|
eval "use Lasso"; |
|
|
|
if ($@) { |
|
|
|
if ($@) { |
|
|
|
skip 'Lasso not found'; |
|
|
|
skip 'Lasso not found', $maintests; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Initialization |
|
|
|
# Initialization |
|
|
@ -66,10 +67,11 @@ SKIP: { |
|
|
|
{ |
|
|
|
{ |
|
|
|
is( $value->textContent, 'Accents', 'Check Attribute' ); |
|
|
|
is( $value->textContent, 'Accents', 'Check Attribute' ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clean_sessions(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
clean_sessions(); |
|
|
|
count($maintests); |
|
|
|
done_testing(); |
|
|
|
done_testing( count() ); |
|
|
|
|
|
|
|
|
|
|
|
sub issuer { |
|
|
|
sub issuer { |
|
|
|
return LLNG::Manager::Test->new( { |
|
|
|
return LLNG::Manager::Test->new( { |
|
|
@ -80,12 +82,12 @@ sub issuer { |
|
|
|
authentication => 'Demo', |
|
|
|
authentication => 'Demo', |
|
|
|
userDB => 'Same', |
|
|
|
userDB => 'Same', |
|
|
|
issuerDBSAMLActivation => 1, |
|
|
|
issuerDBSAMLActivation => 1, |
|
|
|
samlSPMetaDataMacros => { |
|
|
|
samlSPMetaDataMacros => { |
|
|
|
'sp.com' => { |
|
|
|
'sp.com' => { |
|
|
|
extracted_sn => '(split(/\s/, $cn))[1]' |
|
|
|
extracted_sn => '(split(/\s/, $cn))[1]' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
samlSPMetaDataOptions => { |
|
|
|
samlSPMetaDataOptions => { |
|
|
|
'sp.com' => { |
|
|
|
'sp.com' => { |
|
|
|
samlSPMetaDataOptionsEncryptionMode => 'none', |
|
|
|
samlSPMetaDataOptionsEncryptionMode => 'none', |
|
|
|
samlSPMetaDataOptionsEnableIDPInitiatedURL => 1, |
|
|
|
samlSPMetaDataOptionsEnableIDPInitiatedURL => 1, |
|
|
@ -109,10 +111,10 @@ sub issuer { |
|
|
|
samlOrganizationName => "IDP", |
|
|
|
samlOrganizationName => "IDP", |
|
|
|
samlOrganizationURL => "http://www.idp.com/", |
|
|
|
samlOrganizationURL => "http://www.idp.com/", |
|
|
|
samlServicePrivateKeyEnc => saml_key_idp_private_enc, |
|
|
|
samlServicePrivateKeyEnc => saml_key_idp_private_enc, |
|
|
|
samlServicePrivateKeySig => saml_key_idp_private_sig, |
|
|
|
samlServicePrivateKeySig => saml_key_idp_private_sig, |
|
|
|
samlServicePublicKeyEnc => saml_key_idp_public_enc, |
|
|
|
samlServicePublicKeyEnc => saml_key_idp_public_enc, |
|
|
|
samlServicePublicKeySig => saml_key_idp_public_sig, |
|
|
|
samlServicePublicKeySig => saml_key_idp_public_sig, |
|
|
|
samlSPMetaDataXML => { |
|
|
|
samlSPMetaDataXML => { |
|
|
|
"sp.com" => { |
|
|
|
"sp.com" => { |
|
|
|
samlSPMetaDataXML => |
|
|
|
samlSPMetaDataXML => |
|
|
|
samlSPMetaDataXML( 'sp', 'HTTP-Redirect' ) |
|
|
|
samlSPMetaDataXML( 'sp', 'HTTP-Redirect' ) |
|
|
|