blib/lib/OAuth/Lite2/Server/GrantHandler/ClientCredentials.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 9 | 16 | 56.2 |
line | true | false | branch |
---|---|---|---|
18 | 0 | 3 | $$header_credentials{'client_id'} ? : |
19 | 0 | 3 | $$header_credentials{'client_secret'} ? : |
22 | 1 | 2 | unless defined $user_id |
31 | 0 | 2 | unless $auth_info and $auth_info->isa('OAuth::Lite2::Model::AuthInfo') |
38 | 0 | 2 | unless $access_token and $access_token->isa('OAuth::Lite2::Model::AccessToken') |
46 | 2 | 0 | if $access_token->expires_in |
48 | 2 | 0 | if $auth_info->refresh_token |
50 | 0 | 2 | if $auth_info->scope |