line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OAuth::Lite2::Model::AuthInfo; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
43072
|
use strict; |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
360
|
|
4
|
10
|
|
|
10
|
|
46
|
use warnings; |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
358
|
|
5
|
|
|
|
|
|
|
|
6
|
10
|
|
|
10
|
|
48
|
use base 'Class::Accessor::Fast'; |
|
10
|
|
|
|
|
11
|
|
|
10
|
|
|
|
|
5430
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
9
|
|
|
|
|
|
|
id |
10
|
|
|
|
|
|
|
user_id |
11
|
|
|
|
|
|
|
client_id |
12
|
|
|
|
|
|
|
scope |
13
|
|
|
|
|
|
|
refresh_token |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
code |
16
|
|
|
|
|
|
|
redirect_uri |
17
|
|
|
|
|
|
|
)); |
18
|
|
|
|
|
|
|
|
19
|
10
|
|
|
10
|
|
28514
|
use Params::Validate; |
|
10
|
|
|
|
|
11586
|
|
|
10
|
|
|
|
|
1629
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new { |
22
|
13
|
|
|
13
|
1
|
364
|
my $class = shift; |
23
|
13
|
100
|
|
|
|
43
|
my @args = @_ == 1 ? %{$_[0]} : @_; |
|
12
|
|
|
|
|
56
|
|
24
|
13
|
|
|
|
|
580
|
my %params = Params::Validate::validate_with( |
25
|
|
|
|
|
|
|
params => \@args, |
26
|
|
|
|
|
|
|
spec => { |
27
|
|
|
|
|
|
|
id => 1, |
28
|
|
|
|
|
|
|
user_id => 1, |
29
|
|
|
|
|
|
|
client_id => 1, |
30
|
|
|
|
|
|
|
scope => { optional => 1 }, |
31
|
|
|
|
|
|
|
refresh_token => { optional => 1 }, |
32
|
|
|
|
|
|
|
code => { optional => 1 }, |
33
|
|
|
|
|
|
|
redirect_uri => { optional => 1 }, |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
allow_extra => 1, |
36
|
|
|
|
|
|
|
); |
37
|
13
|
|
|
|
|
126
|
my $self = bless \%params, $class; |
38
|
13
|
|
|
|
|
39
|
return $self; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
OAuth::Lite2::Model::AuthInfo - model class that represents authorization info. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 ACCESSORS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 id |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Identifier of this authorization info. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 user_id |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 client_id |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 scope |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 refresh_token |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 code |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 redirect_uri |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Lyo Kato, Elyo.kato@gmail.comE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright (C) 2010 by Lyo Kato |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
72
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
73
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |