line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
715
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
94
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Net::OAuth2Server::Request::Authorization; |
4
|
|
|
|
|
|
|
our $VERSION = '0.006'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
414
|
use parent 'Net::OAuth2Server::Request'; |
|
1
|
|
|
|
|
321
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
69
|
use Object::Tiny::Lvalue qw( response_type redirect_uri ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
0
|
0
|
|
sub allowed_methods { qw( GET HEAD POST ) } |
10
|
0
|
|
|
0
|
0
|
|
sub required_parameters { 'response_type' } |
11
|
0
|
|
|
0
|
0
|
|
sub set_parameters { qw( scope response_type ) } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_grant { |
14
|
0
|
|
|
0
|
0
|
|
my ( $self, $grant_maker ) = ( shift, shift ); |
15
|
|
|
|
|
|
|
# need validated redirect_uri so cannot shortcircuit on $self->error |
16
|
0
|
|
0
|
|
|
|
my $grant = $grant_maker->for_authorization( |
17
|
|
|
|
|
|
|
$self, |
18
|
|
|
|
|
|
|
$self->param( 'client_id' ) || return, |
19
|
|
|
|
|
|
|
$self->response_type, |
20
|
|
|
|
|
|
|
$self->scope, |
21
|
|
|
|
|
|
|
$self->param( 'redirect_uri' ), |
22
|
|
|
|
|
|
|
@_, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
# must compensate for lack of shortcircuit now |
25
|
0
|
0
|
0
|
|
|
|
$self->error ? () : $grant || (); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |