blib/lib/Net/OAuth2/AuthorizationServer/Defaults.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 42 | 57.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
199 | 2 | 6 | 0 | not defined $auth_code and $old_refresh_token |
250 | 18 | 4 | 8 | $is_refresh_token and exists $self->refresh_tokens->{$a_token} |
320 | 0 | 12 | 24 | $access_token_payload and $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh' |
359 | 12 | 19 | 0 | not $self->_uses_auth_codes and $type eq 'auth' |
line | l | !l | condition |
---|---|---|---|
70 | 25 | 0 | (shift())->clients // {} |
158 | 8 | 0 | $args{'scopes'} // [] |
167 | 16 | 0 | $client_id // '' |
170 | 12 | 0 | $scopes_ref // [] |
219 | 4 | 4 | $refresh_token // undef |
255 | 8 | 0 | $scopes_ref // [] |
276 | 16 | 0 | $scopes_ref // [] |
296 | 120 | 0 | $available_scopes // [] |
328 | 36 | 0 | $scopes_ref // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
121 | 24 | 0 | 4 | $access_token or $refresh_token |
192 | 0 | 16 | 0 | $expires_in //= $self->get_access_token_ttl('scopes', $scope, 'client_id', $c_id) |
211 | 0 | 0 | 0 | $scope //= $self->refresh_tokens->{$old_refresh_token}{'scope'} |
320 | 28 | 8 | 0 | $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh' |