TokenInvalidateTrait
Implements token invalidation functionality
Tags
Table of Contents
Methods
- invalidateAccessToken() : bool
- implements TokenInvalidate::invalidateAccessToken()
- getInvalidateAccessTokenBodyParams() : array<string, scalar|bool|null>
- Prepares the body for a token revocation request
- sendTokenInvalidateRequest() : ResponseInterface
- Prepares and sends a request to the token invalidation endpoint
Methods
invalidateAccessToken()
implements TokenInvalidate::invalidateAccessToken()
public
invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
Parameters
- $token : AccessToken|null = null
- $type : string|null = null
Tags
Return values
boolgetInvalidateAccessTokenBodyParams()
Prepares the body for a token revocation request
protected
getInvalidateAccessTokenBodyParams(AccessToken $token, string $type) : array<string, scalar|bool|null>
Parameters
- $token : AccessToken
- $type : string
Tags
Return values
array<string, scalar|bool|null>sendTokenInvalidateRequest()
Prepares and sends a request to the token invalidation endpoint
protected
sendTokenInvalidateRequest(string $url, array<string, scalar|bool|null> $body) : ResponseInterface
Parameters
- $url : string
- $body : array<string, scalar|bool|null>