line |
true |
false |
branch |
70
|
20 |
5 |
keys %{(shift())->clients // {};} ? : |
101
|
25 |
8 |
if (not $refresh_token) { } |
102
|
17 |
8 |
if ($auth_header) { } |
105
|
1 |
16 |
if ($auth_type ne 'Bearer') { } |
137
|
116 |
136 |
if (my $cb = $self->$cb_method) { } |
154
|
8 |
0 |
wantarray ? : |
163
|
12 |
4 |
if (my $client = $self->clients->{$client_id // ''}) |
167
|
4 |
28 |
if (not exists $self->clients->{$client_id}{'scopes'}{$scope}) { } |
|
24 |
4 |
elsif ($self->clients->{$client_id}{'scopes'}{$scope}) { } |
193
|
8 |
8 |
if $self->jwt_secret |
195
|
0 |
8 |
if (not defined $auth_code and $old_refresh_token) |
212
|
0 |
8 |
if $old_refresh_token |
222
|
4 |
4 |
if ($refresh_token) |
224
|
2 |
2 |
$self->_uses_auth_codes ? : |
232
|
2 |
6 |
if ($self->_uses_auth_codes) |
241
|
32 |
30 |
if $self->jwt_secret |
246
|
8 |
22 |
if ($is_refresh_token and exists $self->refresh_tokens->{$a_token}) { } |
|
16 |
6 |
elsif (exists $self->access_tokens->{$a_token}) { } |
250
|
8 |
0 |
if ($scopes_ref) |
253
|
0 |
16 |
unless $self->_has_scope($scope, $self->refresh_tokens->{$a_token}{'scope'}) |
261
|
0 |
16 |
if ($self->access_tokens->{$a_token}{'expires'} <= time) { } |
|
16 |
0 |
elsif ($scopes_ref) { } |
269
|
8 |
16 |
unless $self->_has_scope($scope, $self->access_tokens->{$a_token}{'scope'}) |
304
|
16 |
36 |
if $invalid_jwt |
306
|
36 |
0 |
if ($access_token_payload and $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh') |
313
|
36 |
0 |
if ($scopes_ref) |
316
|
12 |
48 |
unless $self->_has_scope($scope, $access_token_payload->{'scopes'}) |
334
|
2 |
44 |
ref $self->access_token_ttl eq 'CODE' ? : |
345
|
0 |
31 |
if (not $self->_uses_auth_codes and $type eq 'auth') |
352
|
4 |
27 |
$type eq 'auth' ? : |
357
|
8 |
23 |
if $type eq 'refresh' |
360
|
14 |
17 |
if (not $self->jwt_secret) { } |
365
|
1 |
16 |
if ($self->jwt_algorithm =~ /none/i) |
371
|
12 |
4 |
$ttl ? : |
|
2 |
14 |
$claims ? : |