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

filter: Statementstmt 48.0% 12 / 25 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 37.5% 3 / 8 Podpod 0.0% 0 / 5 totaltotal 34.8% 15 / 43 CC 3 SCAR 15.5
CC
3
Cov
41%
extractFormInfo
12.0
authenticate
2.0
setAuthSessionInfo
2.0
CRAP 4.7
« blib/lib/Lemonldap/NG/Portal/UserDB/Slave.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Auth/Slave.pm »
1 package Lemonldap::NG::Portal::Auth::Remote;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Lemonldap::NG::Portal::Main::Constants qw(PE_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '2.0.12';
8  
9 2 extends 'Lemonldap::NG::Portal::Main::Auth',
10 'Lemonldap::NG::Portal::Lib::Remote';
11  
12 # RUNNING METHODS
13  
14 0 ▶sub extractFormInfo {
Subroutine extractFormInfo: not called CC=3 SCAR=24.8
Pod undocumented
15 0 my ( $self, $req ) = @_;
16 0 my $r = $self->checkRemoteId($req);
17 0 ▶ return $r unless ( $r == PE_OK );
Branch: 1 branch
BranchTrueFalseTotal
unless $r == 0 0 0 0
18 $req->{user} =
19 0 ▶ $req->data->{rSessionInfo}->{ $self->conf->{remoteUserField} || 'uid' };
Condition0%0/2
$self->conf->{'remoteUserField'} || 'uid'
l!l
00
MC/DC0%0/1
$self->conf->{'remoteUserField'} || 'uid'
$self->conf->{'remoteUserField'}
Truth table0%0/2
A
A= $self->conf->{'remoteUserField'}
Aresult
11
00
20 0 $req->data->{password} = $req->data->{rSessionInfo}->{'_password'};
21 0 return PE_OK;
22 }
23  
24 0 ▶sub authenticate {
Subroutine authenticate: not called CC=1 SCAR=6.9
Pod undocumented
25 0 return PE_OK;
26 }
27  
28 0 ▶sub setAuthSessionInfo {
Subroutine setAuthSessionInfo: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ( $self, $req ) = @_;
30  
31 # Store password (deleted in checkRemoteId() if local policy does not accept
32 # stored passwords)
33 0 $req->{sessionInfo}->{'_password'} = $req->data->{'password'};
34 $req->{sessionInfo}->{authenticationLevel} =
35 0 $req->data->{rSessionInfo}->{authenticationLevel};
36 0 return PE_OK;
37 }
38  
39 0 ▶sub authLogout {
Subroutine authLogout: not called CC=1 SCAR=6.9
Pod undocumented
40 0 return PE_OK;
41 }
42  
43 0 ▶sub getDisplayType {
Subroutine getDisplayType: not called CC=1 SCAR=6.9
Pod undocumented
44 0 return "logo";
45 }
46  
47 2 1;
« blib/lib/Lemonldap/NG/Portal/UserDB/Slave.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Auth/Slave.pm »