File Coverage

blib/lib/Rubric/WebApp/Login/HTTP.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 14 18 77.7


line stmt bran cond sub pod time code
1 1     1   1158 use strict;
  1         2  
  1         27  
2 1     1   4 use warnings;
  1         3  
  1         51  
3             package Rubric::WebApp::Login::HTTP;
4             # ABSTRACT: process web login from HTTP authentication
5             $Rubric::WebApp::Login::HTTP::VERSION = '0.156';
6 1     1   5 use parent qw(Rubric::WebApp::Login);
  1         3  
  1         8  
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     0 1   sub get_login_username { $ENV{REMOTE_USER} }
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     0 1   sub authenticate_login { 1 }
31              
32             1;
33              
34             __END__