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 + + + + + + + + + + + + + + + + + + + + + +
+

Documentation

+ + + + + +
+ +
+
+ + + + +
+
+ + +
+

+ CSRFStateMismatchException + + + extends OAuthException + + +
+ in package + +
+ + +

+ +
+ + +
+ + + + + + + + + +

+ Table of Contents + + +

+ + + + + + + + + + + + + + + + + + + +
+
+
+
+

+        
+ +
+
+ + + +
+
+
+ +
+ On this page + +
    +
  • Table Of Contents
  • +
  • +
      +
    +
  • + + +
+
+ +
+
+
+
+
+

Search results

+ +
+
+
    +
    +
    +
    +
    + + +
    + + + + + + + + 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 @@

    https://datatracker.ietf.org/doc/html/rfc5849#section-2.2 - - - -
    -
    Return values
    - UriInterface -
    - - -
    -

    - getRequestToken() - - -

    - - -

    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.

    - - - public - getRequestToken() : AccessToken - -
    -
    - - - -
    - Tags - - -
    -
    -
    - see -
    -
    - https://datatracker.ietf.org/doc/html/rfc5849#section-2.1 - -
    see
    - OAuth1Provider::getAuthURL() + https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
    @@ -583,7 +532,7 @@
    Return values
    - AccessToken + UriInterface
    @@ -601,7 +550,7 @@

    @@ -637,7 +586,7 @@

    @@ -675,7 +624,7 @@

    @@ -757,7 +706,7 @@

    @@ -803,7 +752,7 @@

    @@ -849,7 +798,7 @@

    @@ -895,7 +844,7 @@

    @@ -941,7 +890,7 @@

    @@ -987,7 +936,7 @@

    @@ -1134,7 +1083,6 @@

    Return values
  • 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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    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 @@

    @@ -403,7 +403,7 @@

    @@ -431,7 +431,7 @@

    @@ -460,7 +460,7 @@

    @@ -489,7 +489,7 @@

    @@ -580,7 +580,7 @@

    @@ -621,7 +621,7 @@

    @@ -698,7 +698,7 @@

    @@ -728,17 +728,17 @@

    Return values
    >

    getAuthURL() - +

    -

    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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2910,7 +3299,7 @@

    @@ -2949,19 +3338,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -2972,6 +3361,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 + + +
    +
    +
    Return values
    string @@ -2559,6 +2635,7 @@
    Return values
  • getRequestHeaders()
  • getRequestTarget()
  • getRequestURL()
  • +
  • nonce()
  • diff --git a/classes/chillerlan-OAuth-Core-TokenInvalidate.html b/classes/chillerlan-OAuth-Core-TokenInvalidate.html index b686b2cf..bee0e90d 100644 --- a/classes/chillerlan-OAuth-Core-TokenInvalidate.html +++ b/classes/chillerlan-OAuth-Core-TokenInvalidate.html @@ -162,7 +162,7 @@

    - InvalidateAccessToken() + invalidateAccessToken()  : bool
    @@ -187,9 +187,9 @@

    -public " > -

    - InvalidateAccessToken() - +

    + invalidateAccessToken() +

    +
    +
    +

    + 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> +
    +
    @@ -2908,7 +3151,7 @@

    @@ -2921,7 +3164,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
    @@ -3013,6 +3256,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 + + +
    +
    +
    Return values
    string @@ -3033,7 +3414,7 @@

    @@ -3072,19 +3453,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3095,6 +3476,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3266,11 +3753,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-Providers-AzureActiveDirectory.html b/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html index 96a2a7f3..1862e3d9 100644 --- a/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html +++ b/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html @@ -402,8 +402,6 @@

     : UriInterface -
    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() @@ -528,6 +526,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() @@ -557,6 +583,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() @@ -564,6 +604,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
    + @@ -909,7 +963,7 @@

    @@ -1044,7 +1098,7 @@

    @@ -1422,7 +1476,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1440,7 +1494,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1478,7 +1532,7 @@

    @@ -1603,13 +1657,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 @@ -1671,7 +1723,7 @@

    @@ -1740,14 +1792,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1763,8 +1815,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1796,7 +1848,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1814,7 +1866,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1863,7 +1915,7 @@

    @@ -1939,7 +1991,7 @@

    @@ -1996,7 +2048,7 @@

    @@ -2065,7 +2117,7 @@

    @@ -2159,7 +2211,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2169,14 +2221,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2226,7 +2278,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2244,7 +2296,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2293,7 +2345,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2311,7 +2363,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2360,7 +2412,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2378,7 +2430,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2427,7 +2479,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2445,7 +2497,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2494,7 +2546,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2512,7 +2564,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2798,6 +2850,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> +
    +
    @@ -2927,7 +3170,7 @@

    @@ -2940,7 +3183,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
    @@ -3032,6 +3275,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3052,7 +3433,7 @@

    @@ -3091,19 +3472,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3114,6 +3495,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3285,11 +3772,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-Providers-BattleNet.html b/classes/chillerlan-OAuth-Providers-BattleNet.html index 71e325c3..488d3dc9 100644 --- a/classes/chillerlan-OAuth-Providers-BattleNet.html +++ b/classes/chillerlan-OAuth-Providers-BattleNet.html @@ -406,8 +406,6 @@

     : UriInterface -
    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() @@ -538,6 +536,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() @@ -565,6 +591,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() @@ -572,6 +612,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
    + @@ -1004,7 +1058,7 @@

    @@ -1139,7 +1193,7 @@

    @@ -1550,7 +1604,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1568,7 +1622,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1606,7 +1660,7 @@

    @@ -1731,13 +1785,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 @@ -1799,7 +1851,7 @@

    @@ -1868,14 +1920,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1891,8 +1943,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1924,7 +1976,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1942,7 +1994,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1991,7 +2043,7 @@

    @@ -2067,7 +2119,7 @@

    @@ -2116,7 +2168,7 @@

    @@ -2185,7 +2237,7 @@

    @@ -2279,7 +2331,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2289,14 +2341,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2346,7 +2398,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2364,7 +2416,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2423,7 +2475,7 @@

    @@ -2474,7 +2526,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2492,7 +2544,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2541,7 +2593,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2559,7 +2611,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2608,7 +2660,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2626,7 +2678,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2675,7 +2727,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2693,7 +2745,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2979,6 +3031,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> +
    +
    @@ -3200,6 +3443,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3220,7 +3601,7 @@

    @@ -3259,19 +3640,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3282,6 +3663,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3458,11 +3945,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-Providers-BigCartel.html b/classes/chillerlan-OAuth-Providers-BigCartel.html index adca330e..9bb0ac05 100644 --- a/classes/chillerlan-OAuth-Providers-BigCartel.html +++ b/classes/chillerlan-OAuth-Providers-BigCartel.html @@ -371,8 +371,6 @@

     : UriInterface -
    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() @@ -394,7 +392,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -497,6 +501,13 @@

    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
    +
    getAccountID() @@ -504,6 +515,27 @@

    Try to get the user ID from either the token or the me() endpoint
    +
    + 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() @@ -533,6 +565,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() @@ -540,6 +586,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
    + @@ -799,7 +859,7 @@

    @@ -934,7 +994,7 @@

    @@ -1296,7 +1356,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1314,7 +1374,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1352,7 +1412,7 @@

    @@ -1477,13 +1537,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 @@ -1545,7 +1603,7 @@

    @@ -1614,14 +1672,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1637,8 +1695,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1670,7 +1728,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1688,7 +1746,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1731,7 +1789,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + + +
    +

    + invalidateAccessToken() +

    +
    +

    + 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> +
    +
    Return values -protected " > -

    - getRequestBody() - +

    + getAuthURLRequestParams() +

    -

    Prepares the request body

    +

    prepares the query parameters for the auth URL

    protected - getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + getAuthURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
    @@ -2740,15 +2920,15 @@

    Parameters
    - $body - : StreamInterface|array<string|int, mixed>|string + $params + : array<string|int, mixed>
    - $request - : RequestInterface + $scopes + : array<string|int, mixed>
    @@ -2756,25 +2936,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - StreamInterface + array<string|int, mixed>
    @@ -2784,23 +2949,23 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + getClientCredentialsTokenRequestBodyParams() +

    -

    Prepare request headers

    +

    prepares the request body parameters for the client credentials token request

    protected - getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string|int, mixed>
    @@ -2808,9 +2973,9 @@

    Parameters
    - $headers - : array<string|int, mixed>|null - = null
    + $scopes + : array<string|int, string>|null +
    @@ -2830,34 +2995,31 @@
    Return values
    -protected " > -

    - getRequestTarget() - +

    + getRefreshAccessTokenRequestBodyParams() +

    -

    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".

    +

    prepares the request body parameters for the token refresh

    protected - getRequestTarget(string $uri) : string + getRefreshAccessTokenRequestBodyParams(string $refreshToken) : array<string|int, mixed>
    -

    Throws if the given path is invalid or if the host of a given URL does not match $apiURL.

    -
    - +
    Parameters
    - $uri + $refreshToken : string
    @@ -2866,33 +3028,196 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - see -
    -
    - OAuthInterface::request() - - -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - string + array<string|int, mixed> +
    + + +
    +

    + getRequestBody() + + +

    + + +

    Prepares the request body

    + + + protected + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + +
    +
    + +
    Parameters
    +
    +
    + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + +
    +
    +

    + getRequestHeaders() + + +

    + + +

    Prepare request headers

    + + + protected + getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $headers + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + getRequestTarget() + + +

    + + +

    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".

    + + + protected + getRequestTarget(string $uri) : string + +
    +
    +

    Throws if the host of a given URL does not match the host of $apiURL.

    +
    + +
    Parameters
    +
    +
    + $uri + : string +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + see +
    +
    + OAuthInterface::request() + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + string
    @@ -2943,6 +3268,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 + + +
    +
    +
    Return values
    string @@ -2963,7 +3426,7 @@

    @@ -3002,19 +3465,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3025,6 +3488,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3178,7 +3747,8 @@
    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3193,12 +3763,20 @@
    Return values
  • cleanQueryParams()
  • construct()
  • createAccessToken()
  • +
  • getAccessTokenRequestBodyParams()
  • getAccountID()
  • +
  • getAuthURLRequestParams()
  • +
  • getClientCredentialsTokenRequestBodyParams()
  • +
  • getRefreshAccessTokenRequestBodyParams()
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • getRequestURL()
  • +
  • getTokenResponseData()
  • +
  • nonce()
  • parseTokenResponse()
  • +
  • sendAccessTokenRequest()
  • +
  • sendClientCredentialsTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-Bitbucket.html b/classes/chillerlan-OAuth-Providers-Bitbucket.html index 52023a71..38319eb2 100644 --- a/classes/chillerlan-OAuth-Providers-Bitbucket.html +++ b/classes/chillerlan-OAuth-Providers-Bitbucket.html @@ -359,8 +359,6 @@

     : UriInterface -
    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() @@ -484,6 +482,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() @@ -513,6 +539,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() @@ -520,6 +560,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
    +

    @@ -751,7 +805,7 @@

    @@ -886,7 +940,7 @@

    @@ -1265,7 +1319,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1283,7 +1337,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1321,7 +1375,7 @@

    @@ -1446,13 +1500,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 @@ -1514,7 +1566,7 @@

    @@ -1583,14 +1635,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1606,8 +1658,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1639,7 +1691,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1657,7 +1709,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1706,7 +1758,7 @@

    @@ -1831,7 +1883,7 @@

    @@ -1900,7 +1952,7 @@

    @@ -1994,7 +2046,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2004,14 +2056,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2061,7 +2113,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2079,7 +2131,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2128,7 +2180,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2146,7 +2198,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2195,7 +2247,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2213,7 +2265,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2262,7 +2314,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2280,7 +2332,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2329,7 +2381,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2347,7 +2399,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2633,6 +2685,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> +
    +
    @@ -2762,7 +3005,7 @@

    @@ -2775,7 +3018,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
    @@ -2867,6 +3110,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2887,7 +3268,7 @@

    @@ -2926,19 +3307,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -2949,6 +3330,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3116,11 +3603,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-Providers-Deezer.html b/classes/chillerlan-OAuth-Providers-Deezer.html index eff0f55d..110b904b 100644 --- a/classes/chillerlan-OAuth-Providers-Deezer.html +++ b/classes/chillerlan-OAuth-Providers-Deezer.html @@ -144,7 +144,7 @@

    @@ -164,10 +164,7 @@

    https://developers.deezer.com/api/oauth -

    sure, you can use different parameter names than the standard ones... and what about JSON? -https://xkcd.com/927/

    -
    - +
    @@ -396,7 +393,7 @@

    Magic getter for the properties specified in self::ALLOWED_PROPERTIES
    - getAccessToken() + getAccessToken()  : AccessToken
    @@ -411,12 +408,10 @@

    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 -and returns a PSR-7 UriInterface with all necessary parameters set
    getClientCredentialsToken() @@ -541,6 +536,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() @@ -571,12 +594,40 @@

    Prepares the request URL
    - parseTokenResponse() + 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()  : AccessToken
    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
    + @@ -599,7 +650,7 @@

    @@ -627,7 +678,7 @@

    @@ -655,7 +706,7 @@

    @@ -683,7 +734,7 @@

    @@ -711,7 +762,7 @@

    @@ -739,7 +790,7 @@

    @@ -767,7 +818,7 @@

    @@ -795,7 +846,7 @@

    @@ -823,7 +874,7 @@

    @@ -895,7 +946,7 @@

    @@ -928,7 +979,7 @@

    @@ -961,7 +1012,7 @@

    @@ -994,7 +1045,7 @@

    @@ -1027,7 +1078,7 @@

    @@ -1060,7 +1111,7 @@

    @@ -1195,7 +1246,7 @@

    @@ -1461,7 +1512,7 @@

    @@ -1573,7 +1624,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1591,7 +1642,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1623,13 +1674,13 @@

    Return values
    >

    getAccessToken() - +

    @@ -1664,7 +1715,7 @@
    Parameters
    Tags - +
    @@ -1748,22 +1799,20 @@
    Return values
    >

    getAuthURL() - +

    -

    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, mixed>|null $scopes = null ]) : UriInterface + getAuthURL([array<string|int, mixed>|null $params = null ][, array<string|int, string>|null $scopes = null ]) : UriInterface
    @@ -1779,7 +1828,7 @@
    Parameters
    $scopes - : array<string|int, mixed>|null + : array<string|int, string>|null = null
    @@ -1789,7 +1838,7 @@
    Parameters
    Tags - +
    @@ -1822,7 +1871,7 @@

    @@ -1891,14 +1940,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1914,8 +1963,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1947,7 +1996,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1965,7 +2014,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2014,7 +2063,7 @@

    @@ -2090,7 +2139,7 @@

    @@ -2140,7 +2189,7 @@

    @@ -2209,7 +2258,7 @@

    @@ -2303,7 +2352,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2313,14 +2362,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2370,7 +2419,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2388,7 +2437,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2437,7 +2486,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2455,7 +2504,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2504,7 +2553,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2522,7 +2571,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2571,7 +2620,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2589,7 +2638,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2638,7 +2687,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2656,7 +2705,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2942,6 +2991,227 @@

    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 +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc +
    +
    + + +
    +
    + +
    +
    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> +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc +
    +
    + +

    sure, you can use different parameter names than the standard ones... https://xkcd.com/927/

    +
    + +
    +
    + +
    +
    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> +
    +
    @@ -3071,7 +3341,7 @@

    @@ -3084,7 +3354,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
    @@ -3176,6 +3446,138 @@
    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> + +
    +
    + +
    Parameters
    +
    +
    + $response + : ResponseInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc +
    +
    + +

    hey deezer, I suggest re-reading the OAuth2 spec! +also the content-type of "text/html" here is... bad.

    +
    + +
    +
    + +
    +
    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 + + +
    +
    +
    Return values
    string @@ -3190,13 +3592,13 @@
    Return values
    >

    parseTokenResponse() - +

    @@ -3223,15 +3625,32 @@
    Parameters
    Tags - +
    - inheritDoc + see
    - + https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + + +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 + + +
    +
    + throws +
    +
    + ProviderException +
    @@ -3241,6 +3660,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3396,9 +3921,9 @@
    Return values
    diff --git a/classes/chillerlan-OAuth-Providers-DeviantArt.html b/classes/chillerlan-OAuth-Providers-DeviantArt.html index 0eaf582f..ae782a28 100644 --- a/classes/chillerlan-OAuth-Providers-DeviantArt.html +++ b/classes/chillerlan-OAuth-Providers-DeviantArt.html @@ -435,8 +435,6 @@

     : UriInterface -
    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() @@ -458,7 +456,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -561,6 +565,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() @@ -590,6 +622,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() @@ -597,6 +643,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
    + @@ -1192,7 +1252,7 @@

    @@ -1327,7 +1387,7 @@

    @@ -1689,7 +1749,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1707,7 +1767,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1745,7 +1805,7 @@

    @@ -1870,13 +1930,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 @@ -1938,7 +1996,7 @@

    @@ -2007,14 +2065,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2030,8 +2088,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2063,7 +2121,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2081,7 +2139,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2124,7 +2182,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + + +
    +

    + invalidateAccessToken() +

    @@ -3116,23 +3228,23 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + getAuthURLRequestParams() +

    -

    Prepare request headers

    +

    prepares the query parameters for the auth URL

    protected - getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + getAuthURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
    @@ -3140,9 +3252,16 @@

    Parameters
    - $headers - : array<string|int, mixed>|null - = null
    + $params + : array<string|int, mixed> + +
    + +
    +
    + $scopes + : array<string|int, mixed> +
    @@ -3162,35 +3281,32 @@
    Return values
    -protected " > -

    - getRequestTarget() - +

    + getClientCredentialsTokenRequestBodyParams() +

    -

    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".

    +

    prepares the request body parameters for the client credentials token request

    protected - getRequestTarget(string $uri) : string + getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string|int, mixed>
    -

    Throws if the given path is invalid or if the host of a given URL does not match $apiURL.

    -
    - +
    Parameters
    - $uri - : string + $scopes + : array<string|int, string>|null
    @@ -3198,33 +3314,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - see -
    -
    - OAuthInterface::request() - - -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - string + array<string|int, mixed>
    @@ -3234,23 +3327,23 @@
    Return values
    -protected " > -

    - getRequestURL() - +

    + getRefreshAccessTokenRequestBodyParams() +

    -

    Prepares the request URL

    +

    prepares the request body parameters for the token refresh

    protected - getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + getRefreshAccessTokenRequestBodyParams(string $refreshToken) : array<string|int, mixed>
    @@ -3258,18 +3351,11 @@

    Parameters
    - $path + $refreshToken : string
    -
    -
    - $params - : array<string|int, mixed>|null - = null
    -
    -
    @@ -3277,7 +3363,7 @@
    Parameters
    Return values
    - string + array<string|int, mixed>
    @@ -3287,15 +3373,392 @@
    Return values
    -protected " > -

    - parseTokenResponse() - +

    + getRequestBody() +

    + +

    Prepares the request body

    + + + protected + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + +
    +
    + +
    Parameters
    +
    +
    + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + + +
    +

    + getRequestHeaders() + + +

    + + +

    Prepare request headers

    + + + protected + getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $headers + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + getRequestTarget() + + +

    + + +

    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".

    + + + protected + getRequestTarget(string $uri) : string + +
    +
    +

    Throws if the host of a given URL does not match the host of $apiURL.

    +
    + +
    Parameters
    +
    +
    + $uri + : string +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + see +
    +
    + OAuthInterface::request() + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + string +
    + +
    +
    +

    + getRequestURL() + + +

    + + +

    Prepares the request URL

    + + + protected + getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $params + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    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 + + +
    +
    + +
    +
    Return values
    + string +
    + +
    +
    +

    + parseTokenResponse() + + +

    + @@ -3334,19 +3797,19 @@
    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3357,6 +3820,112 @@
    Return values
    AccessToken +
    +
    +

    + 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 +
    +
    @@ -3522,7 +4091,8 @@
    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3537,11 +4107,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-Providers-Discogs.html b/classes/chillerlan-OAuth-Providers-Discogs.html index 980bb7a8..a4848753 100644 --- a/classes/chillerlan-OAuth-Providers-Discogs.html +++ b/classes/chillerlan-OAuth-Providers-Discogs.html @@ -361,13 +361,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -494,6 +487,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() @@ -509,7 +509,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -534,7 +534,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint

    @@ -1255,7 +1255,7 @@
    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1273,7 +1273,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1311,7 +1311,7 @@

    @@ -1443,14 +1443,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
    @@ -1463,6 +1463,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1502,14 +1509,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1525,8 +1532,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1558,57 +1565,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    getStorage() @@ -1626,7 +1583,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1675,7 +1632,7 @@

    @@ -1800,7 +1757,7 @@

    @@ -1894,7 +1851,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1904,14 +1861,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1961,7 +1918,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -1979,7 +1936,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2028,7 +1985,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2046,7 +2003,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2095,7 +2052,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2113,7 +2070,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2162,7 +2119,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2180,7 +2137,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2229,7 +2186,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2247,7 +2204,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2548,7 +2505,7 @@

    @@ -2662,7 +2619,7 @@

    @@ -2675,7 +2632,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
    @@ -2719,6 +2676,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> +
    +
    @@ -2871,13 +2879,13 @@
    Return values
    >

    nonce() - +

    @@ -2885,16 +2893,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2905,6 +2923,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2928,7 +2954,7 @@

    @@ -2936,11 +2962,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
    @@ -2951,9 +2979,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -3012,7 +3040,7 @@

    @@ -3020,7 +3048,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3028,13 +3056,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3065,15 +3086,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
    @@ -3081,8 +3102,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3246,7 +3267,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3265,9 +3285,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-Discord.html b/classes/chillerlan-OAuth-Providers-Discord.html index 689a0b6d..ff03ef73 100644 --- a/classes/chillerlan-OAuth-Providers-Discord.html +++ b/classes/chillerlan-OAuth-Providers-Discord.html @@ -478,8 +478,6 @@

     : UriInterface -
    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() @@ -501,7 +499,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -604,6 +608,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() @@ -633,6 +665,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() @@ -640,6 +686,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
    +

    @@ -1431,7 +1491,7 @@

    @@ -1566,7 +1626,7 @@

    @@ -1929,7 +1989,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1947,7 +2007,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1985,7 +2045,7 @@

    @@ -2110,13 +2170,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 @@ -2178,7 +2236,7 @@

    @@ -2247,14 +2305,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2270,8 +2328,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2303,7 +2361,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2321,7 +2379,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2364,7 +2422,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + +
    +
    +

    + invalidateAccessToken() +

    +
    +

    + 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> +
    +
    @@ -3410,7 +3735,7 @@

    @@ -3423,7 +3748,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
    @@ -3515,6 +3840,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3535,7 +3998,7 @@

    @@ -3574,19 +4037,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3597,6 +4060,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3769,7 +4338,8 @@
    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3784,11 +4354,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-Providers-Flickr.html b/classes/chillerlan-OAuth-Providers-Flickr.html index 781d0f20..2e6ee209 100644 --- a/classes/chillerlan-OAuth-Providers-Flickr.html +++ b/classes/chillerlan-OAuth-Providers-Flickr.html @@ -373,13 +373,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -505,6 +498,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() @@ -520,7 +520,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -545,7 +545,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint
    @@ -1322,7 +1322,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1340,7 +1340,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1378,7 +1378,7 @@

    @@ -1510,14 +1510,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
    @@ -1530,6 +1530,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1569,14 +1576,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1592,8 +1599,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1625,57 +1632,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    getStorage() @@ -1693,7 +1650,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1742,7 +1699,7 @@

    @@ -1818,7 +1775,7 @@

    @@ -1952,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1962,14 +1919,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2019,7 +1976,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2037,7 +1994,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2086,7 +2043,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2104,7 +2061,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2153,7 +2110,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2171,7 +2128,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2220,7 +2177,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2238,7 +2195,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2287,7 +2244,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2305,7 +2262,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2606,7 +2563,7 @@

    @@ -2720,7 +2677,7 @@

    @@ -2733,7 +2690,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
    @@ -2777,6 +2734,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> +
    +
    @@ -2929,13 +2937,13 @@
    Return values
    >

    nonce() - +

    @@ -2943,16 +2951,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2963,6 +2981,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2986,7 +3012,7 @@

    @@ -2994,11 +3020,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
    @@ -3009,9 +3037,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -3070,7 +3098,7 @@

    @@ -3078,7 +3106,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3086,13 +3114,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3123,15 +3144,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
    @@ -3139,8 +3160,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3306,7 +3327,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3325,9 +3345,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-Foursquare.html b/classes/chillerlan-OAuth-Providers-Foursquare.html index 3295497c..82852efe 100644 --- a/classes/chillerlan-OAuth-Providers-Foursquare.html +++ b/classes/chillerlan-OAuth-Providers-Foursquare.html @@ -366,8 +366,6 @@

     : UriInterface -
    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() @@ -489,6 +487,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() @@ -518,6 +544,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() @@ -525,6 +565,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
    +

    @@ -840,7 +894,7 @@

    @@ -975,7 +1029,7 @@

    @@ -1353,7 +1407,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1371,7 +1425,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1409,7 +1463,7 @@

    @@ -1534,13 +1588,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 @@ -1602,7 +1654,7 @@

    @@ -1671,14 +1723,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1694,8 +1746,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1727,7 +1779,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1745,7 +1797,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1794,7 +1846,7 @@

    @@ -1919,7 +1971,7 @@

    @@ -2072,7 +2124,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2082,14 +2134,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2139,7 +2191,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2157,7 +2209,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2206,7 +2258,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2224,7 +2276,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2273,7 +2325,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2291,7 +2343,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2340,7 +2392,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2358,7 +2410,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2407,7 +2459,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2425,7 +2477,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2711,6 +2763,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> +
    +
    @@ -2840,7 +3083,7 @@

    @@ -2853,7 +3096,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
    @@ -2945,6 +3188,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2965,7 +3346,7 @@

    @@ -3004,19 +3385,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3027,6 +3408,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3197,11 +3684,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-Providers-GitHub.html b/classes/chillerlan-OAuth-Providers-GitHub.html index f7c0e566..e88319de 100644 --- a/classes/chillerlan-OAuth-Providers-GitHub.html +++ b/classes/chillerlan-OAuth-Providers-GitHub.html @@ -536,8 +536,6 @@

     : UriInterface -
    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() @@ -661,6 +659,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() @@ -690,6 +716,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() @@ -697,6 +737,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
    + @@ -1684,7 +1738,7 @@

    @@ -1819,7 +1873,7 @@

    @@ -2197,7 +2251,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -2215,7 +2269,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -2253,7 +2307,7 @@

    @@ -2378,13 +2432,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 @@ -2446,7 +2498,7 @@

    @@ -2515,14 +2567,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2538,8 +2590,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2571,7 +2623,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2589,7 +2641,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2638,7 +2690,7 @@

    @@ -2763,7 +2815,7 @@

    @@ -2832,7 +2884,7 @@

    @@ -2926,7 +2978,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2936,14 +2988,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2993,7 +3045,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -3011,7 +3063,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -3060,7 +3112,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -3078,7 +3130,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -3127,7 +3179,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -3145,7 +3197,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -3194,7 +3246,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -3212,7 +3264,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -3261,7 +3313,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -3279,7 +3331,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -3565,6 +3617,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> +
    +
    @@ -3694,7 +3937,7 @@

    @@ -3707,7 +3950,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
    @@ -3799,6 +4042,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3819,7 +4200,7 @@

    @@ -3858,19 +4239,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3881,6 +4262,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -4075,11 +4562,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-Providers-GitLab.html b/classes/chillerlan-OAuth-Providers-GitLab.html index f1710417..9307cd4a 100644 --- a/classes/chillerlan-OAuth-Providers-GitLab.html +++ b/classes/chillerlan-OAuth-Providers-GitLab.html @@ -360,8 +360,6 @@

     : UriInterface -
    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() @@ -485,6 +483,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() @@ -514,6 +540,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() @@ -521,6 +561,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
    + @@ -753,7 +807,7 @@

    @@ -888,7 +942,7 @@

    @@ -1267,7 +1321,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1285,7 +1339,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1323,7 +1377,7 @@

    @@ -1448,13 +1502,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 @@ -1516,7 +1568,7 @@

    @@ -1585,14 +1637,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1608,8 +1660,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1641,7 +1693,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1659,7 +1711,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1708,7 +1760,7 @@

    @@ -1833,7 +1885,7 @@

    @@ -1902,7 +1954,7 @@

    @@ -1996,7 +2048,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2006,14 +2058,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2063,7 +2115,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2081,7 +2133,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2130,7 +2182,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2148,7 +2200,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2197,7 +2249,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2215,7 +2267,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2264,7 +2316,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2282,7 +2334,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2331,7 +2383,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2349,7 +2401,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2635,6 +2687,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> +
    +
    @@ -2764,7 +3007,7 @@

    @@ -2777,7 +3020,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
    @@ -2869,6 +3112,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2889,7 +3270,7 @@

    @@ -2928,19 +3309,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -2951,6 +3332,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3118,11 +3605,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-Providers-Google.html b/classes/chillerlan-OAuth-Providers-Google.html index bfa13b60..79561153 100644 --- a/classes/chillerlan-OAuth-Providers-Google.html +++ b/classes/chillerlan-OAuth-Providers-Google.html @@ -404,8 +404,6 @@

     : UriInterface -
    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() @@ -529,6 +527,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() @@ -558,6 +584,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() @@ -565,6 +605,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
    + @@ -936,7 +990,7 @@

    @@ -1071,7 +1125,7 @@

    @@ -1449,7 +1503,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1467,7 +1521,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1505,7 +1559,7 @@

    @@ -1630,13 +1684,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 @@ -1698,7 +1750,7 @@

    @@ -1767,14 +1819,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1790,8 +1842,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1823,7 +1875,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1841,7 +1893,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1890,7 +1942,7 @@

    @@ -2015,7 +2067,7 @@

    @@ -2084,7 +2136,7 @@

    @@ -2178,7 +2230,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2188,14 +2240,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2245,7 +2297,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2263,7 +2315,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2312,7 +2364,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2330,7 +2382,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2379,7 +2431,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2397,7 +2449,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2446,7 +2498,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2464,7 +2516,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2513,7 +2565,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2531,7 +2583,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2817,6 +2869,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> +
    +
    @@ -2946,7 +3189,7 @@

    @@ -2959,7 +3202,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
    @@ -3051,6 +3294,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3071,7 +3452,7 @@

    @@ -3110,19 +3491,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3133,6 +3514,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3305,11 +3792,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-Providers-GuildWars2.html b/classes/chillerlan-OAuth-Providers-GuildWars2.html index 45ece0b6..240db6ba 100644 --- a/classes/chillerlan-OAuth-Providers-GuildWars2.html +++ b/classes/chillerlan-OAuth-Providers-GuildWars2.html @@ -419,8 +419,6 @@

     : UriInterface -
    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() @@ -550,6 +548,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() @@ -579,6 +605,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() @@ -586,6 +626,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
    + @@ -1098,7 +1152,7 @@

    @@ -1233,7 +1287,7 @@

    @@ -1611,7 +1665,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1629,7 +1683,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1804,9 +1858,7 @@

    -

    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, mixed>|null $scopes = null ]) : UriInterface @@ -1876,7 +1928,7 @@

    @@ -1945,14 +1997,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1968,8 +2020,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2001,7 +2053,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2019,7 +2071,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2068,7 +2120,7 @@

    @@ -2193,7 +2245,7 @@

    @@ -2262,7 +2314,7 @@

    @@ -2356,7 +2408,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2366,14 +2418,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2423,7 +2475,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2441,7 +2493,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2490,7 +2542,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2508,7 +2560,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2557,7 +2609,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2575,7 +2627,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2624,7 +2676,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2642,7 +2694,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2691,7 +2743,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2709,7 +2761,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -3055,6 +3107,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> +
    +
    @@ -3184,7 +3427,7 @@

    @@ -3197,7 +3440,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
    @@ -3289,6 +3532,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3309,7 +3690,7 @@

    @@ -3348,19 +3729,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3371,6 +3752,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3549,11 +4036,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-Providers-Imgur.html b/classes/chillerlan-OAuth-Providers-Imgur.html index 98f52096..6a8c2aa2 100644 --- a/classes/chillerlan-OAuth-Providers-Imgur.html +++ b/classes/chillerlan-OAuth-Providers-Imgur.html @@ -363,8 +363,6 @@

     : UriInterface -
    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() @@ -488,6 +486,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() @@ -517,6 +543,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() @@ -524,6 +564,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
    + @@ -755,7 +809,7 @@

    @@ -890,7 +944,7 @@

    @@ -1268,7 +1322,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1286,7 +1340,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1324,7 +1378,7 @@

    @@ -1449,13 +1503,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 @@ -1517,7 +1569,7 @@

    @@ -1586,14 +1638,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1609,8 +1661,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1642,7 +1694,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1660,7 +1712,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1709,7 +1761,7 @@

    @@ -1834,7 +1886,7 @@

    @@ -1903,7 +1955,7 @@

    @@ -1997,7 +2049,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2007,14 +2059,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2064,7 +2116,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2082,7 +2134,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2131,7 +2183,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2149,7 +2201,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2198,7 +2250,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2216,7 +2268,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2265,7 +2317,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2283,7 +2335,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2332,7 +2384,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2350,7 +2402,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2636,6 +2688,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> +
    +
    @@ -2765,7 +3008,7 @@

    @@ -2778,7 +3021,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
    @@ -2870,6 +3113,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2890,7 +3271,7 @@

    @@ -2929,19 +3310,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -2952,6 +3333,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3119,11 +3606,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-Providers-LastFM.html b/classes/chillerlan-OAuth-Providers-LastFM.html index 195e99be..29a2a23f 100644 --- a/classes/chillerlan-OAuth-Providers-LastFM.html +++ b/classes/chillerlan-OAuth-Providers-LastFM.html @@ -527,6 +527,13 @@

     : string +
    + nonce() + +  : string +
    +
    returns a 32 byte random string (in hexadecimal representation) for use as a nonce
    +
    parseTokenResponse() @@ -1392,7 +1399,7 @@
    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1410,7 +1417,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1557,7 +1564,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
    @@ -1570,6 +1577,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1616,7 +1630,7 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1632,8 +1646,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1672,7 +1686,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1690,7 +1704,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1739,7 +1753,7 @@

    @@ -1951,7 +1965,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1961,14 +1975,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2018,7 +2032,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2036,7 +2050,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2085,7 +2099,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2103,7 +2117,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2152,7 +2166,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2170,7 +2184,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2219,7 +2233,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2237,7 +2251,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2286,7 +2300,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2304,7 +2318,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2605,7 +2619,7 @@

    @@ -2719,7 +2733,7 @@

    @@ -2732,7 +2746,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
    @@ -2869,6 +2883,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 + + +
    +
    +
    Return values
    string @@ -3109,6 +3192,7 @@
    Return values
  • getRequestTarget()
  • getRequestURL()
  • getSignature()
  • +
  • nonce()
  • parseTokenResponse()
  • diff --git a/classes/chillerlan-OAuth-Providers-MailChimp.html b/classes/chillerlan-OAuth-Providers-MailChimp.html index 453b60ce..30faa9e6 100644 --- a/classes/chillerlan-OAuth-Providers-MailChimp.html +++ b/classes/chillerlan-OAuth-Providers-MailChimp.html @@ -379,8 +379,6 @@

     : UriInterface -
    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() @@ -509,6 +507,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() @@ -538,6 +564,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() @@ -545,6 +585,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
    + @@ -832,7 +886,7 @@

    @@ -967,7 +1021,7 @@

    @@ -1346,7 +1400,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1364,7 +1418,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1402,7 +1456,7 @@

    @@ -1527,13 +1581,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 @@ -1595,7 +1647,7 @@

    @@ -1664,14 +1716,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1687,8 +1739,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1720,7 +1772,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1738,7 +1790,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1847,7 +1899,7 @@

    @@ -1980,7 +2032,7 @@

    @@ -2134,7 +2186,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2144,14 +2196,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2201,7 +2253,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2219,7 +2271,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2268,7 +2320,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2286,7 +2338,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2335,7 +2387,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2353,7 +2405,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2402,7 +2454,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2420,7 +2472,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2469,7 +2521,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2487,7 +2539,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2773,6 +2825,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> +
    +
    @@ -2902,7 +3145,7 @@

    @@ -2915,7 +3158,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
    @@ -3007,6 +3250,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 + + +
    +
    +
    Return values
    string @@ -3027,7 +3408,7 @@

    @@ -3066,19 +3447,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3089,6 +3470,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3259,11 +3746,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-Providers-Mastodon.html b/classes/chillerlan-OAuth-Providers-Mastodon.html index 2a3769a6..4ea751a2 100644 --- a/classes/chillerlan-OAuth-Providers-Mastodon.html +++ b/classes/chillerlan-OAuth-Providers-Mastodon.html @@ -144,7 +144,7 @@

    @@ -402,8 +402,6 @@

     : UriInterface -
    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() @@ -534,6 +532,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() @@ -563,6 +589,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() @@ -570,6 +610,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
    + @@ -592,7 +646,7 @@

    @@ -620,7 +674,7 @@

    @@ -648,7 +702,7 @@

    @@ -676,7 +730,7 @@

    @@ -704,7 +758,7 @@

    @@ -776,7 +830,7 @@

    @@ -809,7 +863,7 @@

    @@ -842,7 +896,7 @@

    @@ -875,7 +929,7 @@

    @@ -908,7 +962,7 @@

    @@ -941,7 +995,7 @@

    @@ -1010,7 +1064,7 @@

    @@ -1109,7 +1163,7 @@

    @@ -1375,7 +1429,7 @@

    @@ -1487,7 +1541,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1505,7 +1559,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1543,7 +1597,7 @@

    @@ -1668,13 +1722,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 @@ -1736,7 +1788,7 @@

    @@ -1805,14 +1857,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1828,8 +1880,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1861,7 +1913,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1879,7 +1931,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1928,7 +1980,7 @@

    @@ -2004,7 +2056,7 @@

    @@ -2053,7 +2105,7 @@

    @@ -2122,7 +2174,7 @@

    @@ -2216,7 +2268,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2226,14 +2278,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2293,7 +2345,7 @@

    @@ -2344,7 +2396,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2362,7 +2414,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2411,7 +2463,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2429,7 +2481,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2478,7 +2530,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2496,7 +2548,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2545,7 +2597,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2563,7 +2615,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2612,7 +2664,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2630,7 +2682,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2916,6 +2968,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> +
    +
    @@ -3045,7 +3288,7 @@

    @@ -3058,7 +3301,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
    @@ -3150,6 +3393,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3170,7 +3551,7 @@

    @@ -3209,19 +3590,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3232,6 +3613,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3406,11 +3893,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-Providers-MicrosoftGraph.html b/classes/chillerlan-OAuth-Providers-MicrosoftGraph.html index b66f05ae..6563027e 100644 --- a/classes/chillerlan-OAuth-Providers-MicrosoftGraph.html +++ b/classes/chillerlan-OAuth-Providers-MicrosoftGraph.html @@ -394,8 +394,6 @@

     : UriInterface -
    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() @@ -519,6 +517,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() @@ -548,6 +574,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() @@ -555,6 +595,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
    + @@ -985,7 +1039,7 @@

    @@ -1120,7 +1174,7 @@

    @@ -1499,7 +1553,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1517,7 +1571,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1555,7 +1609,7 @@

    @@ -1680,13 +1734,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 @@ -1748,7 +1800,7 @@

    @@ -1817,14 +1869,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1840,8 +1892,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1873,7 +1925,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1891,7 +1943,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1940,7 +1992,7 @@

    @@ -2065,7 +2117,7 @@

    @@ -2134,7 +2186,7 @@

    @@ -2228,7 +2280,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2238,14 +2290,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2295,7 +2347,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2313,7 +2365,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2362,7 +2414,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2380,7 +2432,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2429,7 +2481,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2447,7 +2499,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2496,7 +2548,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2514,7 +2566,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2563,7 +2615,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2581,7 +2633,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2867,6 +2919,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> +
    +
    @@ -2996,7 +3239,7 @@

    @@ -3009,7 +3252,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
    @@ -3101,6 +3344,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3121,7 +3502,7 @@

    @@ -3160,19 +3541,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3183,6 +3564,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3357,11 +3844,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-Providers-Mixcloud.html b/classes/chillerlan-OAuth-Providers-Mixcloud.html index 866a22ff..60e1a1b8 100644 --- a/classes/chillerlan-OAuth-Providers-Mixcloud.html +++ b/classes/chillerlan-OAuth-Providers-Mixcloud.html @@ -356,8 +356,6 @@

     : UriInterface -
    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() @@ -481,6 +479,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() @@ -510,6 +536,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() @@ -517,6 +557,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
    + @@ -776,7 +830,7 @@

    @@ -911,7 +965,7 @@

    @@ -1289,7 +1343,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1307,7 +1361,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1345,7 +1399,7 @@

    @@ -1470,13 +1524,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 @@ -1538,7 +1590,7 @@

    @@ -1607,14 +1659,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1630,8 +1682,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1663,7 +1715,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1681,7 +1733,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1730,7 +1782,7 @@

    @@ -1855,7 +1907,7 @@

    @@ -1924,7 +1976,7 @@

    @@ -2018,7 +2070,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2028,14 +2080,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2085,7 +2137,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2103,7 +2155,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2152,7 +2204,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2170,7 +2222,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2219,7 +2271,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2237,7 +2289,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2286,7 +2338,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2304,7 +2356,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2353,7 +2405,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2371,7 +2423,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2657,6 +2709,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> +
    +
    @@ -2786,7 +3029,7 @@

    @@ -2799,7 +3042,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
    @@ -2891,6 +3134,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2911,7 +3292,7 @@

    @@ -2950,19 +3331,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -2973,6 +3354,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3141,11 +3628,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-Providers-MusicBrainz.html b/classes/chillerlan-OAuth-Providers-MusicBrainz.html index fe4fa086..e204ab6f 100644 --- a/classes/chillerlan-OAuth-Providers-MusicBrainz.html +++ b/classes/chillerlan-OAuth-Providers-MusicBrainz.html @@ -144,7 +144,7 @@

    @@ -414,8 +414,6 @@

     : UriInterface -
    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() @@ -450,7 +448,7 @@

    Returns information about the currently authenticated user (usually a /me or /user endpoint).
    - refreshAccessToken() + refreshAccessToken()  : AccessToken
    @@ -538,6 +536,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() @@ -567,6 +593,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() @@ -574,6 +614,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
    + @@ -596,7 +650,7 @@

    @@ -624,7 +678,7 @@

    @@ -652,7 +706,7 @@

    @@ -680,7 +734,7 @@

    @@ -708,7 +762,7 @@

    @@ -736,7 +790,7 @@

    @@ -764,7 +818,7 @@

    @@ -792,7 +846,7 @@

    @@ -864,7 +918,7 @@

    @@ -897,7 +951,7 @@

    @@ -930,7 +984,7 @@

    @@ -963,7 +1017,7 @@

    @@ -996,7 +1050,7 @@

    @@ -1029,7 +1083,7 @@

    @@ -1164,7 +1218,7 @@

    @@ -1430,7 +1484,7 @@

    @@ -1542,7 +1596,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1560,7 +1614,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1598,7 +1652,7 @@

    @@ -1723,13 +1777,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 @@ -1791,7 +1843,7 @@

    @@ -1860,14 +1912,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1883,8 +1935,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1916,7 +1968,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1934,7 +1986,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1983,7 +2035,7 @@

    @@ -2059,7 +2111,7 @@

    @@ -2110,13 +2162,13 @@

    Return values
    >

    refreshAccessToken() - +

    @@ -2142,16 +2194,18 @@
    Parameters
    Tags - +
    - inheritdoc + implements
    - +

    \chillerlan\OAuth\Core\TokenRefresh

    +
    +
    throws @@ -2183,7 +2237,7 @@

    @@ -2267,7 +2321,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2277,14 +2331,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2334,7 +2388,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2352,7 +2406,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2401,7 +2455,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2419,7 +2473,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2468,7 +2522,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2486,7 +2540,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2535,7 +2589,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2553,7 +2607,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2602,7 +2656,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2620,7 +2674,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2906,6 +2960,211 @@

    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 +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritdoc +
    +
    + + +
    +
    + +
    +
    Return values
    + array<string|int, mixed> +
    +
    @@ -3035,7 +3294,7 @@

    @@ -3048,7 +3307,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
    @@ -3140,6 +3399,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 + + +
    +
    +
    Return values
    string @@ -3160,7 +3557,7 @@

    @@ -3199,19 +3596,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3222,6 +3619,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3384,7 +3887,7 @@
    Return values
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • -
  • refreshAccessToken()
  • +
  • refreshAccessToken()
  • request()
  • sendRequest()
  • setLogger()
  • @@ -3397,11 +3900,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-Providers-NPROne.html b/classes/chillerlan-OAuth-Providers-NPROne.html index 10fe542c..f9255d54 100644 --- a/classes/chillerlan-OAuth-Providers-NPROne.html +++ b/classes/chillerlan-OAuth-Providers-NPROne.html @@ -402,8 +402,6 @@

     : UriInterface

    -
    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() @@ -425,7 +423,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -535,6 +539,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() @@ -564,6 +596,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() @@ -571,6 +617,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
    +
    @@ -970,7 +1030,7 @@

    @@ -1105,7 +1165,7 @@

    @@ -1468,7 +1528,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1486,7 +1546,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1524,7 +1584,7 @@

    @@ -1649,13 +1709,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 @@ -1717,7 +1775,7 @@

    @@ -1786,14 +1844,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1809,8 +1867,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1842,7 +1900,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1860,7 +1918,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1903,7 +1961,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + + +
    +

    + invalidateAccessToken() +

    @@ -2956,23 +3068,23 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + getAuthURLRequestParams() +

    -

    Prepare request headers

    +

    prepares the query parameters for the auth URL

    protected - getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + getAuthURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
    @@ -2980,9 +3092,16 @@

    Parameters
    - $headers - : array<string|int, mixed>|null - = null
    + $params + : array<string|int, mixed> + +
    + +
    +
    + $scopes + : array<string|int, mixed> +
    @@ -3002,35 +3121,32 @@
    Return values
    -protected " > -

    - getRequestTarget() - +

    + getClientCredentialsTokenRequestBodyParams() +

    -

    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".

    +

    prepares the request body parameters for the client credentials token request

    protected - getRequestTarget(string $uri) : string + getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string|int, mixed>
    -

    Throws if the given path is invalid or if the host of a given URL does not match $apiURL.

    -
    - +
    Parameters
    - $uri - : string + $scopes + : array<string|int, string>|null
    @@ -3038,33 +3154,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - see -
    -
    - OAuthInterface::request() - - -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - string + array<string|int, mixed>
    @@ -3074,23 +3167,23 @@
    Return values
    -protected " > -

    - getRequestURL() - +

    + getRefreshAccessTokenRequestBodyParams() +

    -

    Prepares the request URL

    +

    prepares the request body parameters for the token refresh

    protected - getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + getRefreshAccessTokenRequestBodyParams(string $refreshToken) : array<string|int, mixed>
    @@ -3098,18 +3191,11 @@

    Parameters
    - $path + $refreshToken : string
    -
    -
    - $params - : array<string|int, mixed>|null - = null
    -
    -
    @@ -3117,7 +3203,7 @@
    Parameters
    Return values
    - string + array<string|int, mixed>
    @@ -3127,23 +3213,23 @@
    Return values
    -protected " > -

    - parseTokenResponse() - +

    + getRequestBody() +

    -

    Parses the response from a request to the token endpoint

    +

    Prepares the request body

    protected - parseTokenResponse(ResponseInterface $response) : AccessToken + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface
    @@ -3151,8 +3237,15 @@

    Parameters
    - $response - : ResponseInterface + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface
    @@ -3162,7 +3255,117 @@
    Parameters
    Tags - + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + + +
    +

    + getRequestHeaders() + + +

    + + +

    Prepare request headers

    + + + protected + getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $headers + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + getRequestTarget() + + +

    + + +

    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".

    + + + protected + getRequestTarget(string $uri) : string + +
    +
    +

    Throws if the host of a given URL does not match the host of $apiURL.

    +
    + +
    Parameters
    +
    +
    + $uri + : string +
    +
    + +
    +
    + + +
    + Tags +
    @@ -3170,7 +3373,7 @@
    see
    - https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + OAuthInterface::request()
    @@ -3182,7 +3385,121 @@
    -
    +
    + +
    +
    Return values
    + string +
    + + +
    +

    + getRequestURL() + + +

    + + +

    Prepares the request URL

    + + + protected + getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $params + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    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
    @@ -3194,9 +3511,261 @@
    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 + + +
    +
    + +
    +
    Return values
    + string +
    + +
    +
    +

    + parseTokenResponse() + + +

    + + +

    Parses the response from a request to the token endpoint

    + + + protected + parseTokenResponse(ResponseInterface $response) : AccessToken + +
    +
    + +
    Parameters
    +
    +
    + $response + : ResponseInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + + +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3355,7 +3924,8 @@
    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3371,11 +3941,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-Providers-OpenCaching.html b/classes/chillerlan-OAuth-Providers-OpenCaching.html index 88b471e4..f2b6c0da 100644 --- a/classes/chillerlan-OAuth-Providers-OpenCaching.html +++ b/classes/chillerlan-OAuth-Providers-OpenCaching.html @@ -353,13 +353,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -486,6 +479,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 +501,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -526,7 +526,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint

    @@ -1247,7 +1247,7 @@
    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1265,7 +1265,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1303,7 +1303,7 @@

    @@ -1435,14 +1435,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
    @@ -1455,6 +1455,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1494,14 +1501,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1517,8 +1524,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1550,57 +1557,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    getStorage() @@ -1618,7 +1575,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1667,7 +1624,7 @@

    @@ -1792,7 +1749,7 @@

    @@ -1886,7 +1843,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1896,14 +1853,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1953,7 +1910,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -1971,7 +1928,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2020,7 +1977,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2038,7 +1995,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2087,7 +2044,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2105,7 +2062,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2154,7 +2111,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2172,7 +2129,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2221,7 +2178,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2239,7 +2196,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2540,7 +2497,7 @@

    @@ -2654,7 +2611,7 @@

    @@ -2667,7 +2624,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
    @@ -2711,6 +2668,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> +
    +
    @@ -2863,13 +2871,13 @@
    Return values
    >

    nonce() - +

    @@ -2877,16 +2885,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2897,6 +2915,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2920,7 +2946,7 @@

    @@ -2928,11 +2954,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
    @@ -2943,9 +2971,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -3004,7 +3032,7 @@

    @@ -3012,7 +3040,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3020,13 +3048,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3057,15 +3078,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
    @@ -3073,8 +3094,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3238,7 +3259,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3257,9 +3277,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-OpenStreetmap.html b/classes/chillerlan-OAuth-Providers-OpenStreetmap.html index db1ebed8..75b71475 100644 --- a/classes/chillerlan-OAuth-Providers-OpenStreetmap.html +++ b/classes/chillerlan-OAuth-Providers-OpenStreetmap.html @@ -365,13 +365,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -498,6 +491,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() @@ -513,7 +513,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -538,7 +538,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint

    @@ -1232,7 +1232,7 @@
    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1250,7 +1250,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1288,7 +1288,7 @@

    @@ -1420,14 +1420,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
    @@ -1440,6 +1440,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1479,14 +1486,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1502,8 +1509,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1535,57 +1542,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - -
    -

    getStorage() @@ -1603,7 +1560,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1652,7 +1609,7 @@

    @@ -1777,7 +1734,7 @@

    @@ -1871,7 +1828,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1881,14 +1838,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1938,7 +1895,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -1956,7 +1913,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2005,7 +1962,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2023,7 +1980,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2072,7 +2029,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2090,7 +2047,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2139,7 +2096,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2157,7 +2114,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2206,7 +2163,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2224,7 +2181,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2525,7 +2482,7 @@

    @@ -2639,7 +2596,7 @@

    @@ -2652,7 +2609,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
    @@ -2696,6 +2653,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> +
    +
    @@ -2848,13 +2856,13 @@
    Return values
    >

    nonce() - +

    @@ -2862,16 +2870,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2882,6 +2900,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2905,7 +2931,7 @@

    @@ -2913,11 +2939,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
    @@ -2928,9 +2956,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -2989,7 +3017,7 @@

    @@ -2997,7 +3025,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3005,13 +3033,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3042,15 +3063,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
    @@ -3058,8 +3079,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3222,7 +3243,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3241,9 +3261,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-OpenStreetmap2.html b/classes/chillerlan-OAuth-Providers-OpenStreetmap2.html index 33b644d5..9c586ebd 100644 --- a/classes/chillerlan-OAuth-Providers-OpenStreetmap2.html +++ b/classes/chillerlan-OAuth-Providers-OpenStreetmap2.html @@ -435,8 +435,6 @@

     : UriInterface -
    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() @@ -560,6 +558,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() @@ -589,6 +615,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() @@ -596,6 +636,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
    +

    @@ -1107,7 +1161,7 @@

    @@ -1242,7 +1296,7 @@

    @@ -1621,7 +1675,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1639,7 +1693,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1677,7 +1731,7 @@

    @@ -1802,13 +1856,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 @@ -1870,7 +1922,7 @@

    @@ -1939,14 +1991,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1962,8 +2014,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1995,7 +2047,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2013,7 +2065,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2062,7 +2114,7 @@

    @@ -2187,7 +2239,7 @@

    @@ -2256,7 +2308,7 @@

    @@ -2350,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2360,14 +2412,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2417,7 +2469,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2435,7 +2487,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2484,7 +2536,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2502,7 +2554,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2551,7 +2603,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2569,7 +2621,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2618,7 +2670,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2636,7 +2688,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2685,7 +2737,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2703,7 +2755,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2989,6 +3041,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> +
    +
    @@ -3118,7 +3361,7 @@

    @@ -3131,7 +3374,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
    @@ -3223,6 +3466,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3243,7 +3624,7 @@

    @@ -3282,19 +3663,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3305,6 +3686,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3482,11 +3969,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-Providers-Patreon.html b/classes/chillerlan-OAuth-Providers-Patreon.html index f18f08ef..e0858b06 100644 --- a/classes/chillerlan-OAuth-Providers-Patreon.html +++ b/classes/chillerlan-OAuth-Providers-Patreon.html @@ -447,8 +447,6 @@

     : UriInterface -
    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() @@ -572,6 +570,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() @@ -601,6 +627,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() @@ -608,6 +648,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
    + @@ -1175,7 +1229,7 @@

    @@ -1310,7 +1364,7 @@

    @@ -1689,7 +1743,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1707,7 +1761,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1745,7 +1799,7 @@

    @@ -1870,13 +1924,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 @@ -1938,7 +1990,7 @@

    @@ -2007,14 +2059,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2030,8 +2082,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2063,7 +2115,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2081,7 +2133,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2130,7 +2182,7 @@

    @@ -2255,7 +2307,7 @@

    @@ -2324,7 +2376,7 @@

    @@ -2418,7 +2470,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2428,14 +2480,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2485,7 +2537,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2503,7 +2555,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2552,7 +2604,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2570,7 +2622,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2619,7 +2671,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2637,7 +2689,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2686,7 +2738,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2704,7 +2756,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2753,7 +2805,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2771,7 +2823,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -3057,6 +3109,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> +
    +
    @@ -3186,7 +3429,7 @@

    @@ -3199,7 +3442,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
    @@ -3291,6 +3534,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3311,7 +3692,7 @@

    @@ -3350,19 +3731,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3373,6 +3754,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3552,11 +4039,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-Providers-PayPal.html b/classes/chillerlan-OAuth-Providers-PayPal.html index e2348dd5..ea092563 100644 --- a/classes/chillerlan-OAuth-Providers-PayPal.html +++ b/classes/chillerlan-OAuth-Providers-PayPal.html @@ -376,7 +376,7 @@

    Magic getter for the properties specified in self::ALLOWED_PROPERTIES
    - getAccessToken() + getAccessToken()  : AccessToken
    @@ -395,8 +395,6 @@

     : UriInterface -
    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() @@ -520,6 +518,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() @@ -550,12 +576,40 @@

    Prepares the request URL
    - parseTokenResponse() + 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()  : AccessToken
    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
    + @@ -955,7 +1009,7 @@

    @@ -1090,7 +1144,7 @@

    @@ -1469,7 +1523,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1487,7 +1541,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1519,13 +1573,13 @@

    Return values
    >

    getAccessToken() - +

    @@ -1560,7 +1614,7 @@
    Parameters
    Tags - +
    @@ -1650,13 +1704,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 @@ -1718,7 +1770,7 @@

    @@ -1787,14 +1839,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1810,8 +1862,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1843,7 +1895,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1861,7 +1913,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1910,7 +1962,7 @@

    @@ -1986,7 +2038,7 @@

    @@ -2035,7 +2087,7 @@

    @@ -2104,7 +2156,7 @@

    @@ -2198,7 +2250,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2208,14 +2260,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2265,7 +2317,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2283,7 +2335,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2332,7 +2384,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2350,7 +2402,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2399,7 +2451,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2417,7 +2469,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2466,7 +2518,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2484,7 +2536,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2533,7 +2585,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2551,7 +2603,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2837,6 +2889,211 @@

    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 +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc +
    +
    + + +
    +
    + +
    +
    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> +
    +
    @@ -2966,7 +3223,7 @@

    @@ -2979,7 +3236,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
    @@ -3071,6 +3328,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3085,13 +3480,13 @@
    Return values
    >

    parseTokenResponse() - +

    @@ -3118,7 +3513,91 @@
    Parameters
    Tags - + + +
    +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + + +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + AccessToken +
    + +
    +
    +

    + 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> +
    +
    + +
    +
    + + +
    + Tags +
    @@ -3133,7 +3612,60 @@
    Return values
    - AccessToken + 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
    @@ -3288,7 +3820,7 @@
    Return values
    diff --git a/classes/chillerlan-OAuth-Providers-PayPalSandbox.html b/classes/chillerlan-OAuth-Providers-PayPalSandbox.html index ad8bfce5..fb199286 100644 --- a/classes/chillerlan-OAuth-Providers-PayPalSandbox.html +++ b/classes/chillerlan-OAuth-Providers-PayPalSandbox.html @@ -387,8 +387,6 @@

     : UriInterface -
    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() @@ -513,6 +511,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() @@ -542,6 +568,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() @@ -549,6 +589,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
    + @@ -950,7 +1004,7 @@

    @@ -1085,7 +1139,7 @@

    @@ -1464,7 +1518,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1482,7 +1536,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1520,7 +1574,7 @@

    @@ -1645,13 +1699,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 @@ -1713,7 +1765,7 @@

    @@ -1782,14 +1834,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1805,8 +1857,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1838,7 +1890,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1856,7 +1908,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1905,7 +1957,7 @@

    @@ -1981,7 +2033,7 @@

    @@ -2038,7 +2090,7 @@

    @@ -2107,7 +2159,7 @@

    @@ -2201,7 +2253,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2211,14 +2263,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2268,7 +2320,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2286,7 +2338,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2335,7 +2387,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2353,7 +2405,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2402,7 +2454,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2420,7 +2472,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2469,7 +2521,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2487,7 +2539,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2536,7 +2588,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2554,7 +2606,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2840,6 +2892,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> +
    +
    @@ -2969,7 +3212,7 @@

    @@ -2982,7 +3225,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
    @@ -3074,6 +3317,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3094,7 +3475,7 @@

    @@ -3133,19 +3514,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3156,6 +3537,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3329,11 +3816,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-Providers-Slack.html b/classes/chillerlan-OAuth-Providers-Slack.html index ac9e2614..05461e6b 100644 --- a/classes/chillerlan-OAuth-Providers-Slack.html +++ b/classes/chillerlan-OAuth-Providers-Slack.html @@ -680,8 +680,6 @@

     : UriInterface -
    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() @@ -805,6 +803,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() @@ -834,6 +860,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() @@ -841,6 +881,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
    + @@ -2500,7 +2554,7 @@

    @@ -2635,7 +2689,7 @@

    @@ -3013,7 +3067,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -3031,7 +3085,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -3069,7 +3123,7 @@

    @@ -3194,13 +3248,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 @@ -3262,7 +3314,7 @@

    @@ -3331,14 +3383,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -3354,8 +3406,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -3387,7 +3439,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -3405,7 +3457,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -3454,7 +3506,7 @@

    @@ -3579,7 +3631,7 @@

    @@ -3648,7 +3700,7 @@

    @@ -3742,7 +3794,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -3752,14 +3804,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -3809,7 +3861,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -3827,7 +3879,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -3876,7 +3928,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -3894,7 +3946,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -3943,7 +3995,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -3961,7 +4013,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -4010,7 +4062,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -4028,7 +4080,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -4077,7 +4129,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -4095,7 +4147,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -4381,6 +4433,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> +
    +
    @@ -4510,7 +4753,7 @@

    @@ -4523,7 +4766,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
    @@ -4615,6 +4858,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -4635,7 +5016,7 @@

    @@ -4674,19 +5055,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -4697,6 +5078,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -4915,11 +5402,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-Providers-SoundCloud.html b/classes/chillerlan-OAuth-Providers-SoundCloud.html index 83ed999e..5586ba87 100644 --- a/classes/chillerlan-OAuth-Providers-SoundCloud.html +++ b/classes/chillerlan-OAuth-Providers-SoundCloud.html @@ -392,8 +392,6 @@

     : UriInterface -
    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() @@ -517,6 +515,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() @@ -546,6 +572,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() @@ -553,6 +593,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
    + @@ -868,7 +922,7 @@

    @@ -1003,7 +1057,7 @@

    @@ -1381,7 +1435,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1399,7 +1453,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1437,7 +1491,7 @@

    @@ -1562,13 +1616,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 @@ -1630,7 +1682,7 @@

    @@ -1699,14 +1751,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1722,8 +1774,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1755,7 +1807,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1773,7 +1825,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1822,7 +1874,7 @@

    @@ -1947,7 +1999,7 @@

    @@ -2016,7 +2068,7 @@

    @@ -2110,7 +2162,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2120,14 +2172,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2177,7 +2229,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2195,7 +2247,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2244,7 +2296,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2262,7 +2314,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2311,7 +2363,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2329,7 +2381,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2378,7 +2430,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2396,7 +2448,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2445,7 +2497,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2463,7 +2515,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2749,6 +2801,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> +
    +
    @@ -2878,7 +3121,7 @@

    @@ -2891,7 +3134,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
    @@ -2983,6 +3226,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3003,7 +3384,7 @@

    @@ -3042,19 +3423,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3065,6 +3446,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3235,11 +3722,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-Providers-Spotify.html b/classes/chillerlan-OAuth-Providers-Spotify.html index 1c1822f9..1dd1ac45 100644 --- a/classes/chillerlan-OAuth-Providers-Spotify.html +++ b/classes/chillerlan-OAuth-Providers-Spotify.html @@ -518,8 +518,6 @@

     : UriInterface -
    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() @@ -643,6 +641,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() @@ -672,6 +698,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() @@ -679,6 +719,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
    + @@ -1597,7 +1651,7 @@

    @@ -1732,7 +1786,7 @@

    @@ -2110,7 +2164,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -2128,7 +2182,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -2166,7 +2220,7 @@

    @@ -2291,13 +2345,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 @@ -2359,7 +2411,7 @@

    @@ -2428,14 +2480,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2451,8 +2503,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2484,7 +2536,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2502,7 +2554,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2551,7 +2603,7 @@

    @@ -2676,7 +2728,7 @@

    @@ -2745,7 +2797,7 @@

    @@ -2839,7 +2891,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2849,14 +2901,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2906,7 +2958,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2924,7 +2976,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2973,7 +3025,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2991,7 +3043,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -3040,7 +3092,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -3058,7 +3110,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -3107,7 +3159,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -3125,7 +3177,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -3174,7 +3226,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -3192,7 +3244,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -3478,6 +3530,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> +
    +
    @@ -3607,7 +3850,7 @@

    @@ -3620,7 +3863,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
    @@ -3712,6 +3955,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3732,7 +4113,7 @@

    @@ -3771,19 +4152,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3794,6 +4175,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3985,11 +4472,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-Providers-SteamOpenID.html b/classes/chillerlan-OAuth-Providers-SteamOpenID.html index 93ec6d31..174946e3 100644 --- a/classes/chillerlan-OAuth-Providers-SteamOpenID.html +++ b/classes/chillerlan-OAuth-Providers-SteamOpenID.html @@ -496,6 +496,13 @@

    Prepares the request URL
    +
    + nonce() + +  : string +
    +
    returns a 32 byte random string (in hexadecimal representation) for use as a nonce
    +
    parseTokenResponse() @@ -1165,7 +1172,7 @@
    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1183,7 +1190,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1331,7 +1338,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
    @@ -1344,6 +1351,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1390,7 +1404,7 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1406,8 +1420,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1425,7 +1439,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1443,7 +1457,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1492,7 +1506,7 @@

    @@ -1568,7 +1582,7 @@

    @@ -1625,7 +1639,7 @@

    @@ -1719,7 +1733,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1729,14 +1743,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1786,7 +1800,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -1804,7 +1818,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -1853,7 +1867,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -1871,7 +1885,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -1920,7 +1934,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -1938,7 +1952,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -1987,7 +2001,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2005,7 +2019,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2054,7 +2068,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2072,7 +2086,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2373,7 +2387,7 @@

    @@ -2487,7 +2501,7 @@

    @@ -2500,7 +2514,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
    @@ -2592,6 +2606,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 + + +
    +
    +
    Return values
    string @@ -2824,6 +2907,7 @@
    Return values
  • getRequestHeaders()
  • getRequestTarget()
  • getRequestURL()
  • +
  • nonce()
  • parseTokenResponse()
  • diff --git a/classes/chillerlan-OAuth-Providers-Stripe.html b/classes/chillerlan-OAuth-Providers-Stripe.html index 955b1ae3..031b5001 100644 --- a/classes/chillerlan-OAuth-Providers-Stripe.html +++ b/classes/chillerlan-OAuth-Providers-Stripe.html @@ -407,8 +407,6 @@

     : UriInterface -
    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() @@ -430,7 +428,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -533,6 +537,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() @@ -562,6 +594,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() @@ -569,6 +615,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
    + @@ -884,7 +944,7 @@

    @@ -1019,7 +1079,7 @@

    @@ -1381,7 +1441,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1399,7 +1459,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1437,7 +1497,7 @@

    @@ -1562,13 +1622,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 @@ -1630,7 +1688,7 @@

    @@ -1699,14 +1757,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1722,8 +1780,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1755,7 +1813,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1773,7 +1831,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1816,7 +1874,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + +
    +
    +

    + invalidateAccessToken() +

    @@ -2808,23 +2920,23 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + getAuthURLRequestParams() +

    -

    Prepare request headers

    +

    prepares the query parameters for the auth URL

    protected - getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + getAuthURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
    @@ -2832,9 +2944,16 @@

    Parameters
    - $headers - : array<string|int, mixed>|null - = null
    + $params + : array<string|int, mixed> + +
    + +
    +
    + $scopes + : array<string|int, mixed> +
    @@ -2854,35 +2973,32 @@
    Return values
    -protected " > -

    - getRequestTarget() - +

    + getClientCredentialsTokenRequestBodyParams() +

    -

    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".

    +

    prepares the request body parameters for the client credentials token request

    protected - getRequestTarget(string $uri) : string + getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string|int, mixed>
    -

    Throws if the given path is invalid or if the host of a given URL does not match $apiURL.

    -
    - +
    Parameters
    - $uri - : string + $scopes + : array<string|int, string>|null
    @@ -2890,33 +3006,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - see -
    -
    - OAuthInterface::request() - - -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - string + array<string|int, mixed>
    @@ -2926,23 +3019,23 @@
    Return values
    -protected " > -

    - getRequestURL() - +

    + getRefreshAccessTokenRequestBodyParams() +

    -

    Prepares the request URL

    +

    prepares the request body parameters for the token refresh

    protected - getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + getRefreshAccessTokenRequestBodyParams(string $refreshToken) : array<string|int, mixed>
    @@ -2950,18 +3043,11 @@

    Parameters
    - $path + $refreshToken : string
    -
    -
    - $params - : array<string|int, mixed>|null - = null
    -
    -
    @@ -2969,7 +3055,7 @@
    Parameters
    Return values
    - string + array<string|int, mixed>
    @@ -2979,15 +3065,392 @@
    Return values
    -protected " > -

    - parseTokenResponse() - +

    + getRequestBody() +

    + +

    Prepares the request body

    + + + protected + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + +
    +
    + +
    Parameters
    +
    +
    + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + + +
    +

    + getRequestHeaders() + + +

    + + +

    Prepare request headers

    + + + protected + getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $headers + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + getRequestTarget() + + +

    + + +

    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".

    + + + protected + getRequestTarget(string $uri) : string + +
    +
    +

    Throws if the host of a given URL does not match the host of $apiURL.

    +
    + +
    Parameters
    +
    +
    + $uri + : string +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + see +
    +
    + OAuthInterface::request() + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + string +
    + +
    +
    +

    + getRequestURL() + + +

    + + +

    Prepares the request URL

    + + + protected + getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $params + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    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> +
    + +
    + +
    + +
    +

    + 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 +
    +
    @@ -3204,7 +3773,8 @@

    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3219,11 +3789,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-Providers-Tumblr.html b/classes/chillerlan-OAuth-Providers-Tumblr.html index 669ee51a..ec603ce2 100644 --- a/classes/chillerlan-OAuth-Providers-Tumblr.html +++ b/classes/chillerlan-OAuth-Providers-Tumblr.html @@ -354,13 +354,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -487,6 +480,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() @@ -502,7 +502,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -527,7 +527,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint
    @@ -1220,7 +1220,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1238,7 +1238,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1335,7 +1335,7 @@

    @@ -1467,14 +1467,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
    @@ -1487,6 +1487,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1526,14 +1533,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1549,8 +1556,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1582,57 +1589,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    getStorage() @@ -1650,7 +1607,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1699,7 +1656,7 @@

    @@ -1824,7 +1781,7 @@

    @@ -1918,7 +1875,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1928,14 +1885,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1985,7 +1942,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2003,7 +1960,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2052,7 +2009,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2070,7 +2027,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2119,7 +2076,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2137,7 +2094,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2186,7 +2143,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2204,7 +2161,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2253,7 +2210,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2271,7 +2228,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2572,7 +2529,7 @@

    @@ -2686,7 +2643,7 @@

    @@ -2699,7 +2656,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
    @@ -2743,6 +2700,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> +
    +
    @@ -2895,13 +2903,13 @@
    Return values
    >

    nonce() - +

    @@ -2909,16 +2917,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2929,6 +2947,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2952,7 +2978,7 @@

    @@ -2960,11 +2986,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
    @@ -2975,9 +3003,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -3036,7 +3064,7 @@

    @@ -3044,7 +3072,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3052,13 +3080,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3089,15 +3110,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
    @@ -3105,8 +3126,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3270,7 +3291,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3289,9 +3309,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-Tumblr2.html b/classes/chillerlan-OAuth-Providers-Tumblr2.html index ee4d60e3..62bb1685 100644 --- a/classes/chillerlan-OAuth-Providers-Tumblr2.html +++ b/classes/chillerlan-OAuth-Providers-Tumblr2.html @@ -382,8 +382,6 @@

     : UriInterface -
    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() @@ -507,6 +505,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() @@ -536,6 +562,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() @@ -543,6 +583,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
    +

    @@ -886,7 +940,7 @@

    @@ -1021,7 +1075,7 @@

    @@ -1399,7 +1453,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1417,7 +1471,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1455,7 +1509,7 @@

    @@ -1580,13 +1634,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 @@ -1648,7 +1700,7 @@

    @@ -1717,14 +1769,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1740,8 +1792,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1773,7 +1825,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1791,7 +1843,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1840,7 +1892,7 @@

    @@ -1965,7 +2017,7 @@

    @@ -2034,7 +2086,7 @@

    @@ -2128,7 +2180,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2138,14 +2190,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2195,7 +2247,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2213,7 +2265,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2262,7 +2314,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2280,7 +2332,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2329,7 +2381,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2347,7 +2399,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2396,7 +2448,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2414,7 +2466,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2463,7 +2515,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2481,7 +2533,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2767,6 +2819,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> +
    +
    @@ -2896,7 +3139,7 @@

    @@ -2909,7 +3152,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
    @@ -3001,6 +3244,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3021,7 +3402,7 @@

    @@ -3060,19 +3441,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3083,6 +3464,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3254,11 +3741,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-Providers-Twitch.html b/classes/chillerlan-OAuth-Providers-Twitch.html index 13cc1b14..5f43ac5f 100644 --- a/classes/chillerlan-OAuth-Providers-Twitch.html +++ b/classes/chillerlan-OAuth-Providers-Twitch.html @@ -144,7 +144,7 @@

    @@ -173,6 +173,14 @@

    https://dev.twitch.tv/docs/authentication/ + +
    + see +
    +
    + https://dev.twitch.tv/docs/authentication#oauth-client-credentials-flow-app-access-tokens + +
    @@ -515,11 +523,9 @@

     : UriInterface -
    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() + getClientCredentialsToken()  : AccessToken
    @@ -538,7 +544,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -641,6 +653,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() @@ -670,6 +710,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() @@ -677,6 +731,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
    + @@ -699,7 +767,7 @@

    @@ -727,7 +795,7 @@

    @@ -755,7 +823,7 @@

    @@ -783,7 +851,7 @@

    Twitch.php : - 27 + 28 @@ -811,7 +879,7 @@

    Twitch.php : - 28 + 29 @@ -839,7 +907,7 @@

    @@ -867,7 +935,7 @@

    Twitch.php : - 30 + 31 @@ -895,7 +963,7 @@

    Twitch.php : - 31 + 32 @@ -923,7 +991,7 @@

    Twitch.php : - 32 + 33 @@ -951,7 +1019,7 @@

    Twitch.php : - 33 + 34 @@ -979,7 +1047,7 @@

    Twitch.php : - 34 + 35 @@ -1007,7 +1075,7 @@

    Twitch.php : - 35 + 36 @@ -1035,7 +1103,7 @@

    Twitch.php : - 36 + 37 @@ -1063,7 +1131,7 @@

    Twitch.php : - 37 + 38 @@ -1091,7 +1159,7 @@

    Twitch.php : - 38 + 39 @@ -1119,7 +1187,7 @@

    Twitch.php : - 39 + 40 @@ -1147,7 +1215,7 @@

    @@ -1175,7 +1243,7 @@

    @@ -1203,7 +1271,7 @@

    @@ -1231,7 +1299,7 @@

    @@ -1259,7 +1327,7 @@

    Twitch.php : - 45 + 46 @@ -1287,7 +1355,7 @@

    Twitch.php : - 44 + 45 @@ -1315,7 +1383,7 @@

    @@ -1343,7 +1411,7 @@

    @@ -1371,7 +1439,7 @@

    Twitch.php : - 48 + 49 @@ -1443,7 +1511,7 @@

    @@ -1476,7 +1544,7 @@

    @@ -1509,7 +1577,7 @@

    @@ -1542,7 +1610,7 @@

    @@ -1575,7 +1643,7 @@

    @@ -1608,7 +1676,7 @@

    @@ -1743,7 +1811,7 @@

    @@ -1827,7 +1895,7 @@

    @@ -1993,7 +2061,7 @@

    @@ -2105,7 +2173,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -2123,7 +2191,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -2161,7 +2229,7 @@

    @@ -2286,13 +2354,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 @@ -2348,20 +2414,20 @@

    Return values
    >

    getClientCredentialsToken() - +

    public - getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken + getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
    @@ -2370,7 +2436,7 @@
    Parameters
    $scopes - : array<string|int, mixed>|null + : array<string|int, string>|null = null
    @@ -2380,16 +2446,25 @@
    Parameters
    Tags - +
    - see + implements
    - https://dev.twitch.tv/docs/authentication#oauth-client-credentials-flow-app-access-tokens - + +

    \chillerlan\OAuth\Core\ClientCredentials

    +
    + +
    +
    + throws +
    +
    + ProviderException +
    @@ -2414,14 +2489,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2437,8 +2512,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2470,7 +2545,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2488,7 +2563,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2531,13 +2606,89 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + + +
    +

    + invalidateAccessToken() +

    @@ -2545,7 +2696,7 @@

    public - InvalidateAccessToken([AccessToken|null $token = null ]) : bool + invalidateAccessToken([AccessToken|null $token = null ]) : bool
    @@ -2564,7 +2715,7 @@

    Parameters
    Tags - +
    @@ -2597,7 +2748,7 @@

    @@ -2646,7 +2797,7 @@

    @@ -2715,7 +2866,7 @@

    @@ -2809,7 +2960,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2819,14 +2970,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2876,7 +3027,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2894,7 +3045,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2943,7 +3094,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2961,7 +3112,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -3010,7 +3161,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -3028,7 +3179,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -3077,7 +3228,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -3095,7 +3246,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -3144,7 +3295,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -3162,7 +3313,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -3455,23 +3606,23 @@

    Return values
    -protected " > -

    - getRequestBody() - +

    + getAccessTokenRequestBodyParams() +

    -

    Prepares the request body

    +

    prepares the request body parameters for the access token request

    protected - getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + getAccessTokenRequestBodyParams(string $code) : array<string|int, mixed>
    @@ -3479,15 +3630,8 @@

    Parameters
    - $body - : StreamInterface|array<string|int, mixed>|string -
    -
    - -
    -
    - $request - : RequestInterface + $code + : string
    @@ -3495,25 +3639,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - StreamInterface + array<string|int, mixed>
    @@ -3523,9 +3652,236 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + 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, mixed>|null $scopes) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $scopes + : array<string|int, mixed>|null +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc +
    +
    + + +
    +
    + +
    +
    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> +
    + +
    +
    +

    + getRequestBody() + + +

    + + +

    Prepares the request body

    + + + protected + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface + +
    +
    + +
    Parameters
    +
    +
    + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + +
    +
    +

    + getRequestHeaders() +

    +
    +

    + 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 + + +
    +
    +
    Return values
    string @@ -3702,7 +4196,7 @@

    @@ -3740,6 +4234,14 @@

    https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 + +
    throws @@ -3749,19 +4251,131 @@
    -
    - throws +
    + +
    +
    Return values
    + AccessToken +
    + + +
    +

    + 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> +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + inheritDoc
    - JsonException - +
    Return values
    - AccessToken + ResponseInterface
    @@ -3938,10 +4552,11 @@
    Return values
  • getAccessToken()
  • getAccessTokenFromStorage()
  • getAuthURL()
  • -
  • getClientCredentialsToken()
  • +
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3956,11 +4571,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-Providers-Twitter.html b/classes/chillerlan-OAuth-Providers-Twitter.html index f6ca84a3..bc91ce04 100644 --- a/classes/chillerlan-OAuth-Providers-Twitter.html +++ b/classes/chillerlan-OAuth-Providers-Twitter.html @@ -356,13 +356,6 @@

     : RequestInterface -
    - getRequestToken() - -  : AccessToken -
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    -
    getStorage() @@ -489,6 +482,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() @@ -504,7 +504,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -529,7 +529,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint
    @@ -1252,7 +1252,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1270,7 +1270,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1308,7 +1308,7 @@

    @@ -1440,14 +1440,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
    @@ -1460,6 +1460,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1499,14 +1506,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1522,8 +1529,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1555,57 +1562,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 -
    -
    - - -
    -
    - -
    -
    Return values
    - AccessToken -
    - - -

    getStorage() @@ -1623,7 +1580,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1672,7 +1629,7 @@

    @@ -1797,7 +1754,7 @@

    @@ -1891,7 +1848,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -1901,14 +1858,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -1958,7 +1915,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -1976,7 +1933,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2025,7 +1982,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2043,7 +2000,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2092,7 +2049,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2110,7 +2067,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2159,7 +2116,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2177,7 +2134,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2226,7 +2183,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2244,7 +2201,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2545,7 +2502,7 @@

    @@ -2659,7 +2616,7 @@

    @@ -2672,7 +2629,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
    @@ -2716,6 +2673,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> +
    +
    @@ -2868,13 +2876,13 @@
    Return values
    >

    nonce() - +

    @@ -2882,16 +2890,26 @@

    protected - nonce() : string + nonce([int $bytes = 32 ]) : string
    - +

    Parameters
    +
    +
    + $bytes + : int + = 32
    +
    + +
    +
    +
    Tags - +
    @@ -2902,6 +2920,14 @@
    https://datatracker.ietf.org/doc/html/rfc5849#section-3.3 + +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-10.12 + +
    @@ -2925,7 +2951,7 @@

    @@ -2933,11 +2959,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
    @@ -2948,9 +2976,9 @@
    Parameters
    - $checkCallback + $confirmCallback : bool -
    + = false
    @@ -3009,7 +3037,7 @@

    @@ -3017,7 +3045,7 @@

    protected - sendAccessTokenRequest(AccessToken $token, string $verifier) : ResponseInterface + sendAccessTokenRequest(string $verifier) : ResponseInterface
    @@ -3025,13 +3053,6 @@

    Parameters
    - $token - : AccessToken -
    -
    - -
    -
    $verifier : string
    @@ -3062,15 +3083,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
    @@ -3078,8 +3099,8 @@

    Parameters
    - $requestTokenRequestParams - : array<string|int, mixed> + $url + : string
    @@ -3242,7 +3263,6 @@
    Return values
  • getAccessTokenFromStorage()
  • getAuthURL()
  • getRequestAuthorization()
  • -
  • getRequestToken()
  • getStorage()
  • InvalidateAccessToken()
  • me()
  • @@ -3261,9 +3281,10 @@
    Return values
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • +
  • getRequestTokenRequestParams()
  • getRequestURL()
  • getSignature()
  • -
  • nonce()
  • +
  • nonce()
  • parseTokenResponse()
  • sendAccessTokenRequest()
  • sendRequestTokenRequest()
  • diff --git a/classes/chillerlan-OAuth-Providers-TwitterCC.html b/classes/chillerlan-OAuth-Providers-TwitterCC.html index 582778ee..f596dfc1 100644 --- a/classes/chillerlan-OAuth-Providers-TwitterCC.html +++ b/classes/chillerlan-OAuth-Providers-TwitterCC.html @@ -392,8 +392,6 @@

     : UriInterface -
    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() @@ -518,6 +516,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() @@ -547,6 +573,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() @@ -554,6 +594,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
    +

    @@ -950,7 +1004,7 @@

    @@ -1328,7 +1382,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1346,7 +1400,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1521,9 +1575,7 @@

    -

    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, mixed>|null $scopes = null ]) : UriInterface @@ -1593,7 +1645,7 @@

    @@ -1662,14 +1714,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1685,8 +1737,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1718,7 +1770,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1736,7 +1788,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1785,7 +1837,7 @@

    @@ -1861,7 +1913,7 @@

    @@ -1918,7 +1970,7 @@

    @@ -1987,7 +2039,7 @@

    @@ -2081,7 +2133,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2091,14 +2143,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2148,7 +2200,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2166,7 +2218,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2215,7 +2267,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2233,7 +2285,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2282,7 +2334,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2300,7 +2352,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2349,7 +2401,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2367,7 +2419,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2416,7 +2468,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2434,7 +2486,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2720,6 +2772,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> +
    +
    @@ -2849,7 +3092,7 @@

    @@ -2862,7 +3105,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
    @@ -2954,6 +3197,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2974,7 +3355,7 @@

    @@ -3013,19 +3394,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3036,6 +3417,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3204,11 +3691,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-Providers-Vimeo.html b/classes/chillerlan-OAuth-Providers-Vimeo.html index 40bb5177..4be4fe55 100644 --- a/classes/chillerlan-OAuth-Providers-Vimeo.html +++ b/classes/chillerlan-OAuth-Providers-Vimeo.html @@ -455,8 +455,6 @@

     : UriInterface -
    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() @@ -478,7 +476,13 @@

    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + InvalidateAccessToken() + +  : bool +
    + +
    + invalidateAccessToken()  : bool
    @@ -581,6 +585,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() @@ -610,6 +642,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() @@ -617,6 +663,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
    + @@ -1418,7 +1478,7 @@

    @@ -1780,7 +1840,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1798,7 +1858,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1836,7 +1896,7 @@

    @@ -1961,13 +2021,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 @@ -2029,7 +2087,7 @@

    @@ -2098,14 +2156,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -2121,8 +2179,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -2154,7 +2212,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -2172,7 +2230,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -2215,7 +2273,83 @@

    Return values
    >

    InvalidateAccessToken() - + + +

    + + + + + public + InvalidateAccessToken([AccessToken|null $token = null ]) : bool + +
    +
    + +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + implements +
    +
    + +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    + +
    +
    + codeCoverageIgnore +
    +
    + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + bool +
    + + +
    +

    + invalidateAccessToken() +

    @@ -3207,23 +3319,23 @@
    Return values
    -protected " > -

    - getRequestHeaders() - +

    + getAuthURLRequestParams() +

    -

    Prepare request headers

    +

    prepares the query parameters for the auth URL

    protected - getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + getAuthURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
    @@ -3231,9 +3343,16 @@

    Parameters
    - $headers - : array<string|int, mixed>|null - = null
    + $params + : array<string|int, mixed> + +
    + +
    +
    + $scopes + : array<string|int, mixed> +
    @@ -3253,35 +3372,32 @@
    Return values
    -protected " > -

    - getRequestTarget() - +

    + getClientCredentialsTokenRequestBodyParams() +

    -

    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".

    +

    prepares the request body parameters for the client credentials token request

    protected - getRequestTarget(string $uri) : string + getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string|int, mixed>
    -

    Throws if the given path is invalid or if the host of a given URL does not match $apiURL.

    -
    - +
    Parameters
    - $uri - : string + $scopes + : array<string|int, string>|null
    @@ -3289,33 +3405,10 @@
    Parameters
    -
    - Tags - - -
    -
    -
    - see -
    -
    - OAuthInterface::request() - - -
    -
    - throws -
    -
    - ProviderException - - -
    -
    Return values
    - string + array<string|int, mixed>
    @@ -3325,23 +3418,23 @@
    Return values
    -protected " > -

    - getRequestURL() - +

    + getRefreshAccessTokenRequestBodyParams() +

    -

    Prepares the request URL

    +

    prepares the request body parameters for the token refresh

    protected - getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + getRefreshAccessTokenRequestBodyParams(string $refreshToken) : array<string|int, mixed>
    @@ -3349,18 +3442,11 @@

    Parameters
    - $path + $refreshToken : string
    -
    -
    - $params - : array<string|int, mixed>|null - = null
    -
    -
    @@ -3368,7 +3454,7 @@
    Parameters
    Return values
    - string + array<string|int, mixed>
    @@ -3378,23 +3464,23 @@
    Return values
    -protected " > -

    - parseTokenResponse() - +

    + getRequestBody() +

    -

    Parses the response from a request to the token endpoint

    +

    Prepares the request body

    protected - parseTokenResponse(ResponseInterface $response) : AccessToken + getRequestBody(StreamInterface|array<string|int, mixed>|string $body, RequestInterface $request) : StreamInterface
    @@ -3402,8 +3488,15 @@

    Parameters
    - $response - : ResponseInterface + $body + : StreamInterface|array<string|int, mixed>|string +
    +
    + +
    +
    + $request + : RequestInterface
    @@ -3413,7 +3506,117 @@
    Parameters
    Tags - + + +
    +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    + StreamInterface +
    + + +
    +

    + getRequestHeaders() + + +

    + + +

    Prepare request headers

    + + + protected + getRequestHeaders([array<string|int, mixed>|null $headers = null ]) : array<string|int, mixed> + +
    +
    + +
    Parameters
    +
    +
    + $headers + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + getRequestTarget() + + +

    + + +

    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".

    + + + protected + getRequestTarget(string $uri) : string + +
    +
    +

    Throws if the host of a given URL does not match the host of $apiURL.

    +
    + +
    Parameters
    +
    +
    + $uri + : string +
    +
    + +
    +
    + + +
    + Tags +
    @@ -3421,7 +3624,7 @@
    see
    - https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + OAuthInterface::request()
    @@ -3433,7 +3636,121 @@
    -
    +
    + +
    +
    Return values
    + string +
    + + +
    +

    + getRequestURL() + + +

    + + +

    Prepares the request URL

    + + + protected + getRequestURL(string $path[, array<string|int, mixed>|null $params = null ]) : string + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $params + : array<string|int, mixed>|null + = null
    +
    + +
    +
    + + + +
    +
    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
    @@ -3445,9 +3762,261 @@
    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 + + +
    +
    + +
    +
    Return values
    + string +
    + +
    +
    +

    + parseTokenResponse() + + +

    + + +

    Parses the response from a request to the token endpoint

    + + + protected + parseTokenResponse(ResponseInterface $response) : AccessToken + +
    +
    + +
    Parameters
    +
    +
    + $response + : ResponseInterface +
    +
    + +
    +
    + + +
    + Tags + + +
    +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 + + +
    +
    + see +
    +
    + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 + + +
    +
    + throws +
    +
    + ProviderException + + +
    +
    + +
    +
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3615,7 +4184,8 @@
    Return values
  • getClientCredentialsToken()
  • getRequestAuthorization()
  • getStorage()
  • -
  • InvalidateAccessToken()
  • +
  • InvalidateAccessToken()
  • +
  • invalidateAccessToken()
  • me()
  • refreshAccessToken()
  • request()
  • @@ -3630,11 +4200,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-Providers-WordPress.html b/classes/chillerlan-OAuth-Providers-WordPress.html index 08a0d8d2..53ffcf38 100644 --- a/classes/chillerlan-OAuth-Providers-WordPress.html +++ b/classes/chillerlan-OAuth-Providers-WordPress.html @@ -376,8 +376,6 @@

     : UriInterface -
    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() @@ -501,6 +499,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() @@ -530,6 +556,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() @@ -537,6 +577,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
    +

    @@ -852,7 +906,7 @@

    @@ -987,7 +1041,7 @@

    @@ -1365,7 +1419,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1383,7 +1437,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1421,7 +1475,7 @@

    @@ -1546,13 +1600,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 @@ -1614,7 +1666,7 @@

    @@ -1683,14 +1735,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1706,8 +1758,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1739,7 +1791,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1757,7 +1809,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1806,7 +1858,7 @@

    @@ -1931,7 +1983,7 @@

    @@ -2000,7 +2052,7 @@

    @@ -2094,7 +2146,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2104,14 +2156,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2161,7 +2213,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2179,7 +2231,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2228,7 +2280,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2246,7 +2298,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2295,7 +2347,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2313,7 +2365,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2362,7 +2414,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2380,7 +2432,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2429,7 +2481,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2447,7 +2499,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2733,6 +2785,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> +
    +
    @@ -2862,7 +3105,7 @@

    @@ -2875,7 +3118,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
    @@ -2967,6 +3210,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -2987,7 +3368,7 @@

    @@ -3026,19 +3407,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3049,6 +3430,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3219,11 +3706,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-Providers-YouTube.html b/classes/chillerlan-OAuth-Providers-YouTube.html index 9e10af3f..e7b815cf 100644 --- a/classes/chillerlan-OAuth-Providers-YouTube.html +++ b/classes/chillerlan-OAuth-Providers-YouTube.html @@ -396,8 +396,6 @@

     : UriInterface -
    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() @@ -522,6 +520,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() @@ -551,6 +577,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() @@ -558,6 +598,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
    + @@ -990,7 +1044,7 @@

    @@ -1125,7 +1179,7 @@

    @@ -1504,7 +1558,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1522,7 +1576,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1560,7 +1614,7 @@

    @@ -1685,13 +1739,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 @@ -1753,7 +1805,7 @@

    @@ -1822,14 +1874,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1845,8 +1897,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1878,7 +1930,7 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    getStorage() @@ -1896,7 +1948,7 @@

    public - getStorage() : OAuthStorageInterface + final getStorage() : OAuthStorageInterface
    @@ -1945,7 +1997,7 @@

    @@ -2021,7 +2073,7 @@

    @@ -2078,7 +2130,7 @@

    @@ -2147,7 +2199,7 @@

    @@ -2241,7 +2293,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    sendRequest() @@ -2251,14 +2303,14 @@

    public - sendRequest(RequestInterface $request) : ResponseInterface + final sendRequest(RequestInterface $request) : ResponseInterface
    @@ -2308,7 +2360,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setLogger() @@ -2326,7 +2378,7 @@

    public - setLogger(LoggerInterface $logger) : static + final setLogger(LoggerInterface $logger) : static
    @@ -2375,7 +2427,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setRequestFactory() @@ -2393,7 +2445,7 @@

    public - setRequestFactory(RequestFactoryInterface $requestFactory) : static + final setRequestFactory(RequestFactoryInterface $requestFactory) : static
    @@ -2442,7 +2494,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStorage() @@ -2460,7 +2512,7 @@

    public - setStorage(OAuthStorageInterface $storage) : static + final setStorage(OAuthStorageInterface $storage) : static
    @@ -2509,7 +2561,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setStreamFactory() @@ -2527,7 +2579,7 @@

    public - setStreamFactory(StreamFactoryInterface $streamFactory) : static + final setStreamFactory(StreamFactoryInterface $streamFactory) : static
    @@ -2576,7 +2628,7 @@

    Return values
    class="phpdocumentor-element -method -public - " + -final " >

    setUriFactory() @@ -2594,7 +2646,7 @@

    public - setUriFactory(UriFactoryInterface $uriFactory) : static + final setUriFactory(UriFactoryInterface $uriFactory) : static
    @@ -2880,6 +2932,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> +
    +
    @@ -3009,7 +3252,7 @@

    @@ -3022,7 +3265,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
    @@ -3114,6 +3357,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:

    + +
    + +
    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 + + +
    +
    +
    Return values
    string @@ -3134,7 +3515,7 @@

    @@ -3173,19 +3554,19 @@

    -
    - throws +
    + see
    - ProviderException - + https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 +
    -
    +
    throws
    - JsonException + ProviderException
    @@ -3196,6 +3577,112 @@
    Return values
    AccessToken
    +
    +
    +

    + 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 +
    +
    @@ -3370,11 +3857,19 @@
    Return values
  • cleanQueryParams()
  • construct()
  • createAccessToken()
  • +
  • getAccessTokenRequestBodyParams()
  • +
  • getAuthURLRequestParams()
  • +
  • getClientCredentialsTokenRequestBodyParams()
  • +
  • getRefreshAccessTokenRequestBodyParams()
  • getRequestBody()
  • getRequestHeaders()
  • getRequestTarget()
  • getRequestURL()
  • +
  • getTokenResponseData()
  • +
  • nonce()
  • parseTokenResponse()
  • +
  • sendAccessTokenRequest()
  • +
  • sendClientCredentialsTokenRequest()
  • diff --git a/classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html b/classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html index ee155dd9..d801a043 100644 --- a/classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html +++ b/classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html @@ -358,21 +358,20 @@

    - getRequestToken() + getStorage() -  : AccessToken +  : OAuthStorageInterface
    -
    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.
    +
    Returns the current OAuthStorageInterface
    - getStorage() + InvalidateAccessToken() -  : OAuthStorageInterface +  : bool
    -
    Returns the current OAuthStorageInterface
    - InvalidateAccessToken() + invalidateAccessToken()  : bool
    @@ -492,6 +491,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() @@ -507,7 +513,7 @@

    Generates a request signature
    - nonce() + nonce()  : string
    @@ -532,7 +538,7 @@

     : ResponseInterface

    -
    Sends a request to the request token endpoint with the given params
    +
    Sends a request to the request token endpoint
    @@ -1267,7 +1273,7 @@

    Parameters
    class="phpdocumentor-element -method -public - " + -final " >

    __get() @@ -1285,7 +1291,7 @@

    public - __get(string $name) : string|null + final __get(string $name) : string|null
    @@ -1323,7 +1329,7 @@

    @@ -1455,14 +1461,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
    @@ -1475,6 +1481,13 @@

    Parameters
    = null
    +
    +
    + $scopes + : array<string|int, mixed>|null + = null
    +
    +
    @@ -1514,14 +1527,14 @@

    public - getRequestAuthorization(RequestInterface $request, AccessToken $token) : RequestInterface + getRequestAuthorization(RequestInterface $request[, AccessToken|null $token = null ]) : RequestInterface
    @@ -1537,8 +1550,8 @@

    Parameters
    $token - : AccessToken -
    + : AccessToken|null + = null
    @@ -1570,25 +1583,25 @@
    Return values
    class="phpdocumentor-element -method -public - " + -final " > -

    - getRequestToken() - +

    + getStorage() +

    -

    Obtains an OAuth1 request token and returns an AccessToken object for use in the authentication request.

    +

    Returns the current OAuthStorageInterface

    public - getRequestToken() : AccessToken + final getStorage() : OAuthStorageInterface
    @@ -1597,7 +1610,7 @@

    Tags - +
    @@ -1607,12 +1620,19 @@
    +
    +
    + codeCoverageIgnore +
    +
    + +
    Return values
    - AccessToken + OAuthStorageInterface
    @@ -1622,41 +1642,52 @@
    Return values
    -public " > -

    - getStorage() - +

    + InvalidateAccessToken() +

    -

    Returns the current OAuthStorageInterface

    - + public - getStorage() : OAuthStorageInterface + InvalidateAccessToken([AccessToken|null $token = null ]) : bool
    - +
    Parameters
    +
    +
    + $token + : AccessToken|null + = null
    +
    + +
    +
    +
    Tags - +
    - inheritDoc + implements
    - +

    \chillerlan\OAuth\Core\TokenInvalidate

    +
    +
    codeCoverageIgnore @@ -1664,12 +1695,20 @@
    +
    +
    + throws +
    +
    + ProviderException + +
    Return values
    - OAuthStorageInterface + bool
    @@ -1679,9 +1718,9 @@
    Return values
    -public " > -

    - InvalidateAccessToken() - +

    + invalidateAccessToken() +

    @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + + +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -547,6 +719,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -836,7 +1076,7 @@

    @@ -867,7 +1107,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -898,7 +1138,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -921,22 +1161,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -952,44 +1192,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -1000,22 +1223,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1031,22 +1254,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1062,22 +1285,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1093,22 +1316,435 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void
    @@ -1148,6 +1784,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1287,7 +2202,7 @@

    @@ -1343,7 +2258,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1353,14 +2268,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1394,7 +2309,7 @@

    @@ -1429,7 +2344,7 @@

    @@ -1474,7 +2389,7 @@

    @@ -1509,7 +2424,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1519,14 +2434,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1561,7 +2476,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1571,14 +2486,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1609,7 +2524,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1619,14 +2534,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1799,6 +2714,7 @@

    @@ -1807,6 +2723,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,22 +1302,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1110,7 +1333,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1267,7 +2182,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = 'access_token=2YotnFZFEjr1zCsicMWpAA&token_type=example&expires=3600&' . 'refresh_token=tGzv3JOkF0XG5Qx2TlKWIA&example_parameter=example_value' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,15 +1302,428 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    + + + + public + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1211,7 +2126,7 @@

    @@ -1242,7 +2157,7 @@

    @@ -1267,7 +2182,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,22 +1302,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1110,7 +1333,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1267,7 +2182,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -777,7 +929,7 @@

    @@ -812,7 +964,7 @@

    @@ -835,22 +987,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -858,7 +1041,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -883,22 +1073,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -907,6 +1128,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -938,6 +1207,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -984,7 +1284,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1093,6 +1393,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1195,7 +1743,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1205,14 +1753,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1246,7 +1794,7 @@

    @@ -1281,7 +1829,7 @@

    @@ -1326,7 +1874,7 @@

    @@ -1361,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1371,14 +1919,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1413,7 +1961,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1423,14 +1971,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1461,7 +2009,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1471,14 +2019,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1659,6 +2207,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -775,7 +927,7 @@

    @@ -810,7 +962,7 @@

    @@ -833,22 +985,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -856,7 +1039,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -881,22 +1071,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -905,6 +1126,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -936,6 +1205,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -982,7 +1282,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1091,6 +1391,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1193,7 +1741,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1203,14 +1751,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1244,7 +1792,7 @@

    @@ -1279,7 +1827,7 @@

    @@ -1324,7 +1872,7 @@

    @@ -1359,7 +1907,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1369,14 +1917,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1411,7 +1959,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1421,14 +1969,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1459,7 +2007,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1469,14 +2017,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1657,6 +2205,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,22 +1302,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1110,8 +1333,421 @@

    -public " > -

    - testOAuthInstance() +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    + testOAuthInstance()

    @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1211,7 +2126,7 @@

    @@ -1267,7 +2182,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -712,7 +810,7 @@

    @@ -739,22 +837,53 @@

    Return values
    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -762,7 +891,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -787,22 +923,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithStreaminterface() : void
    @@ -811,6 +947,85 @@

    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -950,7 +1165,7 @@

    @@ -1006,7 +1221,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1016,14 +1231,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1057,7 +1272,7 @@

    @@ -1092,7 +1307,7 @@

    @@ -1137,7 +1352,7 @@

    @@ -1172,7 +1387,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1182,14 +1397,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1224,7 +1439,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1234,14 +1449,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1272,7 +1487,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1282,14 +1497,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1469,6 +1684,7 @@

  • +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,22 +1302,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1110,7 +1333,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1211,7 +2126,7 @@

    @@ -1267,7 +2182,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -539,6 +711,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -793,7 +1033,7 @@

    @@ -828,7 +1068,7 @@

    @@ -859,7 +1099,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -890,7 +1130,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -913,22 +1153,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -944,44 +1184,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -992,22 +1215,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1023,22 +1246,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1054,22 +1277,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1085,22 +1308,435 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void
    @@ -1140,6 +1776,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1248,7 +2163,7 @@

    @@ -1304,7 +2219,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1314,14 +2229,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1355,7 +2270,7 @@

    @@ -1390,7 +2305,7 @@

    @@ -1435,7 +2350,7 @@

    @@ -1470,7 +2385,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1480,14 +2395,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1522,7 +2437,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1532,14 +2447,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1570,7 +2485,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1580,14 +2495,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1760,6 +2675,7 @@

    @@ -1768,6 +2684,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,435 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void
    @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1244,7 +2159,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -539,6 +711,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -793,7 +1033,7 @@

    @@ -828,7 +1068,7 @@

    @@ -859,7 +1099,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -890,7 +1130,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -913,22 +1153,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -944,44 +1184,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -992,22 +1215,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1023,22 +1246,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1054,22 +1277,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1085,22 +1308,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1116,7 +1339,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1140,6 +1776,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSendAccessTokenRequest() : void
    @@ -1233,6 +2086,68 @@

    +

    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() + + +

    + + + + + public + testSetCSRFStateNotSupportedException() : mixed + +
    +
    + + + + +
    @@ -1304,7 +2219,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1314,14 +2229,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1355,7 +2270,7 @@

    @@ -1390,7 +2305,7 @@

    @@ -1435,7 +2350,7 @@

    @@ -1470,7 +2385,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1480,14 +2395,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1522,7 +2437,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1532,14 +2447,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1570,7 +2485,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1580,14 +2495,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1760,6 +2675,7 @@

    @@ -1768,6 +2684,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    >

    $provider - +

    protected - OAuthInterface|OAuth1Interface + OAuthInterface $provider @@ -730,6 +847,41 @@

    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -739,7 +891,7 @@

    @@ -774,7 +926,7 @@

    @@ -797,22 +949,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -820,7 +1003,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -845,22 +1035,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -869,6 +1090,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -900,6 +1169,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -946,7 +1246,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1055,6 +1355,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1132,7 +1680,7 @@

    @@ -1158,7 +1706,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1168,14 +1716,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1209,7 +1757,7 @@

    @@ -1244,7 +1792,7 @@

    @@ -1289,7 +1837,7 @@

    @@ -1324,7 +1872,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1334,14 +1882,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1376,7 +1924,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1386,14 +1934,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1424,7 +1972,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1434,14 +1982,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1621,11 +2169,12 @@

  • @@ -1634,17 +2183,30 @@

  • Methods
  • +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -778,7 +930,7 @@

    @@ -813,7 +965,7 @@

    @@ -836,22 +988,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -859,7 +1042,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -884,22 +1074,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -908,6 +1129,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -939,6 +1208,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -985,7 +1285,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1094,6 +1394,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1196,7 +1744,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1206,14 +1754,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1247,7 +1795,7 @@

    @@ -1282,7 +1830,7 @@

    @@ -1327,7 +1875,7 @@

    @@ -1362,7 +1910,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1372,14 +1920,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1414,7 +1962,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1424,14 +1972,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1462,7 +2010,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1472,14 +2020,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1660,6 +2208,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -497,6 +669,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    $logger - - + + +

    + + + + + protected + LoggerInterface + $logger + + + + + + + +
    +

    + $options + + + + +

    + + + + + protected + OAuthOptions + $options + + + + + + +
    +
    +

    + $provider + + + + +

    + + + + + protected + OAuthInterface + $provider + + + + + + +
    +
    +

    + $reflection + + + + +

    + + + + + protected + ReflectionClass + $reflection + + + + + + +
    +
    +

    + $storage + + + + +

    + + + + + protected + OAuthStorageInterface + $storage + + + + + + +
    + + +
    +

    + Methods + + +

    +
    +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + requestTargetProvider() + + +

    + + + + + public + static requestTargetProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +
    +

    + testCheckCSRFState() + + +

    + + + + + public + testCheckCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testCheckCSRFStateEmptyException() + + +

    + + + + + public + testCheckCSRFStateEmptyException() : void + +
    +
    + + + + + +
    +
    +

    + testCheckCSRFStateInvalidStateException() + + +

    + + + + + public + testCheckCSRFStateInvalidStateException() : void + +
    +
    + + + + + +
    +
    +

    + testCheckCSRFStateMismatchException() + + +

    + + + + + public + testCheckCSRFStateMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testCheckCSRFStateNotSupportedException() + + +

    + + + + + public + testCheckCSRFStateNotSupportedException() : mixed + +
    +
    + + + + + +
    +
    +

    + testClientCredentialsTokenRequest() + + +

    + + + + + public + testClientCredentialsTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testGetAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetAuthURL() + + +

    + + + + + public + testGetAuthURL() : void + +
    +
    + + + + + +
    +
    +

    + testGetAuthURLRequestParams() + + +

    + + + + + public + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + +

    - protected - LoggerInterface - $logger - + public + testGetRequestBodyWithStreaminterface() : void +
    +
    +
    -

    - $options - +

    + testGetRequestBodyWithString() + - -

    - protected - OAuthOptions - $options - + public + testGetRequestBodyWithString() : void +
    +
    +
    -

    - $provider - +

    + testGetRequestTarget() + - -

    - protected - OAuthInterface|OAuth2Interface - $provider - + public + testGetRequestTarget(string $path, string $expected) : void +
    +
    - +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + +
    -

    - $reflection - +

    + testGetRequestTargetProviderMismatchException() + - -

    - protected - ReflectionClass - $reflection - + public + testGetRequestTargetProviderMismatchException() : void +
    +
    +
    -

    - $storage - +

    + testMagicGet() + - -

    - protected - OAuthStorageInterface - $storage - + public + testMagicGet() : void +
    +
    +
    -
    - -
    -

    - Methods - - -

    -

    - requestTargetProvider() - +

    + testOAuth2Instance() +

    public - static requestTargetProvider() : array<string|int, mixed> + testOAuth2Instance() : void
    @@ -766,11 +1702,7 @@

    -
    -
    Return values
    - array<string|int, mixed> -
    - +

    Return values -public " > -

    - testCheckCSRFState() - +

    + testOAuthInstance() +

    public - testCheckCSRFState() : void + testOAuthInstance() : void
    @@ -809,22 +1741,22 @@

    -public " > -

    - testCheckCSRFStateEmptyException() - +

    + testParseTokenResponse() +

    public - testCheckCSRFStateEmptyException() : void + testParseTokenResponse() : void
    @@ -840,22 +1772,22 @@

    -

    - testCheckCSRFStateInvalidStateException() - +

    + testParseTokenResponseErrorException() +

    public - testCheckCSRFStateInvalidStateException() : void + testParseTokenResponseErrorException() : void
    @@ -871,22 +1803,22 @@

    -

    - testGetRequestAuthorization() - +

    + testParseTokenResponseNoDataException() +

    public - testGetRequestAuthorization() : void + testParseTokenResponseNoDataException() : void
    @@ -902,44 +1834,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testParseTokenResponseNoTokenException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testParseTokenResponseNoTokenException() : void
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -950,22 +1865,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testParseTokenResponseWithScopes() +

    public - testGetRequestTargetInvalidSchemeException() : void + testParseTokenResponseWithScopes() : void
    @@ -981,22 +1896,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testProviderInstance() +

    public - testGetRequestTargetProviderMismatchException() : void + testProviderInstance() : void
    @@ -1012,22 +1927,22 @@

    -

    - testMagicGet() - +

    + testRefreshAccessTokenNoRefreshTokenException() +

    public - testMagicGet() : void + testRefreshAccessTokenNoRefreshTokenException() : void
    @@ -1043,22 +1958,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testRefreshAccessTokenNotSupportedException() +

    public - testOAuth2Instance() : void + testRefreshAccessTokenNotSupportedException() : void
    @@ -1074,22 +1989,22 @@

    -public " > -

    - testOAuthInstance() - +

    + testSendAccessTokenRequest() +

    public - testOAuthInstance() : void + testSendAccessTokenRequest() : void
    @@ -1105,22 +2020,22 @@

    -public " > -

    - testProviderInstance() - +

    + testSetCSRFState() +

    public - testProviderInstance() : void + testSetCSRFState() : void
    @@ -1136,22 +2051,22 @@

    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1175,7 +2090,7 @@

    @@ -1206,7 +2121,7 @@

    @@ -1232,7 +2147,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1242,14 +2157,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1283,7 +2198,7 @@

    @@ -1318,7 +2233,7 @@

    @@ -1363,7 +2278,7 @@

    @@ -1398,7 +2313,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1408,14 +2323,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1450,7 +2365,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1460,14 +2375,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1498,7 +2413,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1508,14 +2423,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1688,6 +2603,7 @@

    @@ -1695,11 +2611,12 @@

  • @@ -1708,19 +2625,41 @@

  • Methods
  • +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -536,6 +708,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -790,7 +1030,7 @@

    @@ -825,7 +1065,7 @@

    @@ -856,7 +1096,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -887,7 +1127,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -910,22 +1150,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -941,44 +1181,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -989,22 +1212,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1020,22 +1243,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1051,22 +1274,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1082,22 +1305,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1113,7 +1336,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1137,6 +1773,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1214,7 +2129,7 @@

    @@ -1270,7 +2185,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1280,14 +2195,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1321,7 +2236,7 @@

    @@ -1356,7 +2271,7 @@

    @@ -1401,7 +2316,7 @@

    @@ -1436,7 +2351,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1446,14 +2361,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1488,7 +2403,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1498,14 +2413,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1536,7 +2451,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1546,14 +2461,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1726,6 +2641,7 @@

    @@ -1734,6 +2650,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -777,7 +929,7 @@

    @@ -812,7 +964,7 @@

    @@ -835,22 +987,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -858,7 +1041,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -883,22 +1073,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -907,6 +1128,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -938,6 +1207,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -984,7 +1284,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1093,6 +1393,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1195,7 +1743,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1205,14 +1753,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1246,7 +1794,7 @@

    @@ -1281,7 +1829,7 @@

    @@ -1326,7 +1874,7 @@

    @@ -1361,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1371,14 +1919,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1413,7 +1961,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1423,14 +1971,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1461,7 +2009,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1471,14 +2019,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1659,6 +2207,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -777,7 +929,7 @@

    @@ -812,7 +964,7 @@

    @@ -835,22 +987,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -858,7 +1041,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -883,22 +1073,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -907,6 +1128,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -938,6 +1207,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -984,7 +1284,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1093,6 +1393,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1195,7 +1743,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1205,14 +1753,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1246,7 +1794,7 @@

    @@ -1281,7 +1829,7 @@

    @@ -1326,7 +1874,7 @@

    @@ -1361,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1371,14 +1919,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1413,7 +1961,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1423,14 +1971,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1461,7 +2009,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1471,14 +2019,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1659,6 +2207,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,435 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void
    @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() + + +

    + + + + + public + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1244,7 +2159,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -712,7 +810,7 @@

    @@ -739,22 +837,53 @@

    Return values
    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -762,7 +891,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -787,22 +923,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithStreaminterface() : void
    @@ -811,6 +947,85 @@

    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -950,7 +1165,7 @@

    @@ -1006,7 +1221,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1016,14 +1231,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1057,7 +1272,7 @@

    @@ -1092,7 +1307,7 @@

    @@ -1137,7 +1352,7 @@

    @@ -1172,7 +1387,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1182,14 +1397,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1224,7 +1439,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1234,14 +1449,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1272,7 +1487,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1282,14 +1497,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1469,6 +1684,7 @@

  • +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -777,7 +929,7 @@

    @@ -812,7 +964,7 @@

    @@ -835,22 +987,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -858,7 +1041,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -883,22 +1073,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -907,6 +1128,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -938,6 +1207,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -984,7 +1284,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1093,6 +1393,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1195,7 +1743,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1205,14 +1753,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1246,7 +1794,7 @@

    @@ -1281,7 +1829,7 @@

    @@ -1326,7 +1874,7 @@

    @@ -1361,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1371,14 +1919,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1413,7 +1961,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1423,14 +1971,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1461,7 +2009,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1471,14 +2019,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1659,6 +2207,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,15 +1302,428 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    + + + + public + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() + + +

    + + + + + public + testSetCSRFStateNotSupportedException() : mixed
    @@ -1211,7 +2126,7 @@

    @@ -1242,7 +2157,7 @@

    @@ -1267,7 +2182,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -545,6 +711,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -799,7 +1033,7 @@

    @@ -834,7 +1068,7 @@

    @@ -865,7 +1099,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -896,7 +1130,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -919,22 +1153,22 @@

    -

    - testGetAccessToken() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetAccessToken() : void + testCheckCSRFStateMismatchException() : void
    @@ -950,22 +1184,22 @@

    -public " > -

    - testGetAuthURL() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetAuthURL() : void + testCheckCSRFStateNotSupportedException() : mixed
    @@ -981,22 +1215,22 @@

    -public " > -

    - testGetRequestAuthorization() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestAuthorization() : void + testClientCredentialsTokenRequest() : void
    @@ -1012,44 +1246,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetAccessToken() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetAccessToken() : void
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -1060,22 +1277,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1091,15 +1308,397 @@

    -

    - testGetRequestTargetProviderMismatchException() - - -

    +

    + testGetAuthURL() + + +

    + + + + + public + testGetAuthURL() : void + +
    +
    + + + + + +
    +
    +

    + testGetAuthURLRequestParams() + + +

    + + + + + public + testGetAuthURLRequestParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    @@ -1161,7 +1760,7 @@

    @@ -1208,6 +1807,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1285,7 +2163,7 @@

    @@ -1341,7 +2219,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1351,14 +2229,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1392,7 +2270,7 @@

    @@ -1427,7 +2305,7 @@

    @@ -1472,7 +2350,7 @@

    @@ -1507,7 +2385,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1517,14 +2395,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1559,7 +2437,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1569,14 +2447,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1607,7 +2485,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1617,14 +2495,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1797,6 +2675,7 @@

    @@ -1805,6 +2684,7 @@

    +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -777,7 +929,7 @@

    @@ -812,7 +964,7 @@

    @@ -835,22 +987,53 @@

    -public " > -

    - testGetRequestTarget() - +

    + testGetRequestBodyInvalidContentTypeException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void
    @@ -858,7 +1041,14 @@

    Parameters
    - $path + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType : string
    @@ -883,22 +1073,53 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() +

    public - testGetRequestTargetInvalidSchemeException() : void + testGetRequestBodyWithString() : void
    @@ -907,6 +1128,54 @@

    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + +
    OAuthProviderUnitTestAbstract.php : - 80 + 129 @@ -938,6 +1207,37 @@

    +

    + testGetRequestTokenRequestParams() + + +

    + + + + + public + testGetRequestTokenRequestParams() : void + +
    +
    + + + + +
    @@ -984,7 +1284,7 @@

    OAuth1ProviderUnitTestAbstract.php : - 68 + 194 @@ -1093,6 +1393,192 @@

    +

    +
    +

    + testParseTemporaryCredentialsTokenResponse() + + +

    + + + + + public + testParseTemporaryCredentialsTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseConfirmCallbackException() + + +

    + + + + + public + testParseTokenResponseConfirmCallbackException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + +
    +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSendRequestTokenRequest() + + +

    + + + + + public + testSendRequestTokenRequest() : void + +
    +
    + + + + +
    @@ -1195,7 +1743,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1205,14 +1753,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1246,7 +1794,7 @@

    @@ -1281,7 +1829,7 @@

    @@ -1326,7 +1874,7 @@

    @@ -1361,7 +1909,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1371,14 +1919,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1413,7 +1961,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1423,14 +1971,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1461,7 +2009,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1471,14 +2019,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1659,6 +2207,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -533,6 +705,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -787,7 +1027,7 @@

    @@ -822,7 +1062,7 @@

    @@ -853,7 +1093,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -884,7 +1124,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -907,22 +1147,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -938,44 +1178,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -986,22 +1209,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1017,22 +1240,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1048,22 +1271,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1079,22 +1302,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1110,7 +1333,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1134,6 +1770,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1267,7 +2182,7 @@
    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1277,14 +2192,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1318,7 +2233,7 @@

    @@ -1353,7 +2268,7 @@

    @@ -1398,7 +2313,7 @@

    @@ -1433,7 +2348,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1443,14 +2358,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1485,7 +2400,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1495,14 +2410,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1533,7 +2448,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1543,14 +2458,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1723,6 +2638,7 @@

    @@ -1731,6 +2647,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    +
    +

    + TEST_TOKEN + + +

    + + + + + + protected + mixed + TEST_TOKEN + = '{"access_token":"2YotnFZFEjr1zCsicMWpAA","token_type":"example","expires_in":3600,' . '"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA","example_parameter":"example_value"}' + + + + + + +
    @@ -535,6 +707,39 @@

    + +
    +

    + $provider + + + + +

    + + + + + public + OAuthInterface + $provider + + + + + +
    -method -public -static " +> +

    + arrayBodyProvider() + + +

    + + + + + public + static arrayBodyProvider() : array<string|int, mixed> + +
    +
    + + + + +
    +
    Return values
    + array<string|int, mixed> +
    + +
    +

    requestTargetProvider() @@ -789,7 +1029,7 @@

    @@ -824,7 +1064,7 @@

    @@ -855,7 +1095,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 75 + 282 @@ -886,7 +1126,7 @@

    OAuth2ProviderUnitTestAbstract.php : - 87 + 294 @@ -909,22 +1149,22 @@

    -

    - testGetRequestAuthorization() - +

    + testCheckCSRFStateMismatchException() +

    public - testGetRequestAuthorization() : void + testCheckCSRFStateMismatchException() : void
    @@ -940,44 +1180,27 @@

    -public " > -

    - testGetRequestTarget() - +

    + testCheckCSRFStateNotSupportedException() +

    public - testGetRequestTarget(string $path, string $expected) : void + testCheckCSRFStateNotSupportedException() : mixed
    -
    Parameters
    -
    -
    - $path - : string -
    -
    - -
    -
    - $expected - : string -
    -
    - -
    -
    - + @@ -988,22 +1211,22 @@
    Parameters
    -public " > -

    - testGetRequestTargetInvalidSchemeException() - +

    + testClientCredentialsTokenRequest() +

    public - testGetRequestTargetInvalidSchemeException() : void + testClientCredentialsTokenRequest() : void
    @@ -1019,22 +1242,22 @@

    -

    - testGetRequestTargetProviderMismatchException() - +

    + testGetAccessTokenRequestBodyParams() +

    public - testGetRequestTargetProviderMismatchException() : void + testGetAccessTokenRequestBodyParams() : void
    @@ -1050,22 +1273,22 @@

    -

    - testMagicGet() - +

    + testGetAuthURL() +

    public - testMagicGet() : void + testGetAuthURL() : void
    @@ -1081,22 +1304,22 @@

    -public " > -

    - testOAuth2Instance() - +

    + testGetAuthURLRequestParams() +

    public - testOAuth2Instance() : void + testGetAuthURLRequestParams() : void
    @@ -1112,7 +1335,420 @@

    -public " > -

    +

    + testGetClientCredentialsNotSupportedException() + + +

    + + + + + public + testGetClientCredentialsNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testGetClientCredentialsTokenRequestBodyParams() + + +

    + + + + + public + testGetClientCredentialsTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRefreshAccessTokenRequestBodyParams() + + +

    + + + + + public + testGetRefreshAccessTokenRequestBodyParams() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestAuthorization() + + +

    + + + + + public + testGetRequestAuthorization() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyInvalidContentTypeException() + + +

    + + + + + public + testGetRequestBodyInvalidContentTypeException() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithArray() + + +

    + + + + + public + testGetRequestBodyWithArray(array<string|int, mixed> $body, string $contentType, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $body + : array<string|int, mixed> +
    +
    + +
    +
    + $contentType + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestBodyWithStreaminterface() + + +

    + + + + + public + testGetRequestBodyWithStreaminterface() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestBodyWithString() + + +

    + + + + + public + testGetRequestBodyWithString() : void + +
    +
    + + + + + +
    +
    +

    + testGetRequestTarget() + + +

    + + + + + public + testGetRequestTarget(string $path, string $expected) : void + +
    +
    + +
    Parameters
    +
    +
    + $path + : string +
    +
    + +
    +
    + $expected + : string +
    +
    + +
    +
    + + + + +
    +
    +

    + testGetRequestTargetProviderMismatchException() + + +

    + + + + + public + testGetRequestTargetProviderMismatchException() : void + +
    +
    + + + + + +
    +
    +

    + testMagicGet() + + +

    + + + + + public + testMagicGet() : void + +
    +
    + + + + + +
    +
    +

    + testOAuth2Instance() + + +

    + + + + + public + testOAuth2Instance() : void + +
    +
    + + + + + +
    +
    +

    testOAuthInstance() @@ -1136,6 +1772,161 @@

    +

    +
    +

    + testParseTokenResponse() + + +

    + + + + + public + testParseTokenResponse() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseErrorException() + + +

    + + + + + public + testParseTokenResponseErrorException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoDataException() + + +

    + + + + + public + testParseTokenResponseNoDataException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseNoTokenException() + + +

    + + + + + public + testParseTokenResponseNoTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testParseTokenResponseWithScopes() + + +

    + + + + + public + testParseTokenResponseWithScopes() : void + +
    +
    + + + + +
    -public " > -

    - testRefreshAccessTokenNoRefreshTokenAvailable() - +

    + testRefreshAccessTokenNoRefreshTokenException() + + +

    + + + + + public + testRefreshAccessTokenNoRefreshTokenException() : void + +
    +
    + + + + + +
    +
    +

    + testRefreshAccessTokenNotSupportedException() + + +

    + + + + + public + testRefreshAccessTokenNotSupportedException() : void + +
    +
    + + + + + +
    +
    +

    + testSendAccessTokenRequest() + + +

    + + + + + public + testSendAccessTokenRequest() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFState() + + +

    + + + + + public + testSetCSRFState() : void + +
    +
    + + + + + +
    +
    +

    + testSetCSRFStateNotSupportedException() +

    public - testRefreshAccessTokenNoRefreshTokenAvailable() : void + testSetCSRFStateNotSupportedException() : mixed
    @@ -1213,7 +2128,7 @@

    @@ -1269,7 +2184,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    getReflectionProperty() @@ -1279,14 +2194,14 @@

    protected - getReflectionProperty(string $property) : mixed + final getReflectionProperty(string $property) : mixed
    @@ -1320,7 +2235,7 @@

    @@ -1355,7 +2270,7 @@

    @@ -1400,7 +2315,7 @@

    @@ -1435,7 +2350,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflection() @@ -1445,14 +2360,14 @@

    protected - invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object + final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
    @@ -1487,7 +2402,7 @@

    Return values
    class="phpdocumentor-element -method -protected - " + -final " >

    invokeReflectionMethod() @@ -1497,14 +2412,14 @@

    protected - invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed + final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
    @@ -1535,7 +2450,7 @@

    Parameters
    class="phpdocumentor-element -method -protected - " + -final " >

    setReflectionProperty() @@ -1545,14 +2460,14 @@

    protected - setReflectionProperty(string $property, mixed $value) : void + final setReflectionProperty(string $property, mixed $value) : void
    @@ -1725,6 +2640,7 @@

    @@ -1733,6 +2649,7 @@

    • $provider
    • $provider
    • +
    • $provider
    • $ENV_IS_CI
    • $HTTP_CLIENT_FACTORY
    • $logger
    • @@ -1746,19 +2663,41 @@

    • Methods
    • C

      diff --git a/js/searchIndex.js b/js/searchIndex.js index ef309950..4511c49d 100644 --- a/js/searchIndex.js +++ b/js/searchIndex.js @@ -80,6 +80,11 @@ Search.appendIndex( "name": "getClientCredentialsToken", "summary": "Obtains\u0020an\u0020OAuth2\u0020client\u0020credentials\u0020token\u0020and\u0020returns\u0020an\u0020AccessToken", "url": "classes/chillerlan-OAuth-Core-ClientCredentials.html#method_getClientCredentialsToken" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\CSRFStateMismatchException", + "name": "CSRFStateMismatchException", + "summary": "", + "url": "classes/chillerlan-OAuth-Core-CSRFStateMismatchException.html" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\CSRFToken", "name": "CSRFToken", @@ -95,11 +100,6 @@ Search.appendIndex( "name": "OAuth1Interface", "summary": "Specifies\u0020the\u0020basic\u0020methods\u0020for\u0020an\u0020OAuth1\u0020provider.", "url": "classes/chillerlan-OAuth-Core-OAuth1Interface.html" - }, { - "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Interface\u003A\u003AgetRequestToken\u0028\u0029", - "name": "getRequestToken", - "summary": "Obtains\u0020an\u0020OAuth1\u0020request\u0020token\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object\u0020for\u0020use\u0020in\u0020the\u0020authentication\u0020request.", - "url": "classes/chillerlan-OAuth-Core-OAuth1Interface.html#method_getRequestToken" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Interface\u003A\u003AgetAccessToken\u0028\u0029", "name": "getAccessToken", @@ -108,7 +108,7 @@ Search.appendIndex( }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider", "name": "OAuth1Provider", - "summary": "Implements\u0020an\u0020abstract\u0020OAuth1\u0020provider\u0020with\u0020all\u0020methods\u0020required\u0020by\u0020the\u0020OAuth1Interface.", + "summary": "Implements\u0020an\u0020abstract\u0020OAuth1\u0020\u00281.0a\u0029\u0020provider\u0020with\u0020all\u0020methods\u0020required\u0020by\u0020the\u0020OAuth1Interface.", "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AgetAuthURL\u0028\u0029", @@ -116,25 +116,20 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_getAuthURL" }, { - "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AgetRequestToken\u0028\u0029", - "name": "getRequestToken", - "summary": "Obtains\u0020an\u0020OAuth1\u0020request\u0020token\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object\u0020for\u0020use\u0020in\u0020the\u0020authentication\u0020request.", - "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_getRequestToken" + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AgetRequestTokenRequestParams\u0028\u0029", + "name": "getRequestTokenRequestParams", + "summary": "prepares\u0020the\u0020parameters\u0020for\u0020the\u0020request\u0020token\u0020request\u0020header", + "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_getRequestTokenRequestParams" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AsendRequestTokenRequest\u0028\u0029", "name": "sendRequestTokenRequest", - "summary": "Sends\u0020a\u0020request\u0020to\u0020the\u0020request\u0020token\u0020endpoint\u0020with\u0020the\u0020given\u0020params", + "summary": "Sends\u0020a\u0020request\u0020to\u0020the\u0020request\u0020token\u0020endpoint", "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_sendRequestTokenRequest" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AparseTokenResponse\u0028\u0029", "name": "parseTokenResponse", "summary": "Parses\u0020the\u0020response\u0020from\u0020a\u0020request\u0020to\u0020the\u0020token\u0020endpoint", "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_parseTokenResponse" - }, { - "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003Anonce\u0028\u0029", - "name": "nonce", - "summary": "returns\u0020a\u002032\u0020byte\u0020random\u0020string\u0020\u0028in\u0020hexadecimal\u0020representation\u0029\u0020for\u0020use\u0020as\u0020a\u0020nonce", - "url": "classes/chillerlan-OAuth-Core-OAuth1Provider.html#method_nonce" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth1Provider\u003A\u003AgetSignature\u0028\u0029", "name": "getSignature", @@ -170,11 +165,6 @@ Search.appendIndex( "name": "getAccessToken", "summary": "Obtains\u0020an\u0020OAuth2\u0020access\u0020token\u0020with\u0020the\u0020given\u0020\u0024code,\u0020verifies\u0020the\u0020\u0024state\nif\u0020the\u0020provider\u0020implements\u0020the\u0020CSRFToken\u0020interface,\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object", "url": "classes/chillerlan-OAuth-Core-OAuth2Interface.html#method_getAccessToken" - }, { - "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Interface\u003A\u003AgetAuthURL\u0028\u0029", - "name": "getAuthURL", - "summary": "Prepares\u0020the\u0020URL\u0020with\u0020optional\u0020\u0024params\u0020and\u0020\u0024scopes\u0020which\u0020redirects\u0020to\u0020the\u0020provider\u0027s\u0020authorization\u0020prompt\nand\u0020returns\u0020a\u0020PSR\u002D7\u0020UriInterface\u0020with\u0020all\u0020necessary\u0020parameters\u0020set", - "url": "classes/chillerlan-OAuth-Core-OAuth2Interface.html#method_getAuthURL" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Interface\u003A\u003AAUTH_METHOD_HEADER", "name": "AUTH_METHOD_HEADER", @@ -218,18 +208,38 @@ Search.appendIndex( }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetAuthURL\u0028\u0029", "name": "getAuthURL", - "summary": "Prepares\u0020the\u0020URL\u0020with\u0020optional\u0020\u0024params\u0020and\u0020\u0024scopes\u0020which\u0020redirects\u0020to\u0020the\u0020provider\u0027s\u0020authorization\u0020prompt\nand\u0020returns\u0020a\u0020PSR\u002D7\u0020UriInterface\u0020with\u0020all\u0020necessary\u0020parameters\u0020set", + "summary": "", "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getAuthURL" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetAuthURLRequestParams\u0028\u0029", + "name": "getAuthURLRequestParams", + "summary": "prepares\u0020the\u0020query\u0020parameters\u0020for\u0020the\u0020auth\u0020URL", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getAuthURLRequestParams" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AparseTokenResponse\u0028\u0029", "name": "parseTokenResponse", "summary": "Parses\u0020the\u0020response\u0020from\u0020a\u0020request\u0020to\u0020the\u0020token\u0020endpoint", "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_parseTokenResponse" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetTokenResponseData\u0028\u0029", + "name": "getTokenResponseData", + "summary": "extracts\u0020the\u0020data\u0020from\u0020the\u0020access\u0020token\u0020response\u0020and\u0020returns\u0020an\u0020array\u0020with\u0020the\u0020key\u002D\u003Evalue\u0020pairs\u0020contained", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getTokenResponseData" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetAccessToken\u0028\u0029", "name": "getAccessToken", "summary": "Obtains\u0020an\u0020OAuth2\u0020access\u0020token\u0020with\u0020the\u0020given\u0020\u0024code,\u0020verifies\u0020the\u0020\u0024state\nif\u0020the\u0020provider\u0020implements\u0020the\u0020CSRFToken\u0020interface,\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object", "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getAccessToken" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetAccessTokenRequestBodyParams\u0028\u0029", + "name": "getAccessTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020access\u0020token\u0020request", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getAccessTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AsendAccessTokenRequest\u0028\u0029", + "name": "sendAccessTokenRequest", + "summary": "sends\u0020a\u0020request\u0020to\u0020the\u0020access\/refresh\u0020token\u0020endpoint\u0020\u0024url\u0020with\u0020the\u0020given\u0020\u0024body\u0020as\u0020form\u0020data", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_sendAccessTokenRequest" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetRequestAuthorization\u0028\u0029", "name": "getRequestAuthorization", @@ -240,11 +250,26 @@ Search.appendIndex( "name": "getClientCredentialsToken", "summary": "", "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getClientCredentialsToken" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetClientCredentialsTokenRequestBodyParams\u0028\u0029", + "name": "getClientCredentialsTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020client\u0020credentials\u0020token\u0020request", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getClientCredentialsTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AsendClientCredentialsTokenRequest\u0028\u0029", + "name": "sendClientCredentialsTokenRequest", + "summary": "sends\u0020a\u0020request\u0020to\u0020the\u0020client\u0020credentials\u0020endpoint,\u0020using\u0020basic\u0020authentication", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_sendClientCredentialsTokenRequest" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003ArefreshAccessToken\u0028\u0029", "name": "refreshAccessToken", "summary": "", "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_refreshAccessToken" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003AgetRefreshAccessTokenRequestBodyParams\u0028\u0029", + "name": "getRefreshAccessTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020token\u0020refresh", + "url": "classes/chillerlan-OAuth-Core-OAuth2Provider.html#method_getRefreshAccessTokenRequestBodyParams" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuth2Provider\u003A\u003A\u0024refreshTokenURL", "name": "refreshTokenURL", @@ -410,6 +435,11 @@ Search.appendIndex( "name": "cleanBodyParams", "summary": "Cleans\u0020an\u0020array\u0020of\u0020body\u0020parameters", "url": "classes/chillerlan-OAuth-Core-OAuthProvider.html#method_cleanBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuth\\Core\\OAuthProvider\u003A\u003Anonce\u0028\u0029", + "name": "nonce", + "summary": "returns\u0020a\u002032\u0020byte\u0020random\u0020string\u0020\u0028in\u0020hexadecimal\u0020representation\u0029\u0020for\u0020use\u0020as\u0020a\u0020nonce", + "url": "classes/chillerlan-OAuth-Core-OAuthProvider.html#method_nonce" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\OAuthProvider\u003A\u003Arequest\u0028\u0029", "name": "request", @@ -526,10 +556,10 @@ Search.appendIndex( "summary": "Indicates\u0020whether\u0020the\u0020service\u0020is\u0020capable\u0020of\u0020invalidating\u0020access\u0020tokens", "url": "classes/chillerlan-OAuth-Core-TokenInvalidate.html" }, { - "fqsen": "\\chillerlan\\OAuth\\Core\\TokenInvalidate\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Core\\TokenInvalidate\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Core-TokenInvalidate.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Core-TokenInvalidate.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Core\\TokenRefresh", "name": "TokenRefresh", @@ -796,10 +826,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-BigCartel.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\BigCartel\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\BigCartel\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-BigCartel.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-BigCartel.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\BigCartel\u003A\u003AgetAccountID\u0028\u0029", "name": "getAccountID", @@ -886,20 +916,20 @@ Search.appendIndex( "summary": "Deezer\u0020OAuth2", "url": "classes/chillerlan-OAuth-Providers-Deezer.html" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AgetAuthURL\u0028\u0029", - "name": "getAuthURL", - "summary": "Prepares\u0020the\u0020URL\u0020with\u0020optional\u0020\u0024params\u0020and\u0020\u0024scopes\u0020which\u0020redirects\u0020to\u0020the\u0020provider\u0027s\u0020authorization\u0020prompt\nand\u0020returns\u0020a\u0020PSR\u002D7\u0020UriInterface\u0020with\u0020all\u0020necessary\u0020parameters\u0020set", - "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_getAuthURL" + "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AgetAuthURLRequestParams\u0028\u0029", + "name": "getAuthURLRequestParams", + "summary": "prepares\u0020the\u0020query\u0020parameters\u0020for\u0020the\u0020auth\u0020URL", + "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_getAuthURLRequestParams" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AgetAccessToken\u0028\u0029", - "name": "getAccessToken", - "summary": "Obtains\u0020an\u0020OAuth2\u0020access\u0020token\u0020with\u0020the\u0020given\u0020\u0024code,\u0020verifies\u0020the\u0020\u0024state\nif\u0020the\u0020provider\u0020implements\u0020the\u0020CSRFToken\u0020interface,\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object", - "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_getAccessToken" + "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AgetAccessTokenRequestBodyParams\u0028\u0029", + "name": "getAccessTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020access\u0020token\u0020request", + "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_getAccessTokenRequestBodyParams" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AparseTokenResponse\u0028\u0029", - "name": "parseTokenResponse", - "summary": "Parses\u0020the\u0020response\u0020from\u0020a\u0020request\u0020to\u0020the\u0020token\u0020endpoint", - "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_parseTokenResponse" + "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003AgetTokenResponseData\u0028\u0029", + "name": "getTokenResponseData", + "summary": "extracts\u0020the\u0020data\u0020from\u0020the\u0020access\u0020token\u0020response\u0020and\u0020returns\u0020an\u0020array\u0020with\u0020the\u0020key\u002D\u003Evalue\u0020pairs\u0020contained", + "url": "classes/chillerlan-OAuth-Providers-Deezer.html#method_getTokenResponseData" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Deezer\u003A\u003Ame\u0028\u0029", "name": "me", @@ -991,10 +1021,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-DeviantArt.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\DeviantArt\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\DeviantArt\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-DeviantArt.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-DeviantArt.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\DeviantArt\u003A\u003ASCOPE_BASIC", "name": "SCOPE_BASIC", @@ -1156,10 +1186,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-Discord.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Discord\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\Discord\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-Discord.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-Discord.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Discord\u003A\u003ASCOPE_APPLICATIONS_COMMANDS", "name": "SCOPE_APPLICATIONS_COMMANDS", @@ -1698,7 +1728,7 @@ Search.appendIndex( }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\GuildWars2\u003A\u003AgetAuthURL\u0028\u0029", "name": "getAuthURL", - "summary": "Prepares\u0020the\u0020URL\u0020with\u0020optional\u0020\u0024params\u0020and\u0020\u0024scopes\u0020which\u0020redirects\u0020to\u0020the\u0020provider\u0027s\u0020authorization\u0020prompt\nand\u0020returns\u0020a\u0020PSR\u002D7\u0020UriInterface\u0020with\u0020all\u0020necessary\u0020parameters\u0020set", + "summary": "", "url": "classes/chillerlan-OAuth-Providers-GuildWars2.html#method_getAuthURL" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\GuildWars2\u003A\u003AgetAccessToken\u0028\u0029", @@ -2151,10 +2181,10 @@ Search.appendIndex( "summary": "MusicBrainz\u0020OAuth2", "url": "classes/chillerlan-OAuth-Providers-MusicBrainz.html" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\MusicBrainz\u003A\u003ArefreshAccessToken\u0028\u0029", - "name": "refreshAccessToken", - "summary": "", - "url": "classes/chillerlan-OAuth-Providers-MusicBrainz.html#method_refreshAccessToken" + "fqsen": "\\chillerlan\\OAuth\\Providers\\MusicBrainz\u003A\u003AgetRefreshAccessTokenRequestBodyParams\u0028\u0029", + "name": "getRefreshAccessTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020token\u0020refresh", + "url": "classes/chillerlan-OAuth-Providers-MusicBrainz.html#method_getRefreshAccessTokenRequestBodyParams" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\MusicBrainz\u003A\u003Arequest\u0028\u0029", "name": "request", @@ -2246,10 +2276,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-NPROne.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\NPROne\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\NPROne\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-NPROne.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-NPROne.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\NPROne\u003A\u003ASCOPE_IDENTITY_READONLY", "name": "SCOPE_IDENTITY_READONLY", @@ -2586,15 +2616,15 @@ Search.appendIndex( "summary": "PayPal\u0020OAuth2", "url": "classes/chillerlan-OAuth-Providers-PayPal.html" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\PayPal\u003A\u003AparseTokenResponse\u0028\u0029", - "name": "parseTokenResponse", - "summary": "Parses\u0020the\u0020response\u0020from\u0020a\u0020request\u0020to\u0020the\u0020token\u0020endpoint", - "url": "classes/chillerlan-OAuth-Providers-PayPal.html#method_parseTokenResponse" + "fqsen": "\\chillerlan\\OAuth\\Providers\\PayPal\u003A\u003AgetAccessTokenRequestBodyParams\u0028\u0029", + "name": "getAccessTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020access\u0020token\u0020request", + "url": "classes/chillerlan-OAuth-Providers-PayPal.html#method_getAccessTokenRequestBodyParams" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\PayPal\u003A\u003AgetAccessToken\u0028\u0029", - "name": "getAccessToken", - "summary": "Obtains\u0020an\u0020OAuth2\u0020access\u0020token\u0020with\u0020the\u0020given\u0020\u0024code,\u0020verifies\u0020the\u0020\u0024state\nif\u0020the\u0020provider\u0020implements\u0020the\u0020CSRFToken\u0020interface,\u0020and\u0020returns\u0020an\u0020AccessToken\u0020object", - "url": "classes/chillerlan-OAuth-Providers-PayPal.html#method_getAccessToken" + "fqsen": "\\chillerlan\\OAuth\\Providers\\PayPal\u003A\u003AsendAccessTokenRequest\u0028\u0029", + "name": "sendAccessTokenRequest", + "summary": "sends\u0020a\u0020request\u0020to\u0020the\u0020access\/refresh\u0020token\u0020endpoint\u0020\u0024url\u0020with\u0020the\u0020given\u0020\u0024body\u0020as\u0020form\u0020data", + "url": "classes/chillerlan-OAuth-Providers-PayPal.html#method_sendAccessTokenRequest" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\PayPal\u003A\u003Ame\u0028\u0029", "name": "me", @@ -3251,10 +3281,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-Stripe.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Stripe\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\Stripe\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-Stripe.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-Stripe.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Stripe\u003A\u003ASCOPE_READ_WRITE", "name": "SCOPE_READ_WRITE", @@ -3421,10 +3451,15 @@ Search.appendIndex( "summary": "Twitch\u0020OAuth2", "url": "classes/chillerlan-OAuth-Providers-Twitch.html" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AgetClientCredentialsToken\u0028\u0029", - "name": "getClientCredentialsToken", - "summary": "", - "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_getClientCredentialsToken" + "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AgetClientCredentialsTokenRequestBodyParams\u0028\u0029", + "name": "getClientCredentialsTokenRequestBodyParams", + "summary": "prepares\u0020the\u0020request\u0020body\u0020parameters\u0020for\u0020the\u0020client\u0020credentials\u0020token\u0020request", + "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_getClientCredentialsTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AsendClientCredentialsTokenRequest\u0028\u0029", + "name": "sendClientCredentialsTokenRequest", + "summary": "sends\u0020a\u0020request\u0020to\u0020the\u0020client\u0020credentials\u0020endpoint,\u0020using\u0020basic\u0020authentication", + "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_sendClientCredentialsTokenRequest" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AgetRequestAuthorization\u0028\u0029", "name": "getRequestAuthorization", @@ -3436,10 +3471,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-Twitch.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Twitch\u003A\u003ASCOPE_ANALYTICS_READ_EXTENSIONS", "name": "SCOPE_ANALYTICS_READ_EXTENSIONS", @@ -3653,7 +3688,7 @@ Search.appendIndex( }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\TwitterCC\u003A\u003AgetAuthURL\u0028\u0029", "name": "getAuthURL", - "summary": "Prepares\u0020the\u0020URL\u0020with\u0020optional\u0020\u0024params\u0020and\u0020\u0024scopes\u0020which\u0020redirects\u0020to\u0020the\u0020provider\u0027s\u0020authorization\u0020prompt\nand\u0020returns\u0020a\u0020PSR\u002D7\u0020UriInterface\u0020with\u0020all\u0020necessary\u0020parameters\u0020set", + "summary": "", "url": "classes/chillerlan-OAuth-Providers-TwitterCC.html#method_getAuthURL" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\TwitterCC\u003A\u003AgetAccessToken\u0028\u0029", @@ -3701,10 +3736,10 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuth-Providers-Vimeo.html#method_me" }, { - "fqsen": "\\chillerlan\\OAuth\\Providers\\Vimeo\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuth\\Providers\\Vimeo\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuth-Providers-Vimeo.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuth-Providers-Vimeo.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuth\\Providers\\Vimeo\u003A\u003ASCOPE_PUBLIC", "name": "SCOPE_PUBLIC", @@ -4206,10 +4241,10 @@ Search.appendIndex( "summary": "An\u0020OAuth1\u0020provider\u0020implementation", "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html" }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth1Provider\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth1Provider\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth1Provider.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth1Provider\u003A\u003AHEADERS_AUTH", "name": "HEADERS_AUTH", @@ -4256,10 +4291,10 @@ Search.appendIndex( "summary": "An\u0020OAuth2\u0020provider\u0020implementation\u0020that\u0020supports\u0020token\u0020refresh,\u0020csrf\u0020tokens\u0020and\u0020client\u0020credentials", "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth2Provider.html" }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth2Provider\u003A\u003AInvalidateAccessToken\u0028\u0029", - "name": "InvalidateAccessToken", + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth2Provider\u003A\u003AinvalidateAccessToken\u0028\u0029", + "name": "invalidateAccessToken", "summary": "Allows\u0020to\u0020invalidate\u0020an\u0020access\u0020token", - "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth2Provider.html#method_InvalidateAccessToken" + "url": "classes/chillerlan-OAuthTest-Providers-DummyOAuth2Provider.html#method_invalidateAccessToken" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\DummyOAuth2Provider\u003A\u003AAUTH_METHOD", "name": "AUTH_METHOD", @@ -5555,6 +5590,46 @@ Search.appendIndex( "name": "getProviderFQCN", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_getProviderFQCN" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestParseTokenResponseWithScopes\u0028\u0029", + "name": "testParseTokenResponseWithScopes", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testParseTokenResponseWithScopes" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestParseTokenResponseNoDataException\u0028\u0029", + "name": "testParseTokenResponseNoDataException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testParseTokenResponseNoDataException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestParseTokenResponseErrorException\u0028\u0029", + "name": "testParseTokenResponseErrorException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testParseTokenResponseErrorException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestParseTokenResponseNoTokenException\u0028\u0029", + "name": "testParseTokenResponseNoTokenException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testParseTokenResponseNoTokenException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestGetAuthURL\u0028\u0029", + "name": "testGetAuthURL", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testGetAuthURL" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestGetAuthURLRequestParams\u0028\u0029", + "name": "testGetAuthURLRequestParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testGetAuthURLRequestParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003AtestGetAccessTokenRequestBodyParams\u0028\u0029", + "name": "testGetAccessTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#method_testGetAccessTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeezerTest\u003A\u003ATEST_TOKEN", + "name": "TEST_TOKEN", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-DeezerTest.html#constant_TEST_TOKEN" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\DeviantArtTest", "name": "DeviantArtTest", @@ -5650,6 +5725,11 @@ Search.appendIndex( "name": "getProviderFQCN", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-GuildWars2Test.html#method_getProviderFQCN" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\GuildWars2Test\u003A\u003AtestGetAuthURL\u0028\u0029", + "name": "testGetAuthURL", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-GuildWars2Test.html#method_testGetAuthURL" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\ImgurTest", "name": "ImgurTest", @@ -5725,6 +5805,11 @@ Search.appendIndex( "name": "getProviderFQCN", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-MusicBrainzTest.html#method_getProviderFQCN" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\MusicBrainzTest\u003A\u003AtestGetRefreshAccessTokenRequestBodyParams\u0028\u0029", + "name": "testGetRefreshAccessTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-MusicBrainzTest.html#method_testGetRefreshAccessTokenRequestBodyParams" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\NPROneTest", "name": "NPROneTest", @@ -5750,6 +5835,51 @@ Search.appendIndex( "name": "testOAuth1Instance", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testOAuth1Instance" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestGetRequestTokenRequestParams\u0028\u0029", + "name": "testGetRequestTokenRequestParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testGetRequestTokenRequestParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestSendRequestTokenRequest\u0028\u0029", + "name": "testSendRequestTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testSendRequestTokenRequest" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponse\u0028\u0029", + "name": "testParseTokenResponse", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTokenResponse" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTemporaryCredentialsTokenResponse\u0028\u0029", + "name": "testParseTemporaryCredentialsTokenResponse", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTemporaryCredentialsTokenResponse" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseNoDataException\u0028\u0029", + "name": "testParseTokenResponseNoDataException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTokenResponseNoDataException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseErrorException\u0028\u0029", + "name": "testParseTokenResponseErrorException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTokenResponseErrorException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseNoTokenException\u0028\u0029", + "name": "testParseTokenResponseNoTokenException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTokenResponseNoTokenException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseConfirmCallbackException\u0028\u0029", + "name": "testParseTokenResponseConfirmCallbackException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testParseTokenResponseConfirmCallbackException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestSendAccessTokenRequest\u0028\u0029", + "name": "testSendAccessTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testSendAccessTokenRequest" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003AtestGetRequestAuthorization\u0028\u0029", "name": "testGetRequestAuthorization", @@ -5765,11 +5895,6 @@ Search.appendIndex( "name": "testGetSignatureInvalidURLException", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#method_testGetSignatureInvalidURLException" - }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1ProviderUnitTestAbstract\u003A\u003A\u0024provider", - "name": "provider", - "summary": "", - "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth1ProviderUnitTestAbstract.html#property_provider" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth1Test", "name": "OAuth1Test", @@ -5790,11 +5915,76 @@ Search.appendIndex( "name": "testOAuth2Instance", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testOAuth2Instance" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetAuthURL\u0028\u0029", + "name": "testGetAuthURL", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetAuthURL" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetAuthURLRequestParams\u0028\u0029", + "name": "testGetAuthURLRequestParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetAuthURLRequestParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponse\u0028\u0029", + "name": "testParseTokenResponse", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testParseTokenResponse" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseWithScopes\u0028\u0029", + "name": "testParseTokenResponseWithScopes", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testParseTokenResponseWithScopes" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseNoDataException\u0028\u0029", + "name": "testParseTokenResponseNoDataException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testParseTokenResponseNoDataException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseErrorException\u0028\u0029", + "name": "testParseTokenResponseErrorException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testParseTokenResponseErrorException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestParseTokenResponseNoTokenException\u0028\u0029", + "name": "testParseTokenResponseNoTokenException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testParseTokenResponseNoTokenException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetAccessTokenRequestBodyParams\u0028\u0029", + "name": "testGetAccessTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetAccessTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestSendAccessTokenRequest\u0028\u0029", + "name": "testSendAccessTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testSendAccessTokenRequest" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetRequestAuthorization\u0028\u0029", "name": "testGetRequestAuthorization", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetRequestAuthorization" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetClientCredentialsTokenRequestBodyParams\u0028\u0029", + "name": "testGetClientCredentialsTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetClientCredentialsTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestClientCredentialsTokenRequest\u0028\u0029", + "name": "testClientCredentialsTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testClientCredentialsTokenRequest" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetClientCredentialsNotSupportedException\u0028\u0029", + "name": "testGetClientCredentialsNotSupportedException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetClientCredentialsNotSupportedException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestSetCSRFState\u0028\u0029", + "name": "testSetCSRFState", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testSetCSRFState" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestCheckCSRFState\u0028\u0029", "name": "testCheckCSRFState", @@ -5811,15 +6001,40 @@ Search.appendIndex( "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testCheckCSRFStateInvalidStateException" }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestRefreshAccessTokenNoRefreshTokenAvailable\u0028\u0029", - "name": "testRefreshAccessTokenNoRefreshTokenAvailable", + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestCheckCSRFStateMismatchException\u0028\u0029", + "name": "testCheckCSRFStateMismatchException", "summary": "", - "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testRefreshAccessTokenNoRefreshTokenAvailable" + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testCheckCSRFStateMismatchException" }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003A\u0024provider", - "name": "provider", + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestSetCSRFStateNotSupportedException\u0028\u0029", + "name": "testSetCSRFStateNotSupportedException", "summary": "", - "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#property_provider" + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testSetCSRFStateNotSupportedException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestCheckCSRFStateNotSupportedException\u0028\u0029", + "name": "testCheckCSRFStateNotSupportedException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testCheckCSRFStateNotSupportedException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestGetRefreshAccessTokenRequestBodyParams\u0028\u0029", + "name": "testGetRefreshAccessTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testGetRefreshAccessTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestRefreshAccessTokenNoRefreshTokenException\u0028\u0029", + "name": "testRefreshAccessTokenNoRefreshTokenException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testRefreshAccessTokenNoRefreshTokenException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003AtestRefreshAccessTokenNotSupportedException\u0028\u0029", + "name": "testRefreshAccessTokenNotSupportedException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#method_testRefreshAccessTokenNotSupportedException" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2ProviderUnitTestAbstract\u003A\u003ATEST_TOKEN", + "name": "TEST_TOKEN", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuth2ProviderUnitTestAbstract.html#constant_TEST_TOKEN" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuth2Test", "name": "OAuth2Test", @@ -5850,6 +6065,31 @@ Search.appendIndex( "name": "testMagicGet", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testMagicGet" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestBodyWithStreaminterface\u0028\u0029", + "name": "testGetRequestBodyWithStreaminterface", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestBodyWithStreaminterface" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestBodyWithString\u0028\u0029", + "name": "testGetRequestBodyWithString", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestBodyWithString" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AarrayBodyProvider\u0028\u0029", + "name": "arrayBodyProvider", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_arrayBodyProvider" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestBodyWithArray\u0028\u0029", + "name": "testGetRequestBodyWithArray", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestBodyWithArray" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestBodyInvalidContentTypeException\u0028\u0029", + "name": "testGetRequestBodyInvalidContentTypeException", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestBodyInvalidContentTypeException" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003ArequestTargetProvider\u0028\u0029", "name": "requestTargetProvider", @@ -5860,11 +6100,6 @@ Search.appendIndex( "name": "testGetRequestTarget", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestTarget" - }, { - "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestTargetInvalidSchemeException\u0028\u0029", - "name": "testGetRequestTargetInvalidSchemeException", - "summary": "", - "url": "classes/chillerlan-OAuthTest-Providers-Unit-OAuthProviderUnitTestAbstract.html#method_testGetRequestTargetInvalidSchemeException" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\OAuthProviderUnitTestAbstract\u003A\u003AtestGetRequestTargetProviderMismatchException\u0028\u0029", "name": "testGetRequestTargetProviderMismatchException", @@ -5935,6 +6170,16 @@ Search.appendIndex( "name": "getProviderFQCN", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-PayPalTest.html#method_getProviderFQCN" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\PayPalTest\u003A\u003AtestGetAccessTokenRequestBodyParams\u0028\u0029", + "name": "testGetAccessTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-PayPalTest.html#method_testGetAccessTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\PayPalTest\u003A\u003AtestSendAccessTokenRequest\u0028\u0029", + "name": "testSendAccessTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-PayPalTest.html#method_testSendAccessTokenRequest" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\SlackTest", "name": "SlackTest", @@ -6015,6 +6260,16 @@ Search.appendIndex( "name": "getProviderFQCN", "summary": "", "url": "classes/chillerlan-OAuthTest-Providers-Unit-TwitchTest.html#method_getProviderFQCN" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\TwitchTest\u003A\u003AtestGetClientCredentialsTokenRequestBodyParams\u0028\u0029", + "name": "testGetClientCredentialsTokenRequestBodyParams", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-TwitchTest.html#method_testGetClientCredentialsTokenRequestBodyParams" + }, { + "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\TwitchTest\u003A\u003AtestClientCredentialsTokenRequest\u0028\u0029", + "name": "testClientCredentialsTokenRequest", + "summary": "", + "url": "classes/chillerlan-OAuthTest-Providers-Unit-TwitchTest.html#method_testClientCredentialsTokenRequest" }, { "fqsen": "\\chillerlan\\OAuthTest\\Providers\\Unit\\TwitterCCTest", "name": "TwitterCCTest", diff --git a/namespaces/chillerlan-oauth-core.html b/namespaces/chillerlan-oauth-core.html index 2ddc0f23..6eaff5f4 100644 --- a/namespaces/chillerlan-oauth-core.html +++ b/namespaces/chillerlan-oauth-core.html @@ -140,7 +140,7 @@

      -
      AccessToken
      Access token implementation for any OAuth version.
      InvalidAccessTokenException
      OAuth1Provider
      Implements an abstract OAuth1 provider with all methods required by the OAuth1Interface.
      OAuth2Provider
      Implements an abstract OAuth2 provider with all methods required by the OAuth2Interface.
      OAuthProvider
      Implements an abstract OAuth provider with all methods required by the OAuthInterface.
      UnauthorizedAccessException
      +
      AccessToken
      Access token implementation for any OAuth version.
      CSRFStateMismatchException
      InvalidAccessTokenException
      OAuth1Provider
      Implements an abstract OAuth1 (1.0a) provider with all methods required by the OAuth1Interface.
      OAuth2Provider
      Implements an abstract OAuth2 provider with all methods required by the OAuth2Interface.
      OAuthProvider
      Implements an abstract OAuth provider with all methods required by the OAuthInterface.
      UnauthorizedAccessException
      diff --git a/packages/Application.html b/packages/Application.html index d7973ac6..235c3f1e 100644 --- a/packages/Application.html +++ b/packages/Application.html @@ -138,7 +138,7 @@

      -
      AccessToken
      Access token implementation for any OAuth version.
      InvalidAccessTokenException
      OAuth1Provider
      Implements an abstract OAuth1 provider with all methods required by the OAuth1Interface.
      OAuth2Provider
      Implements an abstract OAuth2 provider with all methods required by the OAuth2Interface.
      OAuthProvider
      Implements an abstract OAuth provider with all methods required by the OAuthInterface.
      UnauthorizedAccessException
      OAuthException
      OAuthOptions
      This class holds all settings related to the OAuth provider as well as the default HTTP client.
      Amazon
      Login with Amazon for Websites (OAuth2)
      AzureActiveDirectory
      Microsoft identity platform (OAuth2)
      BattleNet
      Battle.net OAuth2
      BigCartel
      BigCartel OAuth2
      Bitbucket
      Bitbucket OAuth2 (Atlassian)
      Deezer
      Deezer OAuth2
      DeviantArt
      DeviantArt OAuth2
      Discogs
      Discogs OAuth1
      Discord
      Discord OAuth2
      Flickr
      Flickr OAuth1
      Foursquare
      Foursquare OAuth2
      GitHub
      GitHub OAuth2
      GitLab
      GitLab OAuth2
      Google
      Google OAuth2
      GuildWars2
      Guild Wars 2
      Imgur
      Imgur OAuth2
      LastFM
      Last.fm
      MailChimp
      MailChimp OAuth2
      Mastodon
      Mastodon OAuth2 (v4.x instances)
      MicrosoftGraph
      Microsoft Graph OAuth2
      Mixcloud
      Mixcloud OAuth2
      MusicBrainz
      MusicBrainz OAuth2
      NPROne
      NPR API services (OAuth2)
      OpenCaching
      Opencaching OAuth1
      OpenStreetmap
      OpenStreetmap OAuth1 (deprecated)
      OpenStreetmap2
      OpenStreetmap OAuth2
      Patreon
      Patreon v2 OAuth2
      PayPal
      PayPal OAuth2
      PayPalSandbox
      PayPal OAuth2 (sandbox)
      ProviderException
      Slack
      Slack v2 OAuth2
      SoundCloud
      SoundCloud OAuth2
      Spotify
      Spotify OAuth2
      SteamOpenID
      Steam OpenID
      Stripe
      Stripe OAuth2
      Tumblr
      Tumblr OAuth1
      Tumblr2
      Tumblr OAuth2
      Twitch
      Twitch OAuth2
      Twitter
      Twitter OAuth1
      TwitterCC
      Twitter OAuth2 (client credentials)
      Vimeo
      Vimeo OAuth2
      WordPress
      WordPress OAuth2
      YouTube
      YouTube OAuth2
      MemoryStorage
      Implements a memory storage adapter.
      OAuthStorageAbstract
      Implements an abstract OAuth storage adapter
      OAuthStorageException
      SessionStorage
      Implements a session storage adapter.
      AccessTokenTest
      Tests the AccessToken class
      DummyOAuth1Provider
      An OAuth1 provider implementation
      DummyOAuth2Provider
      An OAuth2 provider implementation that supports token refresh, csrf tokens and client credentials
      AmazonAPITest
      BattleNetAPITest
      BigCartelAPITest
      BitbucketAPITest
      DeezerAPITest
      DeviantArtAPITest
      DiscogsAPITest
      DiscordAPITest
      FlickrAPITest
      FoursquareAPITest
      GitHubAPITest
      GitLabAPITest
      GoogleAPITest
      GuildWars2APITest
      ImgurAPITest
      LastFMAPITest
      MailChimpAPITest
      MastodonAPITest
      MicrosoftGraphAPITest
      MixcloudAPITest
      MusicBrainzAPITest
      NPROneAPITest
      OAuth1ProviderLiveTestAbstract
      OAuth2ProviderLiveTestAbstract
      OAuthProviderLiveTestAbstract
      OpenCachingAPITest
      OpenStreetmap2APITest
      OpenStreetmapAPITest
      PatreonAPITest
      PayPalAPITest
      SlackAPITest
      SoundcloudAPITest
      SpotifyAPITest
      SteamOpenIDAPITest
      StripeAPITest
      Tumblr2APITest
      TumblrAPITest
      TwitchAPITest
      TwitterAPITest
      TwitterCCAPITest
      VimeoAPITest
      WordpressAPITest
      ProviderLiveTestAbstract
      ProviderLiveTestHttpClientFactory
      ProviderLiveTestMemoryStorage
      Extends the standard memory storage so that it also saves tokens as JSON in the given path
      ProviderTestLoggerFactory
      ProviderUnitTestAbstract
      ProviderUnitTestHttpClientFactory
      AmazonTest
      BattleNetTest
      BigCartelTest
      BitbucketTest
      DeezerTest
      DeviantArtTest
      DiscogsTest
      DiscordTest
      FlickrTest
      FoursquareTest
      GitHubTest
      GitLabTest
      GoogleTest
      GuildWars2Test
      ImgurTest
      LastFMTest
      MailChimpTest
      MastodonTest
      MicrosoftGraphTest
      MixcloudTest
      MusicBrainzTest
      NPROneTest
      OAuth1ProviderUnitTestAbstract
      OAuth1Test
      The built-in dummy test for OAuth1
      OAuth2ProviderUnitTestAbstract
      OAuth2Test
      The built-in dummy test for OAuth2
      OAuthProviderUnitTestAbstract
      OpenCachingTest
      OpenStreetmap2Test
      OpenStreetmapTest
      Patreon1Test
      Patreon2Test
      PayPalTest
      SlackTest
      SoundCloudTest
      SpotifyTest
      SteamOpenIDTest
      StripeTest
      Tumblr2Test
      TumblrTest
      TwitchTest
      TwitterCCTest
      TwitterTest
      VimeoTest
      WordPressTest
      YouTubeTest
      MemoryStorageTest
      SessionStorageTest
      StorageTestAbstract
      +
      AccessToken
      Access token implementation for any OAuth version.
      CSRFStateMismatchException
      InvalidAccessTokenException
      OAuth1Provider
      Implements an abstract OAuth1 (1.0a) provider with all methods required by the OAuth1Interface.
      OAuth2Provider
      Implements an abstract OAuth2 provider with all methods required by the OAuth2Interface.
      OAuthProvider
      Implements an abstract OAuth provider with all methods required by the OAuthInterface.
      UnauthorizedAccessException
      OAuthException
      OAuthOptions
      This class holds all settings related to the OAuth provider as well as the default HTTP client.
      Amazon
      Login with Amazon for Websites (OAuth2)
      AzureActiveDirectory
      Microsoft identity platform (OAuth2)
      BattleNet
      Battle.net OAuth2
      BigCartel
      BigCartel OAuth2
      Bitbucket
      Bitbucket OAuth2 (Atlassian)
      Deezer
      Deezer OAuth2
      DeviantArt
      DeviantArt OAuth2
      Discogs
      Discogs OAuth1
      Discord
      Discord OAuth2
      Flickr
      Flickr OAuth1
      Foursquare
      Foursquare OAuth2
      GitHub
      GitHub OAuth2
      GitLab
      GitLab OAuth2
      Google
      Google OAuth2
      GuildWars2
      Guild Wars 2
      Imgur
      Imgur OAuth2
      LastFM
      Last.fm
      MailChimp
      MailChimp OAuth2
      Mastodon
      Mastodon OAuth2 (v4.x instances)
      MicrosoftGraph
      Microsoft Graph OAuth2
      Mixcloud
      Mixcloud OAuth2
      MusicBrainz
      MusicBrainz OAuth2
      NPROne
      NPR API services (OAuth2)
      OpenCaching
      Opencaching OAuth1
      OpenStreetmap
      OpenStreetmap OAuth1 (deprecated)
      OpenStreetmap2
      OpenStreetmap OAuth2
      Patreon
      Patreon v2 OAuth2
      PayPal
      PayPal OAuth2
      PayPalSandbox
      PayPal OAuth2 (sandbox)
      ProviderException
      Slack
      Slack v2 OAuth2
      SoundCloud
      SoundCloud OAuth2
      Spotify
      Spotify OAuth2
      SteamOpenID
      Steam OpenID
      Stripe
      Stripe OAuth2
      Tumblr
      Tumblr OAuth1
      Tumblr2
      Tumblr OAuth2
      Twitch
      Twitch OAuth2
      Twitter
      Twitter OAuth1
      TwitterCC
      Twitter OAuth2 (client credentials)
      Vimeo
      Vimeo OAuth2
      WordPress
      WordPress OAuth2
      YouTube
      YouTube OAuth2
      MemoryStorage
      Implements a memory storage adapter.
      OAuthStorageAbstract
      Implements an abstract OAuth storage adapter
      OAuthStorageException
      SessionStorage
      Implements a session storage adapter.
      AccessTokenTest
      Tests the AccessToken class
      DummyOAuth1Provider
      An OAuth1 provider implementation
      DummyOAuth2Provider
      An OAuth2 provider implementation that supports token refresh, csrf tokens and client credentials
      AmazonAPITest
      BattleNetAPITest
      BigCartelAPITest
      BitbucketAPITest
      DeezerAPITest
      DeviantArtAPITest
      DiscogsAPITest
      DiscordAPITest
      FlickrAPITest
      FoursquareAPITest
      GitHubAPITest
      GitLabAPITest
      GoogleAPITest
      GuildWars2APITest
      ImgurAPITest
      LastFMAPITest
      MailChimpAPITest
      MastodonAPITest
      MicrosoftGraphAPITest
      MixcloudAPITest
      MusicBrainzAPITest
      NPROneAPITest
      OAuth1ProviderLiveTestAbstract
      OAuth2ProviderLiveTestAbstract
      OAuthProviderLiveTestAbstract
      OpenCachingAPITest
      OpenStreetmap2APITest
      OpenStreetmapAPITest
      PatreonAPITest
      PayPalAPITest
      SlackAPITest
      SoundcloudAPITest
      SpotifyAPITest
      SteamOpenIDAPITest
      StripeAPITest
      Tumblr2APITest
      TumblrAPITest
      TwitchAPITest
      TwitterAPITest
      TwitterCCAPITest
      VimeoAPITest
      WordpressAPITest
      ProviderLiveTestAbstract
      ProviderLiveTestHttpClientFactory
      ProviderLiveTestMemoryStorage
      Extends the standard memory storage so that it also saves tokens as JSON in the given path
      ProviderTestLoggerFactory
      ProviderUnitTestAbstract
      ProviderUnitTestHttpClientFactory
      AmazonTest
      BattleNetTest
      BigCartelTest
      BitbucketTest
      DeezerTest
      DeviantArtTest
      DiscogsTest
      DiscordTest
      FlickrTest
      FoursquareTest
      GitHubTest
      GitLabTest
      GoogleTest
      GuildWars2Test
      ImgurTest
      LastFMTest
      MailChimpTest
      MastodonTest
      MicrosoftGraphTest
      MixcloudTest
      MusicBrainzTest
      NPROneTest
      OAuth1ProviderUnitTestAbstract
      OAuth1Test
      The built-in dummy test for OAuth1
      OAuth2ProviderUnitTestAbstract
      OAuth2Test
      The built-in dummy test for OAuth2
      OAuthProviderUnitTestAbstract
      OpenCachingTest
      OpenStreetmap2Test
      OpenStreetmapTest
      Patreon1Test
      Patreon2Test
      PayPalTest
      SlackTest
      SoundCloudTest
      SpotifyTest
      SteamOpenIDTest
      StripeTest
      Tumblr2Test
      TumblrTest
      TwitchTest
      TwitterCCTest
      TwitterTest
      VimeoTest
      WordPressTest
      YouTubeTest
      MemoryStorageTest
      SessionStorageTest
      StorageTestAbstract

      Traits