Rubric/WebApp/Login/HTTP.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 78.9% 15 / 19 CC 1 SCAR 3.4
CC
1
Cov
83%
get_login_username
2.0
authenticate_login
2.0
BEGIN
1.0
CRAP 1.4
« Rubric/Config.pm ↑ Summary Rubric/DBI.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Rubric::WebApp::Login::HTTP 0.157;
4 # ABSTRACT: process web login from HTTP authentication
5  
6 1 ▶use parent qw(Rubric::WebApp::Login);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #pod =head1 DESCRIPTION
9 #pod
10 #pod This module checks for information needed to confirm that a user is logged into
11 #pod the Rubric.
12 #pod
13 #pod =head1 METHODS
14 #pod
15 #pod =head2 get_login_username
16 #pod
17 #pod This method returns the REMOTE_USER environment variable.
18 #pod
19 #pod =cut
20  
21 0 ▶sub get_login_username { $ENV{REMOTE_USER} }
Subroutine get_login_username: not called CC=1 SCAR=6.9
Pod documented
22  
23 #pod =head2 authenticate_login
24 #pod
25 #pod This method always returns true. (The assumption, here, is that the HTTP
26 #pod server has already taken care of authentication.)
27 #pod
28 #pod =cut
29  
30 0 ▶sub authenticate_login { 1 }
Subroutine authenticate_login: not called CC=1 SCAR=6.9
Pod documented
31  
32 1 1;
33  
34 __END__
« Rubric/Config.pm ↑ Summary Rubric/DBI.pm »