diff --git a/classes/chillerlan-OAuth-Core-CSRFStateMismatchException.html b/classes/chillerlan-OAuth-Core-CSRFStateMismatchException.html
new file mode 100644
index 00000000..05b15890
--- /dev/null
+++ b/classes/chillerlan-OAuth-Core-CSRFStateMismatchException.html
@@ -0,0 +1,314 @@
+
+
+
+
+ Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CSRFStateMismatchException
+
+
+ extends OAuthException
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Table of Contents
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/classes/chillerlan-OAuth-Core-OAuth1Interface.html b/classes/chillerlan-OAuth-Core-OAuth1Interface.html
index 2d8c5330..9ed4ca7d 100644
--- a/classes/chillerlan-OAuth-Core-OAuth1Interface.html
+++ b/classes/chillerlan-OAuth-Core-OAuth1Interface.html
@@ -207,13 +207,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt
and returns a PSR-7 UriInterface with all necessary parameters set
-
- getRequestToken()
-
- : AccessToken
-
-Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
-
getStorage()
@@ -374,7 +367,7 @@
@@ -444,7 +437,7 @@
@@ -480,7 +473,7 @@
@@ -489,7 +482,7 @@
public
- getAuthURL ( [ array<string|int, mixed>|null $params = null ] ) : UriInterface
+ getAuthURL ( [ array<string|int, mixed>|null $params = null ] [ , array<string|int, mixed>|null $scopes = null ] ) : UriInterface
@@ -502,6 +495,13 @@ Parameters
= null
+
+
+ $scopes
+ : array<string|int, mixed>|null
+ = null
+
+
@@ -519,63 +519,12 @@ getAccessToken()
getAccessTokenFromStorage()
getAuthURL()
- getRequestToken()
getStorage()
me()
request()
diff --git a/classes/chillerlan-OAuth-Core-OAuth1Provider.html b/classes/chillerlan-OAuth-Core-OAuth1Provider.html
index d11c69f0..1fe01383 100644
--- a/classes/chillerlan-OAuth-Core-OAuth1Provider.html
+++ b/classes/chillerlan-OAuth-Core-OAuth1Provider.html
@@ -146,16 +146,37 @@
- Implements an abstract OAuth1 provider with all methods required by the OAuth1Interface.
+ Implements an abstract OAuth1 (1.0a) provider with all methods required by the OAuth1Interface.
+
- @see https://datatracker.ietf.org/doc/html/rfc5849
-
+
+ Tags
+
+
+
+
+ see
+
+
+ https://oauth.net/core/1.0a/
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc5849
+
+
+
+
@@ -352,13 +373,6 @@
: RequestInterface
-
- getRequestToken()
-
- : AccessToken
-
-Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
-
getStorage()
@@ -486,6 +500,13 @@
Determine the request target from the given URI (path segment or URL) with respect to $apiURL,
anything except host and path will be ignored, scheme will always be set to "https".
+
+ getRequestTokenRequestParams()
+
+ : array<string|int, mixed>
+
+prepares the parameters for the request token request header
+
getRequestURL()
@@ -501,7 +522,7 @@
Generates a request signature
- nonce()
+ nonce()
: string
@@ -526,7 +547,7 @@
: ResponseInterface
-Sends a request to the request token endpoint with the given params
+Sends a request to the request token endpoint
@@ -896,7 +917,7 @@
@@ -1225,7 +1246,7 @@ Parameters
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
__get()
@@ -1243,7 +1264,7 @@
public
- __get ( string $name ) : string|null
+ final __get ( string $name ) : string|null
@@ -1281,7 +1302,7 @@
@@ -1413,14 +1434,14 @@
public
- getAuthURL ( [ array<string|int, mixed>|null $params = null ] ) : UriInterface
+ getAuthURL ( [ array<string|int, mixed>|null $params = null ] [ , array<string|int, mixed>|null $scopes = null ] ) : UriInterface
@@ -1433,6 +1454,13 @@ Parameters
= null
+
+
+ $scopes
+ : array<string|int, mixed>|null
+ = null
+
+
@@ -1472,14 +1500,14 @@
public
- getRequestAuthorization ( RequestInterface $request , AccessToken $token ) : RequestInterface
+ getRequestAuthorization ( RequestInterface $request [ , AccessToken |null $token = null ] ) : RequestInterface
@@ -1495,8 +1523,8 @@ Parameters
$token
- : AccessToken
-
+ : AccessToken |null
+ = null
@@ -1528,57 +1556,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
->
-
- getRequestToken()
-
-
-
-
-
- Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
-
-
- public
- getRequestToken ( ) : AccessToken
-
-
-
-
-
-
-
- Tags
-
-
-
-
-
- inheritDoc
-
-
-
-
-
-
-
-
-
-
-
getStorage()
@@ -1596,7 +1574,7 @@
public
- getStorage ( ) : OAuthStorageInterface
+ final getStorage ( ) : OAuthStorageInterface
@@ -1645,7 +1623,7 @@
@@ -1721,7 +1699,7 @@
@@ -1778,7 +1756,7 @@
@@ -1872,7 +1850,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
sendRequest()
@@ -1882,14 +1860,14 @@
public
- sendRequest ( RequestInterface $request ) : ResponseInterface
+ final sendRequest ( RequestInterface $request ) : ResponseInterface
@@ -1939,7 +1917,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setLogger()
@@ -1957,7 +1935,7 @@
public
- setLogger ( LoggerInterface $logger ) : static
+ final setLogger ( LoggerInterface $logger ) : static
@@ -2006,7 +1984,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setRequestFactory()
@@ -2024,7 +2002,7 @@
public
- setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
+ final setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
@@ -2073,7 +2051,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStorage()
@@ -2091,7 +2069,7 @@
public
- setStorage ( OAuthStorageInterface $storage ) : static
+ final setStorage ( OAuthStorageInterface $storage ) : static
@@ -2140,7 +2118,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStreamFactory()
@@ -2158,7 +2136,7 @@
public
- setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
+ final setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
@@ -2207,7 +2185,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setUriFactory()
@@ -2225,7 +2203,7 @@
public
- setUriFactory ( UriFactoryInterface $uriFactory ) : static
+ final setUriFactory ( UriFactoryInterface $uriFactory ) : static
@@ -2526,7 +2504,7 @@
@@ -2640,7 +2618,7 @@
@@ -2653,7 +2631,7 @@
- Throws if the given path is invalid or if the host of a given URL does not match $apiURL.
+ Throws if the host of a given URL does not match the host of $apiURL.
Parameters
@@ -2697,6 +2675,57 @@ Return values
string
+
+
+
+ getRequestTokenRequestParams()
+
+
+
+
+
+ prepares the parameters for the request token request header
+
+
+ protected
+ getRequestTokenRequestParams ( ) : array<string|int, mixed>
+
+
+
+
+
+
+
+ Tags
+
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc5849#section-2.1
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
@@ -2849,13 +2878,13 @@ Return values
>
nonce()
-
+
@@ -2863,16 +2892,26 @@
protected
- nonce ( ) : string
+ nonce ( [ int $bytes = 32 ] ) : string
-
+ Parameters
+
+
+ $bytes
+ : int
+ = 32
+
+
+
+
+
Tags
-
+
@@ -2883,6 +2922,14 @@
https://datatracker.ietf.org/doc/html/rfc5849#section-3.3
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
+
+
@@ -2906,7 +2953,7 @@
@@ -2914,11 +2961,13 @@
protected
- parseTokenResponse ( ResponseInterface $response , bool $checkCallback ) : AccessToken
+ parseTokenResponse ( ResponseInterface $response [ , bool $confirmCallback = false ] ) : AccessToken
-
+ Note: "oauth_callback_confirmed" is only sent in request token response
+
+
Parameters
@@ -2929,9 +2978,9 @@ Parameters
- $checkCallback
+ $confirmCallback
: bool
-
+ = false
@@ -2990,7 +3039,7 @@
@@ -2998,7 +3047,7 @@
protected
- sendAccessTokenRequest ( AccessToken $token , string $verifier ) : ResponseInterface
+ sendAccessTokenRequest ( string $verifier ) : ResponseInterface
@@ -3006,13 +3055,6 @@
Parameters
- $token
- : AccessToken
-
-
-
-
-
$verifier
: string
@@ -3043,15 +3085,15 @@
- Sends a request to the request token endpoint with the given params
+ Sends a request to the request token endpoint
protected
- sendRequestTokenRequest ( array<string|int, mixed> $requestTokenRequestParams ) : ResponseInterface
+ sendRequestTokenRequest ( string $url ) : ResponseInterface
@@ -3059,8 +3101,8 @@
Parameters
- $requestTokenRequestParams
- : array<string|int, mixed>
+ $url
+ : string
@@ -3223,7 +3265,6 @@ Return values
getAccessTokenFromStorage()
getAuthURL()
getRequestAuthorization()
- getRequestToken()
getStorage()
InvalidateAccessToken()
me()
@@ -3242,9 +3283,10 @@ Return values
getRequestBody()
getRequestHeaders()
getRequestTarget()
+ getRequestTokenRequestParams()
getRequestURL()
getSignature()
- nonce()
+ nonce()
parseTokenResponse()
sendAccessTokenRequest()
sendRequestTokenRequest()
diff --git a/classes/chillerlan-OAuth-Core-OAuth2Interface.html b/classes/chillerlan-OAuth-Core-OAuth2Interface.html
index 56f55df7..547747a0 100644
--- a/classes/chillerlan-OAuth-Core-OAuth2Interface.html
+++ b/classes/chillerlan-OAuth-Core-OAuth2Interface.html
@@ -132,7 +132,7 @@
@@ -248,11 +248,11 @@
Gets an access token from the current OAuthStorageInterface (shorthand/convenience)
- getAuthURL()
+ getAuthURL()
: UriInterface
-Prepares the URL with optional $params and $scopes which redirects to the provider's authorization prompt
+Prepares the URL with optional $params which redirects to the provider's authorization prompt
and returns a PSR-7 UriInterface with all necessary parameters set
@@ -341,7 +341,7 @@
@@ -375,7 +375,7 @@ Prepares the URL with optional $params and $scopes which redirects to the provider's authorization prompt
+
Prepares the URL with optional $params which redirects to the provider's authorization prompt
and returns a PSR-7 UriInterface with all necessary parameters set
@@ -769,13 +769,21 @@ Parameters
Tags
-
+
see
+
+ https://datatracker.ietf.org/doc/html/rfc5849#section-2.2
+
+
+
+
+ see
+
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
@@ -803,7 +811,7 @@
@@ -839,7 +847,7 @@
@@ -877,7 +885,7 @@
@@ -959,7 +967,7 @@
@@ -1005,7 +1013,7 @@
@@ -1051,7 +1059,7 @@
@@ -1097,7 +1105,7 @@
@@ -1143,7 +1151,7 @@
@@ -1189,7 +1197,7 @@
@@ -1335,7 +1343,7 @@ Return values
-Prepares the URL with optional $params and $scopes which redirects to the provider's authorization prompt
-and returns a PSR-7 UriInterface with all necessary parameters set
getClientCredentialsToken()
@@ -494,6 +500,34 @@
Creates an access token with the provider set to $this->serviceName
+
+ getAccessTokenRequestBodyParams()
+
+ : array<string|int, mixed>
+
+prepares the request body parameters for the access token request
+
+
+ getAuthURLRequestParams()
+
+ : array<string|int, mixed>
+
+prepares the query parameters for the auth URL
+
+
+ getClientCredentialsTokenRequestBodyParams()
+
+ : array<string|int, mixed>
+
+prepares the request body parameters for the client credentials token request
+
+
+ getRefreshAccessTokenRequestBodyParams()
+
+ : array<string|int, mixed>
+
+prepares the request body parameters for the token refresh
+
getRequestBody()
@@ -523,6 +557,20 @@
Prepares the request URL
+
+ getTokenResponseData()
+
+ : array<string|int, mixed>
+
+extracts the data from the access token response and returns an array with the key->value pairs contained
+
+
+ nonce()
+
+ : string
+
+returns a 32 byte random string (in hexadecimal representation) for use as a nonce
+
parseTokenResponse()
@@ -530,6 +578,20 @@
Parses the response from a request to the token endpoint
+
+ sendAccessTokenRequest()
+
+ : ResponseInterface
+
+sends a request to the access/refresh token endpoint $url with the given $body as form data
+
+
+ sendClientCredentialsTokenRequest()
+
+ : ResponseInterface
+
+sends a request to the client credentials endpoint, using basic authentication
+
@@ -766,7 +828,7 @@
@@ -901,7 +963,7 @@
@@ -1280,7 +1342,7 @@ Parameters
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
__get()
@@ -1298,7 +1360,7 @@
public
- __get ( string $name ) : string|null
+ final __get ( string $name ) : string|null
@@ -1336,7 +1398,7 @@
@@ -1461,13 +1523,11 @@
- Prepares the URL with optional $params and $scopes which redirects to the provider's authorization prompt
-and returns a PSR-7 UriInterface with all necessary parameters set
-
+
public
getAuthURL ( [ array<string|int, mixed>|null $params = null ] [ , array<string|int, string>|null $scopes = null ] ) : UriInterface
@@ -1529,7 +1589,7 @@
@@ -1598,14 +1658,14 @@
public
- getRequestAuthorization ( RequestInterface $request , AccessToken $token ) : RequestInterface
+ getRequestAuthorization ( RequestInterface $request [ , AccessToken |null $token = null ] ) : RequestInterface
@@ -1621,8 +1681,8 @@ Parameters
$token
- : AccessToken
-
+ : AccessToken |null
+ = null
@@ -1654,7 +1714,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
getStorage()
@@ -1672,7 +1732,7 @@
public
- getStorage ( ) : OAuthStorageInterface
+ final getStorage ( ) : OAuthStorageInterface
@@ -1721,7 +1781,7 @@
@@ -1797,7 +1857,7 @@
@@ -1854,7 +1914,7 @@
@@ -1923,7 +1983,7 @@
@@ -2017,7 +2077,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
sendRequest()
@@ -2027,14 +2087,14 @@
public
- sendRequest ( RequestInterface $request ) : ResponseInterface
+ final sendRequest ( RequestInterface $request ) : ResponseInterface
@@ -2084,7 +2144,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setLogger()
@@ -2102,7 +2162,7 @@
public
- setLogger ( LoggerInterface $logger ) : static
+ final setLogger ( LoggerInterface $logger ) : static
@@ -2151,7 +2211,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setRequestFactory()
@@ -2169,7 +2229,7 @@
public
- setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
+ final setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
@@ -2218,7 +2278,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStorage()
@@ -2236,7 +2296,7 @@
public
- setStorage ( OAuthStorageInterface $storage ) : static
+ final setStorage ( OAuthStorageInterface $storage ) : static
@@ -2285,7 +2345,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStreamFactory()
@@ -2303,7 +2363,7 @@
public
- setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
+ final setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
@@ -2352,7 +2412,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setUriFactory()
@@ -2370,7 +2430,7 @@
public
- setUriFactory ( UriFactoryInterface $uriFactory ) : static
+ final setUriFactory ( UriFactoryInterface $uriFactory ) : static
@@ -2656,6 +2716,197 @@ Return values
AccessToken
+
+
+
+ getAccessTokenRequestBodyParams()
+
+
+
+
+
+ prepares the request body parameters for the access token request
+
+
+ protected
+ getAccessTokenRequestBodyParams ( string $code ) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+
+ $code
+ : string
+
+
+
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
+
+
+
+ getAuthURLRequestParams()
+
+
+
+
+
+ prepares the query parameters for the auth URL
+
+
+ protected
+ getAuthURLRequestParams ( array<string|int, mixed> $params , array<string|int, mixed> $scopes ) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+
+ $params
+ : array<string|int, mixed>
+
+
+
+
+
+ $scopes
+ : array<string|int, mixed>
+
+
+
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
+
+
+
+ getClientCredentialsTokenRequestBodyParams()
+
+
+
+
+
+ prepares the request body parameters for the client credentials token request
+
+
+ protected
+ getClientCredentialsTokenRequestBodyParams ( array<string|int, string>|null $scopes ) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+
+ $scopes
+ : array<string|int, string>|null
+
+
+
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
+
+
+
+ getRefreshAccessTokenRequestBodyParams()
+
+
+
+
+
+ prepares the request body parameters for the token refresh
+
+
+ protected
+ getRefreshAccessTokenRequestBodyParams ( string $refreshToken ) : array<string|int, mixed>
+
+
+
+
+ Parameters
+
+
+ $refreshToken
+ : string
+
+
+
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
@@ -2785,7 +3036,7 @@
@@ -2798,7 +3049,7 @@
- Throws if the given path is invalid or if the host of a given URL does not match $apiURL.
+ Throws if the host of a given URL does not match the host of $apiURL.
Parameters
@@ -2890,6 +3141,144 @@ Parameters
+
+ Return values
+ string
+
+
+
+
+
+ getTokenResponseData()
+
+
+
+
+
+ extracts the data from the access token response and returns an array with the key->value pairs contained
+
+
+ protected
+ getTokenResponseData ( ResponseInterface $response ) : array<string|int, mixed>
+
+
+
+ we don't bother checking the content type here as it's sometimes vendor specific, not set or plain wrong:
+the spec mandates a JSON body which is what almost all providers send - weird exceptions:
+
+mixcloud sends JSON with a "text/javascript" header
+deezer sends form-data with a "text/html" header (???)
+silly amazon sends gzip compressed data... (handled by decodeJSON)
+
+
+
+ Parameters
+
+
+ $response
+ : ResponseInterface
+
+
+
+
+
+
+
+
+ Tags
+
+
+
+
+
+ throws
+
+
+ JsonException
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+
+
+
+
+
+ nonce()
+
+
+
+
+
+ returns a 32 byte random string (in hexadecimal representation) for use as a nonce
+
+
+ protected
+ nonce ( [ int $bytes = 32 ] ) : string
+
+
+
+
+ Parameters
+
+
+ $bytes
+ : int
+ = 32
+
+
+
+
+
+
+
+ Tags
+
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc5849#section-3.3
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
+
+
+
+
+
+
+
+
+ sendAccessTokenRequest()
+
+
+
+
+
+ sends a request to the access/refresh token endpoint $url with the given $body as form data
+
+
+ protected
+ sendAccessTokenRequest ( string $url , array<string|int, mixed> $body ) : ResponseInterface
+
+
+
+
+ Parameters
+
+
+ $url
+ : string
+
+
+
+
+
+ $body
+ : array<string|int, mixed>
+
+
+
+
+
+
+
+
+
+ Return values
+ ResponseInterface
+
+
+
+
+
+ sendClientCredentialsTokenRequest()
+
+
+
+
+
+ sends a request to the client credentials endpoint, using basic authentication
+
+
+ protected
+ sendClientCredentialsTokenRequest ( string $url , array<string|int, mixed> $body ) : ResponseInterface
+
+
+
+
+ Parameters
+
+
+ $url
+ : string
+
+
+
+
+
+ $body
+ : array<string|int, mixed>
+
+
+
+
+
+
+
+
+
+ Return values
+ ResponseInterface
+
+
@@ -3139,11 +3634,19 @@ Return values
cleanQueryParams()
construct()
createAccessToken()
+ getAccessTokenRequestBodyParams()
+ getAuthURLRequestParams()
+ getClientCredentialsTokenRequestBodyParams()
+ getRefreshAccessTokenRequestBodyParams()
getRequestBody()
getRequestHeaders()
getRequestTarget()
getRequestURL()
+ getTokenResponseData()
+ nonce()
parseTokenResponse()
+ sendAccessTokenRequest()
+ sendClientCredentialsTokenRequest()
diff --git a/classes/chillerlan-OAuth-Core-OAuthInterface.html b/classes/chillerlan-OAuth-Core-OAuthInterface.html
index 018b58ad..b930d0c8 100644
--- a/classes/chillerlan-OAuth-Core-OAuthInterface.html
+++ b/classes/chillerlan-OAuth-Core-OAuthInterface.html
@@ -360,7 +360,7 @@
@@ -396,7 +396,7 @@
@@ -405,7 +405,7 @@
public
- getAuthURL ( [ array<string|int, mixed>|null $params = null ] ) : UriInterface
+ getAuthURL ( [ array<string|int, mixed>|null $params = null ] [ , array<string|int, mixed>|null $scopes = null ] ) : UriInterface
@@ -418,6 +418,13 @@ Parameters
= null
+
+
+ $scopes
+ : array<string|int, mixed>|null
+ = null
+
+
@@ -435,6 +442,14 @@
https://datatracker.ietf.org/doc/html/rfc5849#section-2.2
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
+
+
@@ -458,7 +473,7 @@
@@ -494,7 +509,7 @@
@@ -532,7 +547,7 @@
@@ -614,7 +629,7 @@
@@ -660,7 +675,7 @@
@@ -706,7 +721,7 @@
@@ -752,7 +767,7 @@
@@ -798,7 +813,7 @@
@@ -844,7 +859,7 @@
diff --git a/classes/chillerlan-OAuth-Core-OAuthProvider.html b/classes/chillerlan-OAuth-Core-OAuthProvider.html
index f6257a5d..c867950e 100644
--- a/classes/chillerlan-OAuth-Core-OAuthProvider.html
+++ b/classes/chillerlan-OAuth-Core-OAuthProvider.html
@@ -457,6 +457,13 @@
Prepares the request URL
+
+ nonce()
+
+ : string
+
+returns a 32 byte random string (in hexadecimal representation) for use as a nonce
+
@@ -1120,7 +1127,7 @@ Parameters
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
__get()
@@ -1138,7 +1145,7 @@
public
- __get ( string $name ) : string|null
+ final __get ( string $name ) : string|null
@@ -1223,7 +1230,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
getStorage()
@@ -1241,7 +1248,7 @@
public
- getStorage ( ) : OAuthStorageInterface
+ final getStorage ( ) : OAuthStorageInterface
@@ -1290,7 +1297,7 @@
@@ -1366,7 +1373,7 @@
@@ -1423,7 +1430,7 @@
@@ -1517,7 +1524,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
sendRequest()
@@ -1527,14 +1534,14 @@
public
- sendRequest ( RequestInterface $request ) : ResponseInterface
+ final sendRequest ( RequestInterface $request ) : ResponseInterface
@@ -1584,7 +1591,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setLogger()
@@ -1602,7 +1609,7 @@
public
- setLogger ( LoggerInterface $logger ) : static
+ final setLogger ( LoggerInterface $logger ) : static
@@ -1651,7 +1658,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setRequestFactory()
@@ -1669,7 +1676,7 @@
public
- setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
+ final setRequestFactory ( RequestFactoryInterface $requestFactory ) : static
@@ -1718,7 +1725,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStorage()
@@ -1736,7 +1743,7 @@
public
- setStorage ( OAuthStorageInterface $storage ) : static
+ final setStorage ( OAuthStorageInterface $storage ) : static
@@ -1785,7 +1792,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setStreamFactory()
@@ -1803,7 +1810,7 @@
public
- setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
+ final setStreamFactory ( StreamFactoryInterface $streamFactory ) : static
@@ -1852,7 +1859,7 @@ Return values
class="phpdocumentor-element
-method
-public
- "
+ -final "
>
setUriFactory()
@@ -1870,7 +1877,7 @@
public
- setUriFactory ( UriFactoryInterface $uriFactory ) : static
+ final setUriFactory ( UriFactoryInterface $uriFactory ) : static
@@ -2171,7 +2178,7 @@
@@ -2285,7 +2292,7 @@
@@ -2298,7 +2305,7 @@
- Throws if the given path is invalid or if the host of a given URL does not match $apiURL.
+ Throws if the host of a given URL does not match the host of $apiURL.
Parameters
@@ -2390,6 +2397,75 @@ Parameters
+
+ Return values
+ string
+
+
+
+
+
+ nonce()
+
+
+
+
+
+ returns a 32 byte random string (in hexadecimal representation) for use as a nonce
+
+
+ protected
+ nonce ( [ int $bytes = 32 ] ) : string
+
+
+
+
+ Parameters
+
+
+ $bytes
+ : int
+ = 32
+
+
+
+
+
+
+
+ Tags
+
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc5849#section-3.3
+
+
+
+
+ see
+
+
+ https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
+
+
+
+
+