| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OpenID::Lite::SessionHandler; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
4
|
use Any::Moose; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
|
|
with 'OpenID::Lite::Role::ErrorHandler'; |
|
5
|
1
|
|
|
1
|
|
536
|
use List::MoreUtils qw(any); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
43
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use OpenID::Lite::Types qw(SessionType); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has '_session_type' => ( |
|
9
|
|
|
|
|
|
|
is => 'ro', |
|
10
|
|
|
|
|
|
|
isa => SessionType, |
|
11
|
|
|
|
|
|
|
default => "", |
|
12
|
|
|
|
|
|
|
); |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has '_allowed_assoc_types' => ( |
|
15
|
|
|
|
|
|
|
is => 'ro', |
|
16
|
|
|
|
|
|
|
isa => 'ArrayRef[Str]', |
|
17
|
|
|
|
|
|
|
default => sub { [] }, |
|
18
|
|
|
|
|
|
|
); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# template method |
|
21
|
|
|
|
|
|
|
sub set_request_params { |
|
22
|
0
|
|
|
0
|
0
|
|
my ( $self, $service, $params ) = @_; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub match { |
|
26
|
0
|
|
|
0
|
0
|
|
my ( $self, $session_type ) = @_; |
|
27
|
0
|
|
0
|
|
|
|
return ( $session_type && $self->_session_type eq $session_type ); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub can_handle_assoc_type { |
|
31
|
0
|
|
|
0
|
0
|
|
my ( $self, $assoc_type ) = @_; |
|
32
|
0
|
|
|
|
|
|
my $allowed = $self->_allowed_assoc_types; |
|
33
|
0
|
|
0
|
0
|
|
|
return ( $assoc_type && ( any { $_ eq $assoc_type } @$allowed ) ); |
|
|
0
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# abstract method |
|
37
|
|
|
|
|
|
|
sub extract_secret { |
|
38
|
0
|
|
|
0
|
0
|
|
my ( $self, $params ) = @_; |
|
39
|
0
|
|
|
|
|
|
die "abstract method."; |
|
40
|
|
|
|
|
|
|
} |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub set_response_params { |
|
43
|
0
|
|
|
0
|
0
|
|
my ( $self, $req_params, $res_params, $association ) = @_; |
|
44
|
0
|
|
|
|
|
|
die "abstract method"; |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
1
|
|
|
1
|
|
306
|
no Any::Moose; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
5
|
|
|
48
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
49
|
|
|
|
|
|
|
1; |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|