2016-06-06 22:49:59 +02:00
|
|
|
package Lemonldap::NG::Portal::Auth::Proxy;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use Mouse;
|
|
|
|
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK);
|
|
|
|
|
2021-02-01 22:30:37 +01:00
|
|
|
our $VERSION = '2.0.12';
|
2016-06-06 22:49:59 +02:00
|
|
|
|
2017-01-09 07:11:30 +01:00
|
|
|
extends 'Lemonldap::NG::Portal::Auth::_WebForm';
|
|
|
|
|
|
|
|
# INITIALIZATION
|
|
|
|
|
|
|
|
sub init {
|
2019-04-05 22:58:48 +02:00
|
|
|
my $self = shift;
|
2017-01-25 12:51:30 +01:00
|
|
|
return 0 unless $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
|
2017-01-09 07:11:30 +01:00
|
|
|
if ( $self->conf->{proxyUseSoap} ) {
|
2017-01-10 17:09:28 +01:00
|
|
|
extends 'Lemonldap::NG::Portal::Lib::SOAPProxy',
|
|
|
|
'Lemonldap::NG::Portal::Auth::_WebForm';
|
2017-01-09 07:11:30 +01:00
|
|
|
}
|
|
|
|
else {
|
2017-01-10 17:09:28 +01:00
|
|
|
extends 'Lemonldap::NG::Portal::Lib::RESTProxy',
|
|
|
|
'Lemonldap::NG::Portal::Auth::_WebForm';
|
2017-01-09 07:11:30 +01:00
|
|
|
}
|
|
|
|
return $self->SUPER::init();
|
|
|
|
}
|
2016-06-06 22:49:59 +02:00
|
|
|
|
2016-06-09 20:40:20 +02:00
|
|
|
# RUNNING METHODS
|
|
|
|
|
2017-01-09 07:11:30 +01:00
|
|
|
sub setAuthSessionInfo {
|
|
|
|
my ( $self, $req ) = @_;
|
|
|
|
$req->{sessionInfo}->{authenticationLevel} = $self->conf->{proxyAuthnLevel};
|
2021-02-01 22:30:37 +01:00
|
|
|
return PE_OK;
|
2017-01-09 07:11:30 +01:00
|
|
|
}
|
|
|
|
|
2016-06-06 22:49:59 +02:00
|
|
|
sub getDisplayType {
|
|
|
|
return "standardform";
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|