blib/lib/Dancer2/Plugin/Auth/OAuth/Provider.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 38 | 44.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
53 | 63 | 4 | 1 | ref $v and ref $v eq "HASH" |
239 | 3 | 0 | 2 | $params->{'expires_in'} and not defined $params->{'expires'} |
line | l | !l | condition |
---|---|---|---|
23 | 6 | 6 | $self->{'settings'}{'providers'}{$self->_provider} || {} |
27 | 8 | 4 | $self->provider_settings->{'version'} || 2 |
68 | 0 | 3 | $self->provider_settings->{'signature_method'} || 'HMAC-SHA1' |
127 | 0 | 0 | $self->settings->{'error_url'} || '/' |
145 | 0 | 0 | $session->read('oauth') || {} |
177 | 0 | 6 | $session->read('oauth') || {} |
180 | 0 | 0 | $self->settings->{'error_url'} || '/' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
30 | 0 | 12 | 0 | $self->{'ua'} ||= "LWP::UserAgent"->new |
106 | 5 | 1 | 0 | $self->settings->{'base'} ||= $base |
147 | 0 | 0 | 0 | $self->protocol_version < 2 or not defined $session_data->{$provider} |
0 | 0 | 0 | $self->protocol_version < 2 or not defined $session_data->{$provider} or not defined $session_data->{$provider}{'refresh_token'} | |
174 | 6 | 0 | 0 | $self->settings->{'base'} ||= $request->uri_base |
217 | 2 | 0 | 3 | $content_type =~ /json/ or $content_type =~ /javascript/ |