ClientCredentialsTrait
Implements Client Credentials functionality
Tags
Table of Contents
Methods
- getClientCredentialsToken() : AccessToken
- implements ClientCredentials::getClientCredentialsToken()
- getClientCredentialsTokenRequestBodyParams() : array<string, string>
- prepares the request body parameters for the client credentials token request
- sendClientCredentialsTokenRequest() : ResponseInterface
- sends a request to the client credentials endpoint, using basic authentication
Methods
getClientCredentialsToken()
implements ClientCredentials::getClientCredentialsToken()
public
getClientCredentialsToken([array<string|int, string>|null $scopes = null ]) : AccessToken
Parameters
- $scopes : array<string|int, string>|null = null
Tags
Return values
AccessTokengetClientCredentialsTokenRequestBodyParams()
prepares the request body parameters for the client credentials token request
protected
getClientCredentialsTokenRequestBodyParams(array<string|int, string>|null $scopes) : array<string, string>
Parameters
- $scopes : array<string|int, string>|null
Tags
Return values
array<string, string>sendClientCredentialsTokenRequest()
sends a request to the client credentials endpoint, using basic authentication
protected
sendClientCredentialsTokenRequest(string $url, array<string, scalar> $body) : ResponseInterface
Parameters
- $url : string
- $body : array<string, scalar>