Skip to main content
Version: 1.4.0

SalesforceTokenCredentials

class
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 | HashiCorpSecret

The username to access Salesforce.

parameter
passwordstr | DirectSecret | EnvironmentSecret | HashiCorpSecret

The password to access Salesforce.

parameter
security_tokenstr | DirectSecret | EnvironmentSecret | HashiCorpSecret

The security token to access Salesforce.

Properties

property
passwordSecret

The password to access Salesforce.

property
security_tokenSecret

The security token to access Salesforce.

property
usernameSecret

The username to access Salesforce.