Remove ticket from service URL when calling serviceValidate (#1183)

This commit is contained in:
Clément Oudot 2017-03-29 19:43:10 +00:00
parent 9944115c8d
commit 10cd479de4

View File

@ -138,6 +138,8 @@ sub extractFormInfo {
$self->logger->debug("CAS: Service Ticket received: $ticket");
# Ticket found, try to validate it
$local_url =~ s/ticket=[^&]+//;
$local_url =~ s/\?$//;
unless ( $req->{user} = $self->validateST( $local_url, $ticket ) ) {
$self->userLogger->error("CAS: Unable to validate ST $ticket");
return PE_ERROR;