Documentation

TokenInvalidate

Indicates whether the provider is capable of invalidating access tokens (RFC-7009 or proprietary)

Tags
link
https://datatracker.ietf.org/doc/html/rfc7009

Table of Contents

Methods

invalidateAccessToken()  : bool
Allows to invalidate an access token

Methods

invalidateAccessToken()

Allows to invalidate an access token

public invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool

Clients shall set the optional OAuthProvider::$revokeURL for use in this method. If a token is given via $token, that token should be invalidated, otherwise the current user token from the internal storage should be used. Returns true if the operation was successful, false otherwise. May throw a ProviderException if an error occurred.

Parameters
$token : AccessToken|null = null
$type : string|null = null
Tags
see
OAuthProvider::$revokeURL
throws
ProviderException
Return values
bool

        
On this page

Search results