« 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
| |||||||||||
| 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; | |||||||||