You are here

public function SalesforceAuthProviderPluginBase::getAccessTokenEndpoint in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getAccessTokenEndpoint()
  2. 5.0.x src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getAccessTokenEndpoint()

Access token URL for this plugin type.

Return value

string Access token URL for this plugin type.

Overrides SalesforceAuthProviderInterface::getAccessTokenEndpoint

File

src/SalesforceAuthProviderPluginBase.php, line 254

Class

SalesforceAuthProviderPluginBase
Shared methods for auth providers.

Namespace

Drupal\salesforce

Code

public function getAccessTokenEndpoint() {
  return new Uri($this
    ->getCredentials()
    ->getLoginUrl() . static::AUTH_TOKEN_PATH);
}