File Coverage

blib/lib/Moxy/Session/State/BasicAuth.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 7 42.8
pod 1 4 25.0
total 13 27 48.1


line stmt bran cond sub pod time code
1             package Moxy::Session::State::BasicAuth;
2 1     1   712 use strict;
  1         2  
  1         33  
3 1     1   4 use warnings;
  1         2  
  1         29  
4 1     1   1014 use HTTP::Session::State::Base;
  1         4065  
  1         7  
5              
6 0     0 0   sub realm { 'Moxy needs basic auth.Only for identification.Password is dummy.' }
7              
8             sub new {
9 0     0 1   bless {permissive => 1}, shift;
10             }
11              
12             sub get_session_id {
13 0     0 0   my ( $self, $req ) = @_;
14 0 0         $ENV{HTTP_AUTHORIZATION} || $req->header('Authorization');
15             }
16              
17 0     0 0   sub response_filter { }
18              
19             1;
20