class TokenManagementController

Methods

__construct(ClientAuthenticator $authenticator, AccessTokenRepository $tokens, ServerFactory $servers, AuthorizationResponse $responses)

Create the token revocation and introspection endpoints.

Response
revoke(Request $request, ServerRequestInterface $psrRequest)

Revoke a credential without revealing whether it belongs to another client.

Response
introspect(Request $request, ServerRequestInterface $psrRequest)

Describe a live credential to its owner or an authorized resource server.

array
authenticate(Request $request, ServerRequestInterface $psrRequest)

Authenticate a form request before examining its target credential.

array|null
findCredential(string $value)

Verify and locate a credential without applying its current authorization policy.

array
metadata(Client $client, Token|RefreshToken $token, array $claims)

Return only the metadata this authenticated client may inspect.

Details

at line 32
__construct(ClientAuthenticator $authenticator, AccessTokenRepository $tokens, ServerFactory $servers, AuthorizationResponse $responses)

Create the token revocation and introspection endpoints.

Parameters

ClientAuthenticator $authenticator
AccessTokenRepository $tokens
ServerFactory $servers
AuthorizationResponse $responses

at line 43
Response revoke(Request $request, ServerRequestInterface $psrRequest)

Revoke a credential without revealing whether it belongs to another client.

Parameters

Request $request
ServerRequestInterface $psrRequest

Return Value

Response

at line 72
Response introspect(Request $request, ServerRequestInterface $psrRequest)

Describe a live credential to its owner or an authorized resource server.

Parameters

Request $request
ServerRequestInterface $psrRequest

Return Value

Response

at line 95
protected array authenticate(Request $request, ServerRequestInterface $psrRequest)

Authenticate a form request before examining its target credential.

Parameters

Request $request
ServerRequestInterface $psrRequest

Return Value

array

at line 113
protected array|null findCredential(string $value)

Verify and locate a credential without applying its current authorization policy.

Parameters

string $value

Return Value

array|null

at line 150
protected array metadata(Client $client, Token|RefreshToken $token, array $claims)

Return only the metadata this authenticated client may inspect.

Parameters

Client $client
Token|RefreshToken $token
array $claims

Return Value

array