blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm

filter: Statementstmt 90.4% 19 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 86.6% 26 / 30 CC 2 SCAR 3.2
CC
2
Cov
87%
init
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Lemonldap/NG/Portal/UserDB/Proxy.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Password/Demo.pm »
1 package Lemonldap::NG::Portal::Lib::OIDCPlugin;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Lemonldap::NG::Portal::Issuer::OpenIDConnect;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 extends 'Lemonldap::NG::Portal::Main::Plugin';
8  
9 4 our $VERSION = '2.23.0';
10  
11 has oidc => (
12 is => 'ro',
13 lazy => 1,
14 6 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
15 $_[0]
16 6 ->p->loadedModules->{'Lemonldap::NG::Portal::Issuer::OpenIDConnect'};
17 }
18 4 );
19  
20 has path => (
21 is => 'ro',
22 lazy => 1,
23 2 ▶ default => sub { $_[0]->oidc->path }
Subroutine __ANON__: called CC=1 SCAR=0.0
24 4 );
25  
26 10 ▶sub init {
Subroutine init: called CC=2 SCAR=8.4
Pod undocumented
27 10 my ($self) = @_;
28 10 ▶ unless ( $self->conf->{issuerDBOpenIDConnectActivation} ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->conf->{"issuerDBOpenIDConnectActivation"}) 0 10 10
29 0 $self->logger->error(
30 'This plugin can be used only if OIDC server is enabled');
31 0 return 0;
32 }
33 10 1;
34 }
35  
36 4 1;
« blib/lib/Lemonldap/NG/Portal/UserDB/Proxy.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Password/Demo.pm »