diff --git a/classes/chillerlan-OAuth-Core-AccessToken.html b/classes/chillerlan-OAuth-Core-AccessToken.html index 7bf10ae..dcc3b92 100644 --- a/classes/chillerlan-OAuth-Core-AccessToken.html +++ b/classes/chillerlan-OAuth-Core-AccessToken.html @@ -259,7 +259,7 @@
(magic) Additional token parameters supplied by the provider
@@ -568,7 +568,7 @@
protected
- array<string|int, mixed>
+ array<string, mixed>
$extraParams
= []
@@ -596,9 +596,9 @@ (magic) The provider that issued the token
@@ -672,9 +672,9 @@(magic) The scopes that are attached to this token
@@ -682,7 +682,7 @@
protected
- array<string|int, mixed>
+ array<string|int, string>
$scopes
= []
@@ -715,9 +715,9 @@ Checks whether this token is expired
@@ -755,9 +755,9 @@Sets the expiration for this token, clamps the expiry to EXPIRY_MAX
diff --git a/classes/chillerlan-OAuth-Core-AuthenticatedUser.html b/classes/chillerlan-OAuth-Core-AuthenticatedUser.html index d314c47..219a70b 100644 --- a/classes/chillerlan-OAuth-Core-AuthenticatedUser.html +++ b/classes/chillerlan-OAuth-Core-AuthenticatedUser.html @@ -211,7 +211,7 @@(magic) The full user endpoint response
@@ -374,7 +374,7 @@
protected
- array<string|int, mixed>
+ array<string, mixed>
$data
= []
@@ -597,9 +597,9 @@ trim and set the display name
@@ -896,9 +896,9 @@set the user id, convert to int if possible
diff --git a/classes/chillerlan-OAuth-Core-CSRFToken.html b/classes/chillerlan-OAuth-Core-CSRFToken.html index 4c71350..0d19209 100644 --- a/classes/chillerlan-OAuth-Core-CSRFToken.html +++ b/classes/chillerlan-OAuth-Core-CSRFToken.html @@ -203,7 +203,7 @@
public
- setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ setState(array<string, string> $params) : array<string, string>
Obtains an OAuth1 access token with the given $token and $verifier and returns an AccessToken object.
@@ -1631,7 +1631,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
Authorizes the $request with the credentials from the given $token @@ -1956,9 +1942,9 @@
Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -2144,9 +2130,9 @@
Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -2691,16 +2677,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
Prepares the header params for the access token request
@@ -2939,9 +2925,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -3085,9 +3071,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -3223,9 +3209,9 @@
Prepares the request URL
@@ -3280,16 +3266,16 @@Generates a request signature
protected
- getSignature(UriInterface|string $url, array<string|int, mixed> $params, string $method[, string|null $accessTokenSecret = null ]) : string
+ getSignature(UriInterface|string $url, array<string, string> $params, string $method[, string|null $accessTokenSecret = null ]) : string
handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -3452,9 +3438,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -3627,16 +3613,16 @@Sends the access token request
protected
- sendAccessTokenRequest(array<string|int, mixed> $headerParams) : ResponseInterface
+ sendAccessTokenRequest(array<string, string> $headerParams) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -3814,16 +3800,16 @@Adds the "Authorization" header to the given `RequestInterface` using the given array or parameters
protected
- setAuthorizationHeader(RequestInterface $request, array<string|int, mixed> $params) : RequestInterface
+ setAuthorizationHeader(RequestInterface $request, array<string, string> $params) : RequestInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Core-OAuth2Provider.html b/classes/chillerlan-OAuth-Core-OAuth2Provider.html index 27da179..96b29c0 100644 --- a/classes/chillerlan-OAuth-Core-OAuth2Provider.html +++ b/classes/chillerlan-OAuth-Core-OAuth2Provider.html @@ -379,18 +379,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1636,15 +1647,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -1720,15 +1731,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -1793,15 +1804,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -1895,20 +1905,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2125,7 +2121,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -2781,13 +2750,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -2929,9 +2897,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -3710,16 +3678,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -3966,16 +3934,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4103,9 +4071,9 @@Prepares the body for a token revocation request
@@ -4175,9 +4143,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4271,16 +4239,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4458,9 +4426,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -4534,9 +4502,9 @@
Prepares the request URL
@@ -4591,9 +4559,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4672,9 +4640,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -4735,9 +4703,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -4806,9 +4774,9 @@Parses the response from a request to the token endpoint
@@ -4909,16 +4877,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5126,16 +5094,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Core-OAuthProvider.html b/classes/chillerlan-OAuth-Core-OAuthProvider.html index 3d1966e..0a66059 100644 --- a/classes/chillerlan-OAuth-Core-OAuthProvider.html +++ b/classes/chillerlan-OAuth-Core-OAuthProvider.html @@ -1586,9 +1586,9 @@Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -1774,9 +1774,9 @@
Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -2321,16 +2321,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -2658,9 +2658,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -2734,9 +2734,9 @@
Prepares the request URL
@@ -2791,9 +2791,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -2854,9 +2854,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -2925,9 +2925,9 @@prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -2982,9 +2982,9 @@Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Core-PAR.html b/classes/chillerlan-OAuth-Core-PAR.html index 8624a03..cb4c3ec 100644 --- a/classes/chillerlan-OAuth-Core-PAR.html +++ b/classes/chillerlan-OAuth-Core-PAR.html @@ -221,7 +221,7 @@
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
public
- setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
public
- setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1809,15 +1820,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -1893,15 +1904,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -1966,15 +1977,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -2068,20 +2078,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2298,7 +2294,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -3014,13 +2983,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -3162,9 +3130,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -3943,16 +3911,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -4199,16 +4167,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4336,9 +4304,9 @@Prepares the body for a token revocation request
@@ -4408,9 +4376,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4504,16 +4472,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4691,9 +4659,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -4767,9 +4735,9 @@
Prepares the request URL
@@ -4824,9 +4792,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4905,9 +4873,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -4968,9 +4936,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -5039,9 +5007,9 @@Parses the response from a request to the token endpoint
@@ -5142,16 +5110,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5359,16 +5327,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html b/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html index 49dda5f..2f0f45d 100644 --- a/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html +++ b/classes/chillerlan-OAuth-Providers-AzureActiveDirectory.html @@ -396,18 +396,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1776,15 +1787,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -1860,15 +1871,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -1933,15 +1944,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -2035,20 +2045,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2265,7 +2261,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -2921,13 +2890,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -3069,9 +3037,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -3850,16 +3818,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -4106,16 +4074,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4243,9 +4211,9 @@Prepares the body for a token revocation request
@@ -4315,9 +4283,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4411,16 +4379,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4598,9 +4566,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -4674,9 +4642,9 @@
Prepares the request URL
@@ -4731,9 +4699,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4812,9 +4780,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -4875,9 +4843,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -4946,9 +4914,9 @@Parses the response from a request to the token endpoint
@@ -5049,16 +5017,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5266,16 +5234,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Providers-BattleNet.html b/classes/chillerlan-OAuth-Providers-BattleNet.html index a47316f..c6c4107 100644 --- a/classes/chillerlan-OAuth-Providers-BattleNet.html +++ b/classes/chillerlan-OAuth-Providers-BattleNet.html @@ -409,18 +409,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1964,15 +1975,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -2048,15 +2059,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -2121,15 +2132,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -2223,20 +2233,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2453,7 +2449,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -3169,13 +3138,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -3317,9 +3285,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -4162,16 +4130,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -4418,16 +4386,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4555,9 +4523,9 @@Prepares the body for a token revocation request
@@ -4627,9 +4595,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4723,16 +4691,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4910,7 +4878,7 @@Throws if the host of a given URL does not match the host of $apiURL.
+Prepares the request URL
@@ -5031,9 +4987,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -5112,9 +5068,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -5175,9 +5131,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -5246,9 +5202,9 @@Parses the response from a request to the token endpoint
@@ -5349,16 +5305,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5566,16 +5522,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Providers-BigCartel.html b/classes/chillerlan-OAuth-Providers-BigCartel.html index 50839d4..0796402 100644 --- a/classes/chillerlan-OAuth-Providers-BigCartel.html +++ b/classes/chillerlan-OAuth-Providers-BigCartel.html @@ -373,18 +373,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1684,15 +1695,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -1768,15 +1779,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -1841,15 +1852,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -1943,20 +1953,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2173,7 +2169,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
@@ -2748,20 +2717,6 @@ implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -2878,13 +2827,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -3026,9 +2974,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -3807,16 +3755,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -4063,7 +4011,7 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4264,9 +4212,9 @@Prepares the body for a token revocation request
@@ -4336,9 +4284,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4432,16 +4380,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4619,9 +4567,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -4695,9 +4643,9 @@
Prepares the request URL
@@ -4752,9 +4700,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4833,9 +4781,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -4896,9 +4844,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -4967,9 +4915,9 @@Parses the response from a request to the token endpoint
@@ -5070,16 +5018,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5287,16 +5235,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Providers-Bitbucket.html b/classes/chillerlan-OAuth-Providers-Bitbucket.html index a596fcf..b22d461 100644 --- a/classes/chillerlan-OAuth-Providers-Bitbucket.html +++ b/classes/chillerlan-OAuth-Providers-Bitbucket.html @@ -362,18 +362,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -1654,15 +1665,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -1738,15 +1749,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -1811,15 +1822,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -1913,20 +1923,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -2143,7 +2139,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -2859,13 +2828,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -3007,9 +2975,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -3788,16 +3756,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -4044,16 +4012,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>
prepares the request body parameters for the client credentials token request
@@ -4181,9 +4149,9 @@Prepares the body for a token revocation request
@@ -4253,9 +4221,9 @@fetches the provider's "me" endpoint and returns the JSON data as an array
@@ -4349,16 +4317,16 @@Parses the response from the PAR request and returns the query parameters for the authorization URL
protected
- getParAuthorizationURLRequestParams(array<string|int, mixed> $response) : array<string|int, mixed>
+ getParAuthorizationURLRequestParams(array<string, string> $response) : array<string|int, mixed>
prepares the request body parameters for the token refresh
@@ -4536,9 +4504,9 @@Determine the request target from the given URI (path segment or URL) with respect to $apiURL, @@ -4612,9 +4580,9 @@
Prepares the request URL
@@ -4669,9 +4637,9 @@extracts the data from the access token response and returns an array with the key->value pairs contained
@@ -4750,9 +4718,9 @@handles errors for the `me()` endpoints - one horrible block of code to catch them all
@@ -4813,9 +4781,9 @@returns a 32 byte random string (in hexadecimal representation) for use as a nonce
@@ -4884,9 +4852,9 @@Parses the response from a request to the token endpoint
@@ -4987,16 +4955,16 @@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
+ sendAccessTokenRequest(string $url, array<string, string> $body) : ResponseInterface
sends a request to the client credentials endpoint, using basic authentication
protected
- sendClientCredentialsTokenRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendClientCredentialsTokenRequest(string $url, array<string, string> $body) : ResponseInterface
prepares and sends the request to the provider's "me" endpoint and returns a ResponseInterface
@@ -5204,16 +5172,16 @@Prepares and sends a request to the token invalidation endpoint
protected
- sendTokenInvalidateRequest(string $url, array<string|int, mixed> $body) : ResponseInterface
+ sendTokenInvalidateRequest(string $url, array<string, string> $body) : ResponseInterface
Prepares the request body and sets it in the given RequestInterface, along with a Content-Length header
diff --git a/classes/chillerlan-OAuth-Providers-Codeberg.html b/classes/chillerlan-OAuth-Providers-Codeberg.html index 7e706eb..f9a797d 100644 --- a/classes/chillerlan-OAuth-Providers-Codeberg.html +++ b/classes/chillerlan-OAuth-Providers-Codeberg.html @@ -543,18 +543,21 @@implements CSRFToken::checkState()
+
public
final checkState([string|null $state = null ]) : void
@@ -2701,15 +2712,14 @@ \chillerlan\OAuth\Core\CSRFToken::checkState()
-implements PKCE::generateChallenge()
+
public
final generateChallenge(string $verifier, string $challengeMethod) : string
@@ -2785,15 +2796,14 @@ \chillerlan\OAuth\Core\PKCE::generateChallenge()
-implements PKCE::generateVerifier()
+
public
final generateVerifier(int $length) : string
@@ -2858,15 +2869,14 @@ \chillerlan\OAuth\Core\PKCE::generateVerifier()
-Obtains an OAuth2 access token with the given $code, verifies the $state @@ -2960,20 +2970,6 @@
Prepares the URL with optional $params which redirects to the provider's authorization prompt @@ -3190,7 +3186,7 @@
public
- getAuthorizationURL([array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $scopes = null ]) : UriInterface
+ getAuthorizationURL([array<string, string> $params = null ][, array<string|int, string> $scopes = null ]) : UriInterface
implements ClientCredentials::getClientCredentialsToken()
+
public
- getClientCredentialsToken([array<string|int, mixed>|null $scopes = null ]) : AccessToken
+ getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
\chillerlan\OAuth\Core\ClientCredentials::getClientCredentialsToken()
-implements PAR::getParRequestUri()
+
public
- getParRequestUri(array<string|int, mixed> $body) : UriInterface
+ getParRequestUri(array<string, string> $body) : UriInterface
\chillerlan\OAuth\Core\PAR::getParRequestUri()
-implements TokenInvalidate::invalidateAccessToken()
+
public
- invalidateAccessToken([AccessToken $token = null ][, string|null $type = null ]) : bool
+ invalidateAccessToken([AccessToken|null $token = null ][, string|null $type = null ]) : bool
\chillerlan\OAuth\Core\TokenInvalidate::invalidateAccessToken()
-implements TokenRefresh::refreshAccessToken()
+
public
refreshAccessToken([AccessToken|null $token = null ]) : AccessToken
@@ -3906,13 +3875,12 @@ \chillerlan\OAuth\Core\TokenRefresh::refreshAccessToken()
-Prepares an API request to $path with the given parameters, gets authorization, fires the request @@ -4054,9 +4022,9 @@
implements PKCE::setCodeChallenge()
+
public
- final setCodeChallenge(array<string|int, mixed> $params, string $challengeMethod) : array<string|int, mixed>
+ final setCodeChallenge(array<string, string> $params, string $challengeMethod) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeChallenge()
-implements PKCE::setCodeVerifier()
+
public
- final setCodeVerifier(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setCodeVerifier(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\PKCE::setCodeVerifier()
-implements CSRFToken::setState()
+
public
- final setState(array<string|int, mixed> $params) : array<string|int, mixed>
+ final setState(array<string, string> $params) : array<string|int, mixed>
\chillerlan\OAuth\Core\CSRFToken::setState()
-Adds an "Authorization: Basic <base64(key:secret)>" header to the given request
@@ -4835,16 +4803,16 @@Cleans an array of body parameters
protected
- cleanBodyParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanBodyParams(array<string, scalar> $params) : array<string|int, mixed>
Cleans an array of query parameters
protected
- cleanQueryParams(iterable<string|int, mixed> $params) : array<string|int, mixed>
+ cleanQueryParams(array<string, scalar> $params) : array<string|int, mixed>
prepares the request body parameters for the access token request
@@ -5091,16 +5059,16 @@prepares the query parameters for the auth URL
protected
- getAuthorizationURLRequestParams(array<string|int, mixed> $params, array<string|int, mixed> $scopes) : array<string|int, mixed>
+ getAuthorizationURLRequestParams(array<string, string> $params, array<string|int, string> $scopes) : array<string|int, mixed>