SAML: was set too late

This commit is contained in:
Clément Oudot 2010-03-26 16:47:17 +00:00
parent ba6bb76549
commit 7f91ef3c83

View File

@ -13,7 +13,6 @@ our @ISA = qw(Lemonldap::NG::Portal::_SAML);
our $VERSION = '0.01';
## @method void issuerDBInit()
# TODO
# Load and check SAML configuration
# @return Lemonldap::NG::Portal error code
sub issuerDBInit {
@ -48,17 +47,16 @@ sub issuerForUnAuthUser {
my $saml_sso_get_url_ret =
$self->getMetaDataURL( "samlIDPSSODescriptorSingleSignOnServiceHTTP", 2 );
if ( $url =~ /^($saml_sso_soap_url|$saml_sso_get_url)$/i )
{
$self->lmLog( "URL $url detected as an SSO request URL", 'debug' );
# Get HTTP request informations to know
# if we are receving SAML request or response
my $url = $self->url();
my $request_method = $self->request_method();
my $content_type = $self->content_type();
if ( $url =~ /^($saml_sso_soap_url|$saml_sso_get_url)$/i ) {
$self->lmLog( "URL $url detected as an SSO request URL", 'debug' );
# Check message
my ( $request, $response, $method, $relaystate, $artifact ) =
$self->checkMessage( $url, $request_method, $content_type );