You are here

public function SalesforceAuthProviderPluginBase::requestAccessToken in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::requestAccessToken()
1 method overrides SalesforceAuthProviderPluginBase::requestAccessToken()
SalesforceJWTPlugin::requestAccessToken in modules/salesforce_jwt/src/Plugin/SalesforceAuthProvider/SalesforceJWTPlugin.php
Overrides AbstractService::requestAccessToken for jwt-bearer flow.

File

src/SalesforceAuthProviderPluginBase.php, line 203

Class

SalesforceAuthProviderPluginBase
Shared methods for auth providers.

Namespace

Drupal\salesforce

Code

public function requestAccessToken($code, $state = NULL) {
  $token = parent::requestAccessToken($code, $state);
  $this
    ->refreshIdentity($token);
  return $token;
}