CAS in progress (#595)

This commit is contained in:
Xavier Guimard 2016-12-22 06:05:14 +00:00
parent de969f19c4
commit d01e3472ff

View File

@ -397,7 +397,7 @@ sub validate {
# Get username
my $username =
$localSession->data->{ $self->{casAttr} || $self->{whatToTrace} };
$localSession->data->{ $self->conf->{casAttr} || $self->conf->{whatToTrace} };
$self->lmLog( "Get username $username", 'debug' );
@ -425,7 +425,7 @@ sub proxyValidate {
sub _validate2 {
my ( $self, $urlType, $req ) = @_;
$self->lmLog(
'URL ' . $req->uri . ' detected as an CAS $urlType VALIDATE URL',
'URL ' . $req->uri . " detected as an CAS $urlType VALIDATE URL",
'debug' );
# GET parameters
@ -497,7 +497,6 @@ sub _validate2 {
. $casServiceSession->data->{service},
'error'
);
$self->deleteCasSession($casServiceSession);
return $self->returnCasServiceValidateError( 'INVALID_SERVICE',
'Submitted service does not match initial service' );