« blib/lib/Lemonldap/NG/Portal/Auth/_Ajax.pm
↑ Summary
blib/lib/Lemonldap/NG/Portal/CertificateResetByMail/Demo.pm »
| 1 | package Lemonldap::NG::Portal::Auth::Apache; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use Mouse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use Lemonldap::NG::Portal::Main::Constants qw(PE_ERROR PE_OK); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 5 | our $VERSION = '2.0.12'; | |||||||||
| 8 | |||||||||||
| 9 | 5 | extends 'Lemonldap::NG::Portal::Main::Auth'; | |||||||||
| 10 | |||||||||||
| 11 | # INITIALIZATION | ||||||||||
| 12 | |||||||||||
| 13 | 4 | ▶ | sub init { | ||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 14 | 4 | return 1; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | # RUNNING METHODS | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub extractFormInfo { | ||||||||
|
Subroutine
extractFormInfo: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 20 | 0 | my ( $self, $req ) = @_; | |||||||||
| 21 | 0 | ▶ | unless ( $req->{user} = $req->env->{REMOTE_USER} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | $self->logger->error('Apache is not configured to authenticate users!'); | |||||||||
| 23 | 0 | return PE_ERROR; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | # This is needed for Kerberos authentication | ||||||||||
| 27 | 0 | $req->{user} =~ s/^(.*)@.*$/$1/g; | |||||||||
| 28 | 0 | return PE_OK; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub authenticate { | ||||||||
|
Subroutine
authenticate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 32 | 0 | return PE_OK; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | sub setAuthSessionInfo { | ||||||||
|
Subroutine
setAuthSessionInfo: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 0 | my ( $self, $req ) = @_; | |||||||||
| 37 | $req->{sessionInfo}->{authenticationLevel} = | ||||||||||
| 38 | 0 | $self->conf->{apacheAuthnLevel}; | |||||||||
| 39 | 0 | return PE_OK; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub authLogout { | ||||||||
|
Subroutine
authLogout: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 43 | 0 | return PE_OK; | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | 0 | ▶ | sub getDisplayType { | ||||||||
|
Subroutine
getDisplayType: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 47 | 0 | return 'logo'; | |||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | 5 | 1; | |||||||||