ZEROSPAM\Framework\SDK\Config\OAuthConfiguration
Class OAuthConfiguration
Helper for an OAuthConfiguration.
You need to implement the providerClass by pointing it to your wanted OAuthProvider
Synopsis
class OAuthConfiguration
implements
IOAuthConfiguration
{
- // members
- private $clientId;
- private $clientSecret;
- private $redirectUrl;
- private $endPoint;
- // methods
- public void __construct()
- protected abstract string providerClass()
- public array defaultMiddlewares()
- public array defaultPreRequestMiddlewares()
- public AbstractProvider getProvider()
- public string getRedirectUrl()
- public string getEndPoint()
- public AccessToken getAccessToken()
- public AccessToken refreshAccessToken()
- public AccessToken refreshToken()
Hierarchy
Members
private
- $clientId — string
- $clientSecret — string
- $endPoint — string
- $redirectUrl — string
Methods
protected
- providerClass() — Class to use for the provider.
public
- __construct() — OAuthConfiguration constructor.
- defaultMiddlewares()
- defaultPreRequestMiddlewares()
- getAccessToken() — Get access token for given code.
- getEndPoint() — End point for Requests.
- getProvider() — Get a OAuthProvider.
- getRedirectUrl() — Get the redirect URL.
- refreshAccessToken() — Give a new access token refreshed.
- refreshToken() — Use the refresh token to get a new access token.
History
-
2018-12-04T14:53:44+00:00 (commit #9c1434a)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Configuration): Add default middlewares
-
2018-07-16T14:26:38+00:00 (commit #290a97d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Split Ratelimited from BaseResponse New type of response can now be easily build.