line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
425
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
45
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Net::OAuth2Server::Request::Resource; |
4
|
|
|
|
|
|
|
our $VERSION = '0.006'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use parent 'Net::OAuth2Server::Request'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
0
|
|
|
0
|
0
|
|
sub allowed_methods { $_[0]->method } # accept whatever the method is |
9
|
0
|
|
|
0
|
0
|
|
sub accepted_auth { 'Bearer' } |
10
|
0
|
|
|
0
|
0
|
|
sub required_parameters { 'access_token' } |
11
|
0
|
|
|
0
|
0
|
|
sub confidential_parameters { 'access_token' } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_grant { |
14
|
0
|
|
|
0
|
0
|
|
my ( $self, $grant_maker ) = ( shift, shift ); |
15
|
0
|
0
|
|
|
|
|
return if $self->error; |
16
|
0
|
0
|
0
|
|
|
|
$grant_maker->from_bearer_token( $self, $self->param( 'access_token' ), @_ ) |
17
|
|
|
|
|
|
|
or ( $self->error || $self->set_error_invalid_token, return ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |