Commit c573ec96 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Typo & upadte version

parent 02c473c9
......@@ -6,7 +6,7 @@ use Lemonldap::NG::Common::Combination::Parser;
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_ERROR);
use Scalar::Util 'weaken';
our $VERSION = '2.0.2';
our $VERSION = '2.0.3';
# TODO: See Lib::Wrapper
extends 'Lemonldap::NG::Portal::Main::Auth';
......@@ -28,7 +28,7 @@ has wrapUserLogger => (
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
# Check if expression exists
unless ( $self->conf->{combination} ) {
......
......@@ -7,14 +7,14 @@ use Lemonldap::NG::Common::FormEncode;
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_ERROR PE_BADCREDENTIALS);
use utf8;
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
extends 'Lemonldap::NG::Portal::Main::Auth';
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
eval { require Net::Facebook::Oauth2; };
if ($@) {
$self->error("Unable to load Net::Facebook::Oauth2: $@");
......
......@@ -143,8 +143,8 @@ sub authenticate {
sub setAuthSessionInfo {
my ( $self, $req ) = @_;
$req->sessionInfo->{gpgMail} = $req->data->{gpgMail};
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{gpgAuthnLevel};
return PE_OK;
$req->sessionInfo->{authenticationLevel} = $self->conf->{gpgAuthnLevel};
PE_OK;
}
sub authLogout {
......
......@@ -27,7 +27,7 @@ has InitCmd => (
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
my $file;
unless ( $file = $self->conf->{krbKeytab} ) {
$self->error('Keytab not defined');
......
......@@ -15,7 +15,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_REDIRECT
);
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
extends 'Lemonldap::NG::Portal::Main::Auth';
......@@ -61,7 +61,7 @@ has ua => (
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
eval { require Net::OpenID::Consumer };
if ($@) {
......
......@@ -9,7 +9,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_OK
);
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
extends 'Lemonldap::NG::Portal::Main::Auth',
'Lemonldap::NG::Portal::Lib::OpenIDConnect';
......@@ -25,7 +25,7 @@ use constant sessionKind => 'OIDC';
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
return 0 unless ( $self->loadOPs and $self->refreshJWKSdata );
my @tab = ( sort keys %{ $self->oidcOPList } );
......
......@@ -11,7 +11,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
extends qw(Lemonldap::NG::Portal::Auth::_WebForm);
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
# INITIALIZATION
......@@ -71,8 +71,7 @@ sub authenticate {
}
}
$self->userLogger->notice("Good PAM authentication for $req->{user}");
return PE_OK;
PE_OK;
}
sub setAuthSessionInfo {
......
......@@ -4,14 +4,14 @@ use strict;
use Mouse;
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK);
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
extends 'Lemonldap::NG::Portal::Auth::_WebForm';
# INITIALIZATION
sub init {
my ($self) = @_;
my $self = shift;
return 0 unless $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
if ( $self->conf->{proxyUseSoap} ) {
extends 'Lemonldap::NG::Portal::Lib::SOAPProxy',
......
......@@ -8,7 +8,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_OK
);
our $VERSION = '2.0.0';
our $VERSION = '2.0.3';
extends 'Lemonldap::NG::Portal::Auth::_WebForm',
'Lemonldap::NG::Portal::Lib::REST';
......@@ -53,7 +53,7 @@ sub setAuthSessionInfo {
$self->SUPER::setAuthSessionInfo($req);
$req->sessionInfo->{$_} = $req->data->{restAuthInfo}->{$_}
foreach ( keys %{ $req->data->{restAuthInfo} } );
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{restAuthnLevel};
$req->sessionInfo->{authenticationLevel} = $self->conf->{restAuthnLevel};
return PE_OK;
}
......
......@@ -72,7 +72,7 @@ sub authenticate {
sub setAuthSessionInfo {
my ( $self, $req ) = @_;
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{SSLAuthnLevel};
$req->sessionInfo->{authenticationLevel} = $self->conf->{SSLAuthnLevel};
PE_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment