| blib/lib/Plack/Middleware/Auth/AccessToken.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 16 | 81.2 |
| line | true | false | branch |
|---|---|---|---|
| 17 | 0 | 2 | unless (ref $self->authenticator || '') eq 'CODE' |
| 20 | 1 | 1 | unless defined $self->token_type |
| 23 | 0 | 2 | if ref $self->reject_http and ref $self->reject_http ne 'CODE' |
| 32 | 4 | 5 | if (my $auth = $$env{'HTTP_AUTHORIZATION'}) { } |
| 34 | 4 | 0 | if $auth =~ /^\s*$token_type\s+(.+)/i |
| 40 | 7 | 2 | if (defined $token) { } |
| 41 | 1 | 6 | if ($self->reject_http and $$env{'psgi.url_scheme'} eq 'http') { } |
| 4 | 2 | elsif ($self->authenticator->($token, $env)) { } |