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

45 lines
644 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;
2019-02-12 18:21:38 +01:00
our $VERSION = '2.1.0';
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 {
1;
}
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');
PE_OK;
}
sub authenticate {
PE_OK;
}
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};
PE_OK;
}
2016-05-22 13:27:34 +02:00
sub authLogout {
PE_OK;
}
2019-03-19 05:56:36 +01:00
sub getForm {
2016-05-23 23:52:32 +02:00
return '';
}
2016-05-22 13:27:34 +02:00
1;