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 sub init {
14 4 ▶ return 1;
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
15 }
16  
17 # RUNNING METHODS
18  
19 sub extractFormInfo {
20 0 ▶ my ( $self, $req ) = @_;
Subroutine extractFormInfo: not called CC=2 SCAR=17.9
Pod undocumented
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 sub authenticate {
32 0 ▶ return PE_OK;
Subroutine authenticate: not called CC=1 SCAR=6.9
Pod undocumented
33 }
34  
35 sub setAuthSessionInfo {
36 0 ▶ my ( $self, $req ) = @_;
Subroutine setAuthSessionInfo: not called CC=1 SCAR=6.9
Pod undocumented
37 $req->{sessionInfo}->{authenticationLevel} =
38 0 $self->conf->{apacheAuthnLevel};
39 0 return PE_OK;
40 }
41  
42 sub authLogout {
43 0 ▶ return PE_OK;
Subroutine authLogout: not called CC=1 SCAR=6.9
Pod undocumented
44 }
45  
46 sub getDisplayType {
47 0 ▶ return 'logo';
Subroutine getDisplayType: not called CC=1 SCAR=6.9
Pod undocumented
48 }
49  
50 5 1;
« blib/lib/Lemonldap/NG/Portal/Auth/_Ajax.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/CertificateResetByMail/Demo.pm »