Load correct authentication module for authLogout (#LEMONDLAP-19)
This commit is contained in:
parent
8663fd29e9
commit
82b4ea080e
@ -1392,8 +1392,20 @@ sub controlExistingSession {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Call authentication logout
|
# Call logout for the module used to authenticate
|
||||||
|
if ( $h->{'_auth'} ne $self->get_module('auth') ) {
|
||||||
|
$self->loadModule(
|
||||||
|
"Lemonldap::NG::Portal::Auth" . $h->{_auth} );
|
||||||
|
eval {
|
||||||
|
$self->{error} =
|
||||||
|
$self->_sub( "Lemonldap::NG::Portal::Auth"
|
||||||
|
. $h->{_auth}
|
||||||
|
. "::authLogout" );
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
eval { $self->{error} = $self->_sub('authLogout'); };
|
eval { $self->{error} = $self->_sub('authLogout'); };
|
||||||
|
}
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->lmLog( "Error when calling authLogout: $@",
|
$self->lmLog( "Error when calling authLogout: $@",
|
||||||
'debug' );
|
'debug' );
|
||||||
@ -1401,7 +1413,7 @@ sub controlExistingSession {
|
|||||||
return $self->{error} if $self->{error} > 0;
|
return $self->{error} if $self->{error} > 0;
|
||||||
|
|
||||||
# Collect logout services and build hidden iFrames
|
# Collect logout services and build hidden iFrames
|
||||||
if ( defined $self->{logoutServices} ) {
|
if ( %{ $self->{logoutServices} } ) {
|
||||||
|
|
||||||
$self->lmLog(
|
$self->lmLog(
|
||||||
"Create iFrames to forward logout to services",
|
"Create iFrames to forward logout to services",
|
||||||
|
Loading…
Reference in New Issue
Block a user