lemonldap-ng/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Null.pm
2019-07-02 20:12:11 +02:00

45 lines
644 B
Perl

package Lemonldap::NG::Portal::Auth::Null;
use strict;
use Mouse;
use Lemonldap::NG::Portal::Main::Constants;
our $VERSION = '2.1.0';
extends 'Lemonldap::NG::Portal::Main::Auth';
# INITIALIZATION
sub init {
1;
}
# RUNNING METHODS
sub extractFormInfo {
my ( $self, $req ) = @_;
$req->user('anonymous');
PE_OK;
}
sub authenticate {
PE_OK;
}
sub setAuthSessionInfo {
my ( $self, $req ) = @_;
$req->{sessionInfo}->{'_user'} = 'anonymous';
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{nullAuthnLevel};
PE_OK;
}
sub authLogout {
PE_OK;
}
sub getForm {
return '';
}
1;