OauthServiceInterface
in
Interface for classes using OauthServiceTrait.
Classes which use this interface should also implement LoggerAwareInterface.
Tags
Table of Contents
- authenticateWithClientCredentials() : string
- Authenticate via the OAuth Client Credentials grant type.
Methods
authenticateWithClientCredentials()
Authenticate via the OAuth Client Credentials grant type.
public
authenticateWithClientCredentials(string $oauthUrl, string $clientId, string $clientSecret) : string
Parameters
- $oauthUrl : string
-
URL of thee OAuth service
- $clientId : string
-
client_id for a client_credentials grant
- $clientSecret : string
-
client_secret for a client_credentials grant
Tags
Return values
string —token for the session or false if the token request failed