Fix CAS 1.0 validate method (#478)

This commit is contained in:
Clément Oudot 2012-06-16 20:52:56 +00:00
parent e470818653
commit eb9175d681

View File

@ -121,6 +121,12 @@ sub issuerForUnAuthUser {
"Get validate request with ticket $ticket for service $service",
'debug' );
unless ( $ticket =~ s/^ST-// ) {
$self->lmLog( "Provided ticket is not a service ticket (ST)",
'error' );
$self->returnCasValidateError();
}
my $casServiceSession = $self->getCasSession($ticket);
unless ($casServiceSession) {