SalesforceTokenCredentials
classView source ↗
class SalesforceTokenCredentials(
username: str | Secret,
password: str | Secret,
security_token: str | Secret,
)
Bases: SalesforceCredentials
Categories: credentials
Credentials class to store the credentials needed to access a Salesforce using a username, a password and a token.
Attributes: username (Secret): The username to access Salesforce. password (Secret): The password to access Salesforce. security_token (Secret): The security token to access Salesforce.
Methods: to_dict() -> dict: Convert the AzureAccountNameKeyCredentials object to a dictionary
Initialize the SalesforceTokenCredentials object.
Parameters
parameter
usernamestr | DirectSecret | EnvironmentSecret | HashiCorpSecretThe username to access Salesforce.
parameter
passwordstr | DirectSecret | EnvironmentSecret | HashiCorpSecretThe password to access Salesforce.
parameter
security_tokenstr | DirectSecret | EnvironmentSecret | HashiCorpSecretThe security token to access Salesforce.
Properties
property
passwordSecretThe password to access Salesforce.
property
security_tokenSecretThe security token to access Salesforce.
property
usernameSecretThe username to access Salesforce.