Branch Coverage

blib/lib/OAuth/Lite2/Server/GrantHandler/ExternalService.pm
Criterion Covered Total %
branch 10 16 62.5


line true false branch
18 0 10 $header_credentials->{'client_id'} ? :
20 1 9 unless my $assertion = $req->param('assertion')
25 5 4 unless my $user_id = $dh->get_user_id_by_external_assertion('client_id', $client_id, 'assertion', $assertion, 'type', $req->param('type') || '', 'iss', $req->param('iss') || '', 'aud', $req->param('aud') || '')
40 0 4 unless $auth_info and $auth_info->isa('OAuth::Lite2::Model::AuthInfo')
47 0 4 unless $access_token and $access_token->isa('OAuth::Lite2::Model::AccessToken')
55 4 0 if $access_token->expires_in
57 4 0 if $auth_info->refresh_token
59 0 4 if $auth_info->scope