line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
369
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Net::OAuth2Server::Request::Token::RefreshToken; |
4
|
|
|
|
|
|
|
our $VERSION = '0.006'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use parent 'Net::OAuth2Server::Request'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
0
|
|
|
0
|
0
|
|
sub grant_type { 'refresh_token' } |
9
|
0
|
|
|
0
|
0
|
|
sub allowed_methods { 'POST' } |
10
|
0
|
|
|
0
|
0
|
|
sub grant_parameters { qw( refresh_token client_id client_secret ) } |
11
|
|
|
|
|
|
|
*required_parameters = \&grant_parameters; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_grant { |
14
|
0
|
|
|
0
|
0
|
|
my ( $self, $grant_maker ) = ( shift, shift ); |
15
|
0
|
0
|
|
|
|
|
return if $self->error; |
16
|
0
|
|
|
|
|
|
$grant_maker->from_refresh_token( $self, $self->params( $self->grant_parameters ), @_ ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |