line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Web::Auth::Base; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
421
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
4
|
1
|
|
|
1
|
|
687
|
use Mojo::UserAgent; |
|
1
|
|
|
|
|
252843
|
|
|
1
|
|
|
|
|
10
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'key'; |
7
|
|
|
|
|
|
|
has 'secret'; |
8
|
|
|
|
|
|
|
has 'user_info'; |
9
|
|
|
|
|
|
|
has 'authorize_url'; |
10
|
|
|
|
|
|
|
has 'access_token_url'; |
11
|
|
|
|
|
|
|
has 'user_info_url'; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
0
|
0
|
|
sub moniker { die 'override me' }; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub auth_uri { |
16
|
0
|
|
|
0
|
0
|
|
my ($self, $c, $callback_uri) = @_; |
17
|
0
|
|
|
|
|
|
"auth_uri() is not implemented"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub callback { |
21
|
0
|
|
|
0
|
0
|
|
my ($self, $c, $callback_uri) = @_; |
22
|
0
|
|
|
|
|
|
"callback() is not implemented"; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |