line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Google::RestApi::Auth; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '1.0.4'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
529
|
use Google::RestApi::Setup; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
6
|
|
|
|
|
|
|
|
7
|
252
|
|
|
252
|
0
|
1074
|
sub params {{}} |
8
|
0
|
|
|
0
|
0
|
|
sub headers {[]}; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Google::RestApi::Auth - Base class for authorization for Google Rest APIs |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Small base class that establishes the contract between RestApi and the |
21
|
|
|
|
|
|
|
various possible authorization methods. If the auth class expects to be |
22
|
|
|
|
|
|
|
able to add a param to each URL (outdated), it will be called via 'params' |
23
|
|
|
|
|
|
|
when the time comes to add them to the calling URL. If the auth class |
24
|
|
|
|
|
|
|
expects to add an authorization header, it will be called via 'headers' |
25
|
|
|
|
|
|
|
to return the proper headers for that auth class. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
The default behaviour is to return nothing for each, so the derived class |
28
|
|
|
|
|
|
|
has to return at least something for one of them to be functional. |