line |
true |
false |
branch |
70
|
20 |
5 |
keys %{(shift())->clients // {};} ? : |
101
|
29 |
8 |
if (not $refresh_token) { } |
102
|
21 |
8 |
if ($auth_header) { } |
105
|
1 |
20 |
if ($auth_type ne 'Bearer') { } |
121
|
4 |
0 |
unless $access_token or $refresh_token |
141
|
116 |
136 |
if (my $cb = $self->$cb_method) { } |
158
|
8 |
0 |
wantarray ? : |
167
|
12 |
4 |
if (my $client = $self->clients->{$client_id // ''}) |
171
|
4 |
28 |
if (not exists $self->clients->{$client_id}{'scopes'}{$scope}) { } |
|
24 |
4 |
elsif ($self->clients->{$client_id}{'scopes'}{$scope}) { } |
197
|
8 |
8 |
if $self->jwt_secret |
199
|
0 |
8 |
if (not defined $auth_code and $old_refresh_token) |
216
|
0 |
8 |
if $old_refresh_token |
226
|
4 |
4 |
if ($refresh_token) |
228
|
2 |
2 |
$self->_uses_auth_codes ? : |
236
|
2 |
6 |
if ($self->_uses_auth_codes) |
245
|
32 |
30 |
if $self->jwt_secret |
250
|
8 |
22 |
if ($is_refresh_token and exists $self->refresh_tokens->{$a_token}) { } |
|
16 |
6 |
elsif (exists $self->access_tokens->{$a_token}) { } |
254
|
8 |
0 |
if ($scopes_ref) |
257
|
0 |
16 |
unless $self->_has_scope($scope, $self->refresh_tokens->{$a_token}{'scope'}) |
270
|
0 |
16 |
if ($self->access_tokens->{$a_token}{'expires'} <= time) { } |
|
16 |
0 |
elsif ($scopes_ref) { } |
278
|
8 |
16 |
unless $self->_has_scope($scope, $self->access_tokens->{$a_token}{'scope'}) |
318
|
16 |
36 |
if $invalid_jwt |
320
|
36 |
0 |
if ($access_token_payload and $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh') |
327
|
36 |
0 |
if ($scopes_ref) |
330
|
12 |
48 |
unless $self->_has_scope($scope, $access_token_payload->{'scopes'}) |
348
|
2 |
44 |
ref $self->access_token_ttl eq 'CODE' ? : |
359
|
0 |
31 |
if (not $self->_uses_auth_codes and $type eq 'auth') |
366
|
4 |
27 |
$type eq 'auth' ? : |
371
|
8 |
23 |
if $type eq 'refresh' |
374
|
14 |
17 |
if (not $self->jwt_secret) { } |
379
|
1 |
16 |
if ($self->jwt_algorithm =~ /none/i) |
385
|
12 |
4 |
$ttl ? : |
|
2 |
14 |
$claims ? : |