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   1278 use strict;
  1         2  
  1         37  
2 1     1   4 use warnings;
  1         4  
  1         51  
3             package Rubric::WebApp::Login::HTTP;
4             # ABSTRACT: process web login from HTTP authentication
5             $Rubric::WebApp::Login::HTTP::VERSION = '0.155';
6 1     1   6 use parent qw(Rubric::WebApp::Login);
  1         2  
  1         58  
7              
8             # =head1 DESCRIPTION
9             #
10             # This module checks for information needed to confirm that a user is logged into
11             # the Rubric.
12             #
13             # =head1 METHODS
14             #
15             # =head2 get_login_username
16             #
17             # This method returns the REMOTE_USER environment variable.
18             #
19             # =cut
20              
21 0     0 1   sub get_login_username { $ENV{REMOTE_USER} }
22              
23             # =head2 authenticate_login
24             #
25             # This method always returns true. (The assumption, here, is that the HTTP
26             # server has already taken care of authentication.)
27             #
28             # =cut
29              
30 0     0 1   sub authenticate_login { 1 }
31              
32             1;
33              
34             __END__