@@ -2474,6 +2494,83 @@ Return values
string|null
+
+
+
+ invalidateAccessToken()
+
+
+
+
+
+
+
+ public
+ invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+
+
+
+
+ Parameters
+
+ -
+ $token
+ : AccessToken
+ = null
+ -
+
+
+ -
+ $type
+ : string|null
+ = null
+ -
+
+
+
+
+
+
+
+ -
+ implements
+
+ -
+
+
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
+
+
+
+ -
+ throws
+
+ -
+ ProviderException
+
+
+
+
+
+
+
@@ -2866,9 +2963,9 @@ prepares the request body parameters for the access token request
@@ -3787,9 +3884,9 @@
OAuth2Provider.php
:
- 75
+ 76
-
+
prepares the query parameters for the auth URL
@@ -3856,9 +3953,9 @@
OAuth2Provider.php
:
- 323
+ 324
-
+
prepares the request body parameters for the client credentials token request
@@ -3903,6 +4000,75 @@ Return values
array<string|int, mixed>
+
+
+
+ getInvalidateAccessTokenBodyParams()
+
+
+
+
+
+ Prepares the body for a token revocation request
+
+
+ protected
+ getInvalidateAccessTokenBodyParams(AccessToken $token, string $type) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+ -
+ $token
+ : AccessToken
+
+ -
+
+
+ -
+ $type
+ : string
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ see
+
+ -
+ OAuth2Provider::invalidateAccessToken()
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
OAuth2Provider.php
:
- 595
+ 671
-
+
Parses the response from the PAR request and returns the query parameters for the authorization URL
@@ -4080,9 +4246,9 @@
OAuth2Provider.php
:
- 399
+ 400
-
+
prepares the request body parameters for the token refresh
@@ -4316,9 +4482,9 @@
extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4522,9 +4688,9 @@
Parses the response from a request to the token endpoint
@@ -4622,9 +4788,9 @@
sends a request to the access/refresh token endpoint $url with the given $body as form data
@@ -4707,9 +4873,9 @@
OAuth2Provider.php
:
- 338
+ 339
-
+
sends a request to the client credentials endpoint, using basic authentication
@@ -4810,6 +4976,75 @@ Parameters
+
+ Return values
+ ResponseInterface
+
+
+
+
+
+ sendTokenInvalidateRequest()
+
+
+
+
+
+ Prepares and sends a request to the token invalidation endpoint
+
+
+ protected
+ sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+
+
+
+
+ Parameters
+
+ -
+ $url
+ : string
+
+ -
+
+
+ -
+ $body
+ : array<string|int, mixed>
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ see
+
+ -
+ OAuth2Provider::invalidateAccessToken()
+
+
+
+
+
Return values
ResponseInterface
@@ -5045,6 +5280,7 @@ Return values
getRequestAuthorization()
getStorage()
getUserRevokeURL()
+ invalidateAccessToken()
InvalidateAccessToken()
me()
refreshAccessToken()
@@ -5067,6 +5303,7 @@ Return values
getAccessTokenRequestBodyParams()
getAuthorizationURLRequestParams()
getClientCredentialsTokenRequestBodyParams()
+ getInvalidateAccessTokenBodyParams()
getMeResponseData()
getParAuthorizationURLRequestParams()
getRefreshAccessTokenRequestBodyParams()
@@ -5080,6 +5317,7 @@ Return values
sendAccessTokenRequest()
sendClientCredentialsTokenRequest()
sendMeRequest()
+ sendTokenInvalidateRequest()
setRequestBody()
diff --git a/classes/chillerlan-OAuth-Providers-MusicBrainz.html b/classes/chillerlan-OAuth-Providers-MusicBrainz.html
index 0c34a80..ba44fdc 100644
--- a/classes/chillerlan-OAuth-Providers-MusicBrainz.html
+++ b/classes/chillerlan-OAuth-Providers-MusicBrainz.html
@@ -198,7 +198,7 @@
- - CSRFToken
- Specifies the methods required for the OAuth2 CSRF token validation ("state parameter")
- TokenInvalidate
- Indicates whether the provider is capable of invalidating access tokens
- TokenRefresh
- Indicates whether the provider is capable of the OAuth2 token refresh.
- UserInfo
- Indicates whether the service can provide information about the currently authenticated user,
+
- CSRFToken
- Specifies the methods required for the OAuth2 CSRF token validation ("state parameter")
- TokenInvalidate
- Indicates whether the provider is capable of invalidating access tokens (RFC-7009 or proprietary)
- TokenRefresh
- Indicates whether the provider is capable of the OAuth2 token refresh.
- UserInfo
- Indicates whether the service can provide information about the currently authenticated user,
usually via a "/me", "/user" or "/tokeninfo" endpoint.
@@ -500,17 +500,16 @@
Returns the link to the page where a user can revoke access tokens, or null if the value is not set
- InvalidateAccessToken()
+ invalidateAccessToken()
: bool
- invalidateAccessToken()
+ InvalidateAccessToken()
: bool
-Allows to invalidate an access token
me()
@@ -654,6 +653,13 @@
prepares the request body parameters for the client credentials token request
+
+ getInvalidateAccessTokenBodyParams()
+
+ : array<string|int, mixed>
+
+Prepares the body for a token revocation request
+
getMeResponseData()
@@ -746,6 +752,13 @@
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
+
+ sendTokenInvalidateRequest()
+
+ : ResponseInterface
+
+Prepares and sends a request to the token invalidation endpoint
+
setRequestBody()
@@ -1208,9 +1221,9 @@
An optional client credentials token endpoint in case the provider supports ClientCredentials.
@@ -1400,9 +1413,9 @@
An optional PAR (Pushed Authorization Request) endpoint URL
@@ -1450,9 +1463,9 @@
An optional refresh token endpoint in case the provider supports TokenRefresh.
@@ -1798,9 +1811,9 @@
@@ -1872,9 +1885,9 @@
@@ -1949,9 +1962,9 @@
@@ -2028,9 +2041,9 @@
Obtains an OAuth2 access token with the given $code, verifies the $state
@@ -2271,9 +2284,9 @@
@@ -2338,9 +2351,9 @@
@@ -2466,9 +2479,9 @@
@@ -2536,9 +2549,9 @@
@@ -2711,23 +2724,23 @@ Return values
-public
"
>
-
- InvalidateAccessToken()
-
+
+ invalidateAccessToken()
+
public
- InvalidateAccessToken([AccessToken|null $token = null ]) : bool
+ invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
@@ -2736,7 +2749,14 @@ Parameters
-
$token
- : AccessToken|null
+ : AccessToken
+ = null
+ -
+
+
+ -
+ $type
+ : string|null
= null
-
@@ -2746,7 +2766,7 @@
Parameters
Tags
-
+
@@ -2755,16 +2775,9 @@
- \chillerlan\OAuth\Core\TokenInvalidate
+ \chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-
-
- codeCoverageIgnore
-
-
-
-
throws
@@ -2788,23 +2801,23 @@ Return values
-public
"
>
-
- invalidateAccessToken()
-
+
+ InvalidateAccessToken()
+
-
Allows to invalidate an access token
-
+
public
- invalidateAccessToken([AccessToken|null $token = null ]) : bool
+ InvalidateAccessToken([AccessToken|null $token = null ]) : bool
@@ -2823,16 +2836,33 @@ Parameters
Tags
-
+
-
- inheritDoc
+ implements
+
+ -
+
+
\chillerlan\OAuth\Core\TokenInvalidate
+
+
+
+ -
+ codeCoverageIgnore
-
+
+ -
+ throws
+
+ -
+ ProviderException
+
+
@@ -2856,7 +2886,7 @@
@@ -2913,9 +2943,9 @@
@@ -2983,7 +3013,7 @@
@@ -3145,9 +3175,9 @@
@@ -3222,9 +3252,9 @@
@@ -3428,9 +3458,9 @@
@@ -4004,9 +4034,9 @@
OAuth2Provider.php
:
- 210
+ 211
-
+
prepares the request body parameters for the access token request
@@ -4066,9 +4096,9 @@
OAuth2Provider.php
:
- 75
+ 76
-
+
prepares the query parameters for the auth URL
@@ -4135,9 +4165,9 @@
OAuth2Provider.php
:
- 323
+ 324
-
+
prepares the request body parameters for the client credentials token request
@@ -4174,6 +4204,73 @@
OAuth2Provider::getClientCredentialsToken()
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
+
+
+
+ getInvalidateAccessTokenBodyParams()
+
+
+
+
+
+ Prepares the body for a token revocation request
+
+
+ protected
+ getInvalidateAccessTokenBodyParams(AccessToken $token, string $type) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+ -
+ $token
+ : AccessToken
+
+ -
+
+
+ -
+ $type
+ : string
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ inheritDoc
+
+ -
+
+
@@ -4290,9 +4387,9 @@
OAuth2Provider.php
:
- 595
+ 671
-
+
Parses the response from the PAR request and returns the query parameters for the authorization URL
@@ -4593,9 +4690,9 @@
extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4799,9 +4896,9 @@
Parses the response from a request to the token endpoint
@@ -4899,9 +4996,9 @@
sends a request to the access/refresh token endpoint $url with the given $body as form data
@@ -4984,9 +5081,9 @@
OAuth2Provider.php
:
- 338
+ 339
-
+
sends a request to the client credentials endpoint, using basic authentication
@@ -5087,6 +5184,75 @@ Parameters
+
+ Return values
+ ResponseInterface
+
+
+
+
+
+ sendTokenInvalidateRequest()
+
+
+
+
+
+ Prepares and sends a request to the token invalidation endpoint
+
+
+ protected
+ sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+
+
+
+
+ Parameters
+
+ -
+ $url
+ : string
+
+ -
+
+
+ -
+ $body
+ : array<string|int, mixed>
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ see
+
+ -
+ OAuth2Provider::invalidateAccessToken()
+
+
+
+
+
Return values
ResponseInterface
@@ -5329,8 +5495,8 @@ Return values
getRequestAuthorization()
getStorage()
getUserRevokeURL()
+ invalidateAccessToken()
InvalidateAccessToken()
- invalidateAccessToken()
me()
refreshAccessToken()
request()
@@ -5352,6 +5518,7 @@ Return values
getAccessTokenRequestBodyParams()
getAuthorizationURLRequestParams()
getClientCredentialsTokenRequestBodyParams()
+ getInvalidateAccessTokenBodyParams()
getMeResponseData()
getParAuthorizationURLRequestParams()
getRefreshAccessTokenRequestBodyParams()
@@ -5365,6 +5532,7 @@ Return values
sendAccessTokenRequest()
sendClientCredentialsTokenRequest()
sendMeRequest()
+ sendTokenInvalidateRequest()
setRequestBody()
diff --git a/classes/chillerlan-OAuth-Providers-NPROne.html b/classes/chillerlan-OAuth-Providers-NPROne.html
index 22aae9a..6a14a7f 100644
--- a/classes/chillerlan-OAuth-Providers-NPROne.html
+++ b/classes/chillerlan-OAuth-Providers-NPROne.html
@@ -198,7 +198,7 @@
- - CSRFToken
- Specifies the methods required for the OAuth2 CSRF token validation ("state parameter")
- TokenRefresh
- Indicates whether the provider is capable of the OAuth2 token refresh.
- TokenInvalidate
- Indicates whether the provider is capable of invalidating access tokens
- UserInfo
- Indicates whether the service can provide information about the currently authenticated user,
+
- CSRFToken
- Specifies the methods required for the OAuth2 CSRF token validation ("state parameter")
- TokenRefresh
- Indicates whether the provider is capable of the OAuth2 token refresh.
- TokenInvalidate
- Indicates whether the provider is capable of invalidating access tokens (RFC-7009 or proprietary)
- UserInfo
- Indicates whether the service can provide information about the currently authenticated user,
usually via a "/me", "/user" or "/tokeninfo" endpoint.
@@ -489,17 +489,16 @@
Returns the link to the page where a user can revoke access tokens, or null if the value is not set
- InvalidateAccessToken()
+ invalidateAccessToken()
: bool
- invalidateAccessToken()
+ InvalidateAccessToken()
: bool
-Allows to invalidate an access token
me()
@@ -652,6 +651,13 @@
prepares the request body parameters for the client credentials token request
+
+ getInvalidateAccessTokenBodyParams()
+
+ : array<string|int, mixed>
+
+Prepares the body for a token revocation request
+
getMeResponseData()
@@ -744,6 +750,13 @@
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
+
+ sendTokenInvalidateRequest()
+
+ : ResponseInterface
+
+Prepares and sends a request to the token invalidation endpoint
+
setRequestBody()
@@ -1150,9 +1163,9 @@
An optional client credentials token endpoint in case the provider supports ClientCredentials.
@@ -1342,9 +1355,9 @@
An optional PAR (Pushed Authorization Request) endpoint URL
@@ -1392,9 +1405,9 @@
An optional refresh token endpoint in case the provider supports TokenRefresh.
@@ -1742,9 +1755,9 @@
@@ -1816,9 +1829,9 @@
@@ -1893,9 +1906,9 @@
@@ -1972,9 +1985,9 @@
Obtains an OAuth2 access token with the given $code, verifies the $state
@@ -2215,9 +2228,9 @@
@@ -2282,9 +2295,9 @@
@@ -2410,9 +2423,9 @@
@@ -2480,9 +2493,9 @@
@@ -2655,23 +2668,23 @@ Return values
-public
"
>
-
- InvalidateAccessToken()
-
+
+ invalidateAccessToken()
+
public
- InvalidateAccessToken([AccessToken|null $token = null ]) : bool
+ invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
@@ -2680,7 +2693,14 @@ Parameters
-
$token
- : AccessToken|null
+ : AccessToken
+ = null
+ -
+
+
+ -
+ $type
+ : string|null
= null
-
@@ -2690,7 +2710,7 @@
Parameters
Tags
-
+
@@ -2699,16 +2719,9 @@
- \chillerlan\OAuth\Core\TokenInvalidate
+ \chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-
-
- codeCoverageIgnore
-
-
-
-
throws
@@ -2732,23 +2745,23 @@ Return values
-public
"
>
-
- invalidateAccessToken()
-
+
+ InvalidateAccessToken()
+
-
Allows to invalidate an access token
-
+
public
- invalidateAccessToken([AccessToken|null $token = null ]) : bool
+ InvalidateAccessToken([AccessToken|null $token = null ]) : bool
@@ -2767,16 +2780,33 @@ Parameters
Tags
-
+
-
- inheritDoc
+ implements
+
+ -
+
+
\chillerlan\OAuth\Core\TokenInvalidate
+
+
+
+ -
+ codeCoverageIgnore
-
+
+ -
+ throws
+
+ -
+ ProviderException
+
+
@@ -2857,9 +2887,9 @@
@@ -3161,9 +3191,9 @@
@@ -3238,9 +3268,9 @@
@@ -3444,9 +3474,9 @@
@@ -4020,9 +4050,9 @@
OAuth2Provider.php
:
- 210
+ 211
-
+
prepares the request body parameters for the access token request
@@ -4082,9 +4112,9 @@
OAuth2Provider.php
:
- 75
+ 76
-
+
prepares the query parameters for the auth URL
@@ -4151,9 +4181,9 @@
OAuth2Provider.php
:
- 323
+ 324
-
+
prepares the request body parameters for the client credentials token request
@@ -4198,6 +4228,75 @@ Return values
array<string|int, mixed>
+
+
+
+ getInvalidateAccessTokenBodyParams()
+
+
+
+
+
+ Prepares the body for a token revocation request
+
+
+ protected
+ getInvalidateAccessTokenBodyParams(AccessToken $token, string $type) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+ -
+ $token
+ : AccessToken
+
+ -
+
+
+ -
+ $type
+ : string
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ see
+
+ -
+ OAuth2Provider::invalidateAccessToken()
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
OAuth2Provider.php
:
- 595
+ 671
-
+
Parses the response from the PAR request and returns the query parameters for the authorization URL
@@ -4375,9 +4474,9 @@
OAuth2Provider.php
:
- 399
+ 400
-
+
prepares the request body parameters for the token refresh
@@ -4611,9 +4710,9 @@
extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4817,9 +4916,9 @@
Parses the response from a request to the token endpoint
@@ -4917,9 +5016,9 @@
sends a request to the access/refresh token endpoint $url with the given $body as form data
@@ -5002,9 +5101,9 @@
OAuth2Provider.php
:
- 338
+ 339
-
+
sends a request to the client credentials endpoint, using basic authentication
@@ -5105,6 +5204,75 @@ Parameters
+
+ Return values
+ ResponseInterface
+
+
+
+
+
+ sendTokenInvalidateRequest()
+
+
+
+
+
+ Prepares and sends a request to the token invalidation endpoint
+
+
+ protected
+ sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+
+
+
+
+ Parameters
+
+ -
+ $url
+ : string
+
+ -
+
+
+ -
+ $body
+ : array<string|int, mixed>
+
+ -
+
+
+
+
+
+
+ Tags
+
+
+
+
+ -
+ see
+
+ -
+ OAuth2Provider::invalidateAccessToken()
+
+
+
+
+