You are here

public function RestClient::getAuthCallbackUrl in Salesforce Suite 8.3

Helper to build the redirect URL for OAUTH workflow.

Return value

string Redirect URL.

Overrides RestClientInterface::getAuthCallbackUrl

Deprecated

in 8.x-4.0, use \Drupal\salesforce\Consumer\SalesforceCredentials::getCallbackUrl instead.

See also

\Drupal\salesforce\Controller\SalesforceController

File

src/Rest/RestClient.php, line 582

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function getAuthCallbackUrl() {
  return Url::fromRoute('salesforce.oauth_callback', [], [
    'absolute' => TRUE,
    'https' => TRUE,
  ])
    ->toString();
}