Documentation

TokenInvalidateTrait

Implements token invalidation functionality

Tags
see
TokenInvalidate

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

getInvalidateAccessTokenBodyParams()

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
see
OAuth2Provider::invalidateAccessToken()
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>
Tags
see
OAuth2Provider::invalidateAccessToken()
Return values
ResponseInterface

        
On this page

Search results