| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OIDC::Lite::Model::AuthInfo; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
17778
|
use strict; |
|
|
2
|
|
|
|
|
7
|
|
|
|
2
|
|
|
|
|
87
|
|
|
4
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
61
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
436
|
use parent 'OAuth::Lite2::Model::AuthInfo'; |
|
|
2
|
|
|
|
|
254
|
|
|
|
2
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use base 'Class::Accessor::Fast'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
|
11
|
|
|
|
|
|
|
id_token |
|
12
|
|
|
|
|
|
|
userinfo_claims |
|
13
|
|
|
|
|
|
|
)); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use Params::Validate; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub new { |
|
18
|
|
|
|
|
|
|
my $class = shift; |
|
19
|
|
|
|
|
|
|
my @args = @_ == 1 ? %{$_[0]} : @_; |
|
20
|
|
|
|
|
|
|
my %params = Params::Validate::validate_with( |
|
21
|
|
|
|
|
|
|
params => \@args, |
|
22
|
|
|
|
|
|
|
spec => { |
|
23
|
|
|
|
|
|
|
id => 1, |
|
24
|
|
|
|
|
|
|
user_id => 1, |
|
25
|
|
|
|
|
|
|
client_id => 1, |
|
26
|
|
|
|
|
|
|
scope => { optional => 1 }, |
|
27
|
|
|
|
|
|
|
refresh_token => { optional => 1 }, |
|
28
|
|
|
|
|
|
|
code => { optional => 1 }, |
|
29
|
|
|
|
|
|
|
redirect_uri => { optional => 1 }, |
|
30
|
|
|
|
|
|
|
server_state => { optional => 1 }, |
|
31
|
|
|
|
|
|
|
id_token => { optional => 1 }, |
|
32
|
|
|
|
|
|
|
userinfo_claims => { optional => 1 }, |
|
33
|
|
|
|
|
|
|
}, |
|
34
|
|
|
|
|
|
|
allow_extra => 1, |
|
35
|
|
|
|
|
|
|
); |
|
36
|
|
|
|
|
|
|
my $self = bless \%params, $class; |
|
37
|
|
|
|
|
|
|
return $self; |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
OIDC::Lite::Model::AuthInfo - model class that represents authorization info. |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 ACCESSORS |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 id |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Identifier of this authorization info |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 user_id |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
User identifier for resource owner |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 client_id |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
CLient identifier for obtain token |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 scope |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Scope string for authorization info |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 refresh_token |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Refresh token related with authorization info |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 code |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Authorization code related with authorization info |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 redirect_uri |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Redirect URI related with authorization info |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 server_state |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Server State for CSRF Protection |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 id_token |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
ID Token string which was encoded to JWT format |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 userinfo_claims |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Claims which RP requires in UserInfo Endpoint |
|
85
|
|
|
|
|
|
|
Type is array refference |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 AUTHOR |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Ryo Ito, Eritou.06@gmail.comE |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Copyright (C) 2012 by Ryo Ito |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
96
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
|
97
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=cut |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
1; |
|
102
|
|
|
|
|
|
|
|