OAuth - OAuth2 authentication wrapper class.
Uses the oauth2-client package from the League of Extraordinary Packages.
- see https://oauth2-client.thephpleague.com
- author Marcus Bointon (Synchro/coolbru)
CloneableInstantiable
Methods |
public __construct( $options) OAuth constructor.
|
public getOauth64() Generate a base64-encoded OAuth token.
|
Properties |
protected $oauthClientId = '' The client ID, generated in the app definition of the service you're connecting to.
|
protected $oauthClientSecret = '' The client secret, generated in the app definition of the service you're connecting to.
|
protected $oauthRefreshToken = '' The refresh token, used to obtain new AccessTokens.
|
protected $oauthToken = NULL The current OAuth access token.
|
protected $oauthUserEmail = '' The user's email address, usually used as the login ID and also the from address when sending email.
|
protected $provider = NULL An instance of the League OAuth Client Provider.
|
Methods |
protected getGrant() Get a new RefreshToken.
|
protected getToken() Get a new AccessToken.
|