You are here

public function RestClient::isAuthorized in Salesforce Suite 8.3

Determine if this SF instance is fully configured.

Overrides RestClientInterface::isAuthorized

Deprecated

in 8.x-4.0 and does not have an exact analog, refer to \Drupal\salesforce\Consumer\SalesforceCredentials::isValid instead.

1 method overrides RestClient::isAuthorized()
TestRestClient::isAuthorized in src/Tests/TestRestClient.php
Always return TRUE for test client.

File

src/Rest/RestClient.php, line 153

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function isAuthorized() {
  return $this
    ->getConsumerKey() && $this
    ->getConsumerSecret() && $this
    ->getRefreshToken();
}