CAS 1.0 /validate endpoint does not return username
Concerned version
Version: %2.0.3
Summary
Calling /cas/validate
returns yes/no, but does not return the username
Code
In Issuer::CAS::validate
return $self->returnCasValidateSuccess($username);
In Issuer::Lib::CAS
# Return success for CAS VALIDATE request
sub returnCasValidateSuccess {
my ( $self, $req, $username ) = @_;
$self->logger->debug("Return CAS validate success with username $username");
return $self->sendSoapResponse( $req, "yes\n$username\n" );
}
The arguments passed to returnCasValidateSuccess
are incorrect, luckily, sendSoapResponse
does not use $req
at all, but the username still is missing from the response.
Also luckily, nobody uses CAS 1.0 in the wild ;)