Set external authenticationLevel to 1

This commit is contained in:
Clément Oudot 2010-09-01 09:53:55 +00:00
parent a54b43a4c8
commit 0f973b7b87
5 changed files with 10 additions and 8 deletions

View File

@ -43,7 +43,7 @@ sub setAuthSessionInfo {
# Store user submitted login for basic rules
$self->{sessionInfo}->{'_user'} = $self->{'user'};
# authenticationLevel 4 for external authentication
# authenticationLevel 4 for Apache authentication
$self->{sessionInfo}->{authenticationLevel} = 4;
PE_OK;

View File

@ -154,8 +154,8 @@ sub setAuthSessionInfo {
# Store user submitted login for basic rules
$self->{sessionInfo}->{'_user'} = $self->{'user'};
# authenticationLevel 4 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 4;
# authenticationLevel 1 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 1;
PE_OK;
}

View File

@ -819,8 +819,8 @@ sub libertySetSessionInfo {
$self->{user} = $uidValues[0]
if (@uidValues);
# authenticationLevel 4 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 4;
# authenticationLevel 1 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 1;
return PE_OK;
}

View File

@ -134,8 +134,8 @@ sub setAuthSessionInfo {
$self->{sessionInfo}->{$_} = $self->{twitterUser}->{$_};
}
# authenticationLevel 4 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 4;
# authenticationLevel 1 for external authentication
$self->{sessionInfo}->{authenticationLevel} = 1;
PE_OK;
}

View File

@ -45,9 +45,11 @@ sub setAuthSessionInfo {
my $self = shift;
# authenticationLevel
# 1 for user/password with HTTP and password can be remebered
# 2 for user/password with HTTP
# 3 for user/password with HTTPS
$self->{sessionInfo}->{authenticationLevel} = ( $self->https() ? 3 : 2 );
$self->{sessionInfo}->{authenticationLevel} =
( $self->https() ? 3 : ( $self->{portalAutocomplete} ? 1 : 2 ) );
# Store user submitted login for basic rules
$self->{sessionInfo}->{'_user'} = $self->{'user'};