Fix CAS 1.0 validate method (#478)
This commit is contained in:
parent
e470818653
commit
eb9175d681
|
@ -121,6 +121,12 @@ sub issuerForUnAuthUser {
|
||||||
"Get validate request with ticket $ticket for service $service",
|
"Get validate request with ticket $ticket for service $service",
|
||||||
'debug' );
|
'debug' );
|
||||||
|
|
||||||
|
unless ( $ticket =~ s/^ST-// ) {
|
||||||
|
$self->lmLog( "Provided ticket is not a service ticket (ST)",
|
||||||
|
'error' );
|
||||||
|
$self->returnCasValidateError();
|
||||||
|
}
|
||||||
|
|
||||||
my $casServiceSession = $self->getCasSession($ticket);
|
my $casServiceSession = $self->getCasSession($ticket);
|
||||||
|
|
||||||
unless ($casServiceSession) {
|
unless ($casServiceSession) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user