Unit tests for #2649

This commit is contained in:
Maxime Besson 2021-10-26 23:19:11 +02:00
parent beb2fa69df
commit 6c8e0e6edb
4 changed files with 0 additions and 19 deletions

View File

@ -9,11 +9,6 @@ use constant hook => {
'casGenerateValidateResponse' => 'genResponse',
};
sub init {
my ($self) = @_;
return 1;
}
sub filterService {
my ( $self, $req, $cas_request ) = @_;
if ( $cas_request->{service} eq "http://auth.sp.com/" ) {

View File

@ -17,11 +17,6 @@ use constant hook => {
oidcGotClientCredentialsGrant => 'oidcGotClientCredentialsGrant',
};
sub init {
my ($self) = @_;
return 1;
}
sub addClaimToIDToken {
my ( $self, $req, $payload, $rp ) = @_;
$payload->{"id_token_hook"} = 1;

View File

@ -10,10 +10,6 @@ use constant hook => {
passwordAfterChange => 'afterChange',
};
sub init {
1;
}
sub beforeChange {
my ( $self, $req, $user, $password, $old ) = @_;
if ( $password eq "12345" ) {

View File

@ -5,11 +5,6 @@ extends 'Lemonldap::NG::Portal::Main::Plugin';
use constant hook => { samlGotAuthnRequest => 'gotRequest', };
sub init {
my ($self) = @_;
return 1;
}
sub gotRequest {
my ( $self, $res, $login ) = @_;