Adapt user log in CAS issuer (#2244)
This commit is contained in:
parent
0b3908e6dc
commit
5d5eda9799
@ -14,7 +14,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
|
|||||||
PE_SENDRESPONSE
|
PE_SENDRESPONSE
|
||||||
);
|
);
|
||||||
|
|
||||||
our $VERSION = '2.0.8';
|
our $VERSION = '2.0.9';
|
||||||
|
|
||||||
extends 'Lemonldap::NG::Portal::Main::Issuer',
|
extends 'Lemonldap::NG::Portal::Main::Issuer',
|
||||||
'Lemonldap::NG::Portal::Lib::CAS';
|
'Lemonldap::NG::Portal::Lib::CAS';
|
||||||
@ -195,7 +195,7 @@ sub run {
|
|||||||
else {
|
else {
|
||||||
$self->userLogger->warn( 'User '
|
$self->userLogger->warn( 'User '
|
||||||
. $req->sessionInfo->{ $self->conf->{whatToTrace} }
|
. $req->sessionInfo->{ $self->conf->{whatToTrace} }
|
||||||
. " is not authorized to access to $service" );
|
. " is not authorized to access to $app" );
|
||||||
|
|
||||||
if ( $casAccessControlPolicy =~ /^(error)$/i ) {
|
if ( $casAccessControlPolicy =~ /^(error)$/i ) {
|
||||||
$self->logger->debug(
|
$self->logger->debug(
|
||||||
@ -213,9 +213,16 @@ sub run {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($app) {
|
||||||
$self->userLogger->notice( 'User '
|
$self->userLogger->notice( 'User '
|
||||||
. $req->sessionInfo->{ $self->conf->{whatToTrace} }
|
. $req->sessionInfo->{ $self->conf->{whatToTrace} }
|
||||||
. " is authorized to access to $service" );
|
. " is authorized to access to $app" );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$self->userLogger->notice( 'User '
|
||||||
|
. $req->sessionInfo->{ $self->conf->{whatToTrace} }
|
||||||
|
. " is redirected to $service" );
|
||||||
|
}
|
||||||
|
|
||||||
unless ($casServiceTicket) {
|
unless ($casServiceTicket) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user