line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
467
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Net::OAuth2Server::Request::Token; |
4
|
1
|
|
|
1
|
|
5
|
use parent 'Net::OAuth2Server::Request'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
5
|
|
|
|
|
|
|
|
6
|
0
|
|
|
0
|
0
|
|
sub allowed_methods { 'POST' } |
7
|
0
|
|
|
0
|
0
|
|
sub accepted_auth { 'Basic' } |
8
|
0
|
|
|
0
|
0
|
|
sub required_parameters { 'grant_type' } |
9
|
0
|
|
|
0
|
0
|
|
sub confidential_parameters { 'client_secret' } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
0
|
0
|
|
sub get_grant {} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub dispatch { |
14
|
0
|
|
|
0
|
0
|
|
my ( $self, @class ) = ( shift, @_ ); |
15
|
0
|
0
|
|
|
|
|
return $self if $self->error; |
16
|
0
|
0
|
|
|
|
|
for ( @class ) { s/\A\+/__PACKAGE__.'::'/e unless ref } |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my $type = $self->param( 'grant_type' ); |
18
|
0
|
0
|
|
|
|
|
my ( $class ) = defined $type ? grep $type eq $_->grant_type, @class : (); |
19
|
0
|
0
|
|
|
|
|
$class ? $class->new( %$self ) : $self->set_error_unsupported_grant_type; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
our $VERSION = '0.005'; |