Property | Type | Description | |
---|---|---|---|
$oauthClientId | string | The client ID, generated in the app definition of the service you're connecting to. | |
$oauthClientSecret | string | The client secret, generated in the app definition of the service you're connecting to. | |
$oauthRefreshToken | string | The refresh token, used to obtain new AccessTokens. | |
$oauthToken | League\OAuth2\Client\Token\AccessToken | The current OAuth access token. | |
$oauthUserEmail | string | The user's email address, usually used as the login ID and also the from address when sending email. | |
$provider | League\OAuth2\Client\Provider\AbstractProvider | An instance of the League OAuth Client Provider. |
Method | Description | |
---|---|---|
__construct ( array $options ) | OAuth constructor. | |
getOauth64 ( ) : string | Generate a base64-encoded OAuth token. |
Method | Description | |
---|---|---|
getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken | Get a new RefreshToken. | |
getToken ( ) : League\OAuth2\Client\Token\AccessToken | Get a new AccessToken. |
public __construct ( array $options ) | ||
$options | array | Associative array containing `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements |
protected getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken | ||
return | League\OAuth2\Client\Grant\RefreshToken |
public getOauth64 ( ) : string | ||
return | string |
protected getToken ( ) : League\OAuth2\Client\Token\AccessToken | ||
return | League\OAuth2\Client\Token\AccessToken |
protected string $oauthClientId | ||
return | string |
protected string $oauthClientSecret | ||
return | string |
protected string $oauthRefreshToken | ||
return | string |
protected League\OAuth2\Client\Token\AccessToken $oauthToken | ||
return | League\OAuth2\Client\Token\AccessToken |
protected string $oauthUserEmail | ||
return | string |