Documentation

ClientCredentialsTrait

Implements Client Credentials functionality

Tags
see
ClientCredentials

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

getClientCredentialsTokenRequestBodyParams()

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
see
OAuth2Provider::getClientCredentialsToken()
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>
Tags
see
OAuth2Provider::getClientCredentialsToken()
Return values
ResponseInterface

        
On this page

Search results