You are here

public function RestClient::getAuthTokenUrl in Salesforce Suite 8.3

Get Salesforce oauth token endpoint. (OAuth step 2)

Return value

string REST OAuth Token URL.

Overrides RestClientInterface::getAuthTokenUrl

Deprecated

in 8.x-4.0, use \Drupal\salesforce\SalesforceAuthProviderInterface::getAccessTokenEndpoint instead.

1 call to RestClient::getAuthTokenUrl()
RestClient::refreshToken in src/Rest/RestClient.php
Refresh access token based on the refresh token.
1 method overrides RestClient::getAuthTokenUrl()
TestRestClient::getAuthTokenUrl in src/Tests/TestRestClient.php
Get the fake Auth token endpoint.

File

src/Rest/RestClient.php, line 599

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function getAuthTokenUrl() {
  return $this
    ->getLoginUrl() . '/services/oauth2/token';
}