| 1 | <?php |
||
| 21 | final class None implements AuthenticationMethod |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function getSchemesParameters(): array |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function findClientIdAndCredentials(ServerRequestInterface $request, &$clientCredentials = null): ? ClientId |
||
| 35 | { |
||
| 36 | $parameters = $request->getParsedBody() ?? []; |
||
| 37 | if (array_key_exists('client_id', $parameters)) { |
||
| 38 | return ClientId::create($parameters['client_id']); |
||
| 39 | } |
||
| 40 | |||
| 41 | return null; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function checkClientConfiguration(DataBag $command_parameters, DataBag $validated_parameters): DataBag |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function isClientAuthenticated(Client $client, $clientCredentials, ServerRequestInterface $request): bool |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function getSupportedMethods(): array |
||
| 67 | } |
||
| 68 |