protected function Salesforce::redirectUrl in Salesforce Suite 7.3
Helper to build the redirect URL for OAUTH workflow.
Return value
string Redirect URL.
2 calls to Salesforce::redirectUrl()
- Salesforce::getAuthorizationCode in includes/
salesforce.inc - OAuth step 1: Redirect to Salesforce and request and authorization code.
- Salesforce::requestToken in includes/
salesforce.inc - OAuth step 2: Exchange an authorization code for an access token.
File
- includes/
salesforce.inc, line 467 - Objects, properties, and methods to communicate with the Salesforce REST API
Class
- Salesforce
- Ability to authorize and communicate with the Salesforce REST API.
Code
protected function redirectUrl() {
return url('salesforce/oauth_callback', array(
'absolute' => TRUE,
'language' => (object) array(
'language' => FALSE,
),
'https' => TRUE,
));
}