class ClientAuthenticator

Constants

METHODS

protected MAX_ASSERTION_BYTES

protected MAX_ASSERTION_LIFETIME

protected ASSERTION_TYPE

Methods

__construct(ClientRepository $clients, ClientKeyRepository $keys, ReplayCache $replays, ServerFactory $servers)

Create the shared OAuth client authenticator.

authenticate(ServerRequestInterface $request)

Authenticate the request using the client's registered method.

string|null
parameter(array $parameters, string $name)

Read a form credential without changing its opaque value.

array
assertionParts(string $assertion, ServerRequestInterface $request)

Read bounded, untrusted assertion metadata for client and key selection.

void
validateAssertion(ServerRequestInterface $request, Client $client, string $assertion, array $header, array $claims)

Verify the assertion before consuming its replay identifier.

Details

at line 34
__construct(ClientRepository $clients, ClientKeyRepository $keys, ReplayCache $replays, ServerFactory $servers)

Create the shared OAuth client authenticator.

Parameters

ClientRepository $clients
ClientKeyRepository $keys
ReplayCache $replays
ServerFactory $servers

at line 45
Client authenticate(ServerRequestInterface $request)

Authenticate the request using the client's registered method.

Parameters

ServerRequestInterface $request

Return Value

Client

at line 138
protected string|null parameter(array $parameters, string $name)

Read a form credential without changing its opaque value.

Parameters

array $parameters
string $name

Return Value

string|null

at line 158
protected array assertionParts(string $assertion, ServerRequestInterface $request)

Read bounded, untrusted assertion metadata for client and key selection.

Parameters

string $assertion
ServerRequestInterface $request

Return Value

array

at line 181
protected void validateAssertion(ServerRequestInterface $request, Client $client, string $assertion, array $header, array $claims)

Verify the assertion before consuming its replay identifier.

Parameters

ServerRequestInterface $request
Client $client
string $assertion
array $header
array $claims

Return Value

void