class SalesforceCredentials in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials
- 5.0.x src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials
Stub class SalesforceCredentials. Used for broken / fallback plugin only.
Hierarchy
- class \Drupal\salesforce\Consumer\SalesforceCredentials extends \OAuth\Common\Consumer\Credentials implements SalesforceCredentialsInterface
Expanded class hierarchy of SalesforceCredentials
3 files declare their use of SalesforceCredentials
- Broken.php in src/
Plugin/ SalesforceAuthProvider/ Broken.php - JWTCredentials.php in modules/
salesforce_jwt/ src/ Consumer/ JWTCredentials.php - SalesforceOAuthCredentials.php in modules/
salesforce_oauth/ src/ Consumer/ SalesforceOAuthCredentials.php
File
- src/
Consumer/ SalesforceCredentials.php, line 10
Namespace
Drupal\salesforce\ConsumerView source
class SalesforceCredentials extends Credentials implements SalesforceCredentialsInterface {
/**
* Login URL e.g. https://test.salesforce.com or https://login.salesforce.com.
*
* @var string
*/
protected $loginUrl;
/**
* Consumer key for the Salesforce connected OAuth app.
*
* @var string
*/
protected $consumerKey;
/**
* {@inheritdoc}
*/
public function getConsumerKey() {
return $this->consumerKey;
}
/**
* {@inheritdoc}
*/
public function getLoginUrl() {
return $this->loginUrl;
}
/**
* {@inheritdoc}
*/
public function isValid() {
// This class is a stub.
return FALSE;
}
/**
* {@inheritdoc}
*/
public static function create(array $configuration) {
return new static($configuration['consumer_key'], $configuration['consumer_secret'], NULL);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SalesforceCredentials:: |
protected | property | Consumer key for the Salesforce connected OAuth app. | |
SalesforceCredentials:: |
protected | property | Login URL e.g. https://test.salesforce.com or https://login.salesforce.com. | |
SalesforceCredentials:: |
public static | function |
Create helper. Overrides SalesforceCredentialsInterface:: |
2 |
SalesforceCredentials:: |
public | function |
Get the consumer key for these credentials. Overrides SalesforceCredentialsInterface:: |
|
SalesforceCredentials:: |
public | function |
Get the login URL for these credentials. Overrides SalesforceCredentialsInterface:: |
|
SalesforceCredentials:: |
public | function |
Sanity check for credentials validity. Overrides SalesforceCredentialsInterface:: |
2 |