blib/lib/Lemonldap/NG/Portal/Auth/Apache.pm

filter: Statementstmt 52.0% 13 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 44.4% 4 / 9 Podpod 0.0% 0 / 6 totaltotal 40.4% 17 / 42 CC 2 SCAR 8.8
CC
2
Cov
48%
extractFormInfo
6.0
authenticate
2.0
setAuthSessionInfo
2.0
CRAP 2.4
« 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
BranchTrueFalseTotal
unless ($req->{"user"} = $req->env->{"REMOTE_USER"}) 0 0 0
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;
« blib/lib/Lemonldap/NG/Portal/Auth/_Ajax.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/CertificateResetByMail/Demo.pm »