Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace LambdaTwelve\OneRecord\Server\Spi; |
| 6 | |
| 7 | use Psr\Http\Message\ServerRequestInterface; |
| 8 | |
| 9 | /** |
| 10 | * Turns a request into the agent it comes from, or null when it carries no |
| 11 | * acceptable credential (the server answers 401 either way). JwtAuthenticator |
| 12 | * implements the spec's OpenID Connect bearer tokens; a host with another |
| 13 | * mechanism (mutual TLS, an API gateway header it trusts) implements this. |
| 14 | */ |
| 15 | interface Authenticator |
| 16 | { |
| 17 | public function authenticate(ServerRequestInterface $request): ?Agent; |
| 18 | } |