lemonldap-ng/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Null.pm

45 lines
687 B
Perl
Raw Normal View History

2016-05-22 13:27:34 +02:00
package Lemonldap::NG::Portal::Auth::Null;
use strict;
use Mouse;
use Lemonldap::NG::Portal::Main::Constants;
2021-02-01 22:30:37 +01:00
our $VERSION = '2.0.12';
2016-05-22 13:27:34 +02:00
2018-02-19 22:11:43 +01:00
extends 'Lemonldap::NG::Portal::Main::Auth';
2016-05-22 13:27:34 +02:00
2016-06-09 20:40:20 +02:00
# INITIALIZATION
2016-05-22 13:27:34 +02:00
sub init {
2021-02-01 22:30:37 +01:00
return 1;
2016-05-22 13:27:34 +02:00
}
2016-06-09 20:40:20 +02:00
# RUNNING METHODS
2016-05-22 13:27:34 +02:00
sub extractFormInfo {
my ( $self, $req ) = @_;
$req->user('anonymous');
2021-02-01 22:30:37 +01:00
return PE_OK;
2016-05-22 13:27:34 +02:00
}
sub authenticate {
2021-02-01 22:30:37 +01:00
return PE_OK;
2016-05-22 13:27:34 +02:00
}
2016-12-01 23:25:05 +01:00
sub setAuthSessionInfo {
my ( $self, $req ) = @_;
2019-07-02 20:03:40 +02:00
$req->{sessionInfo}->{'_user'} = 'anonymous';
2016-12-01 23:25:05 +01:00
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{nullAuthnLevel};
2021-02-01 22:30:37 +01:00
return PE_OK;
2016-12-01 23:25:05 +01:00
}
2016-05-22 13:27:34 +02:00
sub authLogout {
2021-02-01 22:30:37 +01:00
return PE_OK;
2016-05-22 13:27:34 +02:00
}
2016-05-23 23:52:32 +02:00
sub getDisplayType {
return '';
}
2016-05-22 13:27:34 +02:00
1;