88 $this->provider =
$options[
'provider'];
89 $this->oauthUserEmail =
$options[
'userName'];
90 $this->oauthClientSecret =
$options[
'clientSecret'];
91 $this->oauthClientId =
$options[
'clientId'];
92 $this->oauthRefreshToken =
$options[
'refreshToken'];
102 return new RefreshToken();
112 return $this->provider->getAccessToken(
114 [
'refresh_token' => $this->oauthRefreshToken]
126 if (null === $this->oauthToken || $this->oauthToken->hasExpired()) {
127 $this->oauthToken = $this->
getToken();
130 return base64_encode(
132 $this->oauthUserEmail .
__construct($options)
OAuth constructor.
OAuth - OAuth2 authentication wrapper class.
getGrant()
Get a new RefreshToken.
getOauth64()
Generate a base64-encoded OAuth token.
getToken()
Get a new AccessToken.
Get an OAuth2 token from an OAuth2 provider.