SAML->CAS without Choice works now (#1461)
This commit is contained in:
parent
c814abaafe
commit
9a56584830
|
@ -10,8 +10,8 @@ BEGIN {
|
||||||
require 't/saml-lib.pm';
|
require 't/saml-lib.pm';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $maintests = 20;
|
my $maintests = 19;
|
||||||
my $debug = 'debug';
|
my $debug = 'error';
|
||||||
my ( $issuer, $proxy, $sp, $res );
|
my ( $issuer, $proxy, $sp, $res );
|
||||||
my %handlerOR = ( issuer => [], proxy => [], sp => [] );
|
my %handlerOR = ( issuer => [], proxy => [], sp => [] );
|
||||||
|
|
||||||
|
@ -139,7 +139,6 @@ SKIP: {
|
||||||
($query) = expectRedirection( $res,
|
($query) = expectRedirection( $res,
|
||||||
qr'^http://auth.idp.com/cas/login\?(service=http%3A%2F%2Fauth.proxy.com%2F.*)$'
|
qr'^http://auth.idp.com/cas/login\?(service=http%3A%2F%2Fauth.proxy.com%2F.*)$'
|
||||||
);
|
);
|
||||||
diag( "First bug: double issuerRequestsaml in query\n" . Dumper($res) );
|
|
||||||
|
|
||||||
# Follow redirection to CAS server
|
# Follow redirection to CAS server
|
||||||
switch ('issuer');
|
switch ('issuer');
|
||||||
|
@ -213,7 +212,6 @@ qr'^http://auth.idp.com/cas/login\?(service=http%3A%2F%2Fauth.proxy.com%2F.*)$'
|
||||||
),
|
),
|
||||||
'Post SAML response to SP'
|
'Post SAML response to SP'
|
||||||
);
|
);
|
||||||
skip( 'Bug found', 5 );
|
|
||||||
|
|
||||||
# Verify authentication on SP
|
# Verify authentication on SP
|
||||||
expectRedirection( $res, 'http://auth.sp.com' );
|
expectRedirection( $res, 'http://auth.sp.com' );
|
||||||
|
@ -248,16 +246,16 @@ sub issuer {
|
||||||
return LLNG::Manager::Test->new(
|
return LLNG::Manager::Test->new(
|
||||||
{
|
{
|
||||||
ini => {
|
ini => {
|
||||||
skipRenewConfirmation => 1,
|
skipRenewConfirmation => 1,
|
||||||
logLevel => $debug,
|
logLevel => $debug,
|
||||||
templatesDir => 'site/htdocs/static',
|
templatesDir => 'site/htdocs/static',
|
||||||
domain => 'idp.com',
|
domain => 'idp.com',
|
||||||
portal => 'http://auth.idp.com',
|
portal => 'http://auth.idp.com',
|
||||||
authentication => 'Demo',
|
authentication => 'Demo',
|
||||||
userDB => 'Same',
|
userDB => 'Same',
|
||||||
issuerDBCASActivation => 1,
|
issuerDBCASActivation => 1,
|
||||||
casAttr => 'uid',
|
casAttr => 'uid',
|
||||||
casAttributes => { cn => 'cn', uid => 'uid', },
|
casAttributes => { cn => 'cn', uid => 'uid', mail => 'mail', },
|
||||||
casAccessControlPolicy => 'none',
|
casAccessControlPolicy => 'none',
|
||||||
multiValuesSeparator => ';',
|
multiValuesSeparator => ';',
|
||||||
portalForceAuthnInterval => -1,
|
portalForceAuthnInterval => -1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user