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 # Store user submitted login for basic rules
$self->{sessionInfo}->{'_user'} = $self->{'user'}; $self->{sessionInfo}->{'_user'} = $self->{'user'};
# authenticationLevel 4 for external authentication # authenticationLevel 4 for Apache authentication
$self->{sessionInfo}->{authenticationLevel} = 4; $self->{sessionInfo}->{authenticationLevel} = 4;
PE_OK; PE_OK;

View File

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

View File

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

View File

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

View File

@ -45,9 +45,11 @@ sub setAuthSessionInfo {
my $self = shift; my $self = shift;
# authenticationLevel # authenticationLevel
# 1 for user/password with HTTP and password can be remebered
# 2 for user/password with HTTP # 2 for user/password with HTTP
# 3 for user/password with HTTPS # 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 # Store user submitted login for basic rules
$self->{sessionInfo}->{'_user'} = $self->{'user'}; $self->{sessionInfo}->{'_user'} = $self->{'user'};