AuthenticationCapability Enum

Specifies the types of authentication that can be used to access the external system.

Usage

The DataSource.Provider class returns DataSource.AuthenticationCapability enum values. The returned values determine which authentication settings are available on the external data source definition in Salesforce.

If you set up your DataSource.Provider class to use HTTP callouts, you can set the endpoint as a named credential instead of a URL. If you do so, return ANONYMOUS as the sole entry in the list of data source authentication capabilities. That way, the external data source definition doesn’t require any authentication settings. Salesforce manages all the authentication for Apex callouts that specify a named credential as the callout endpoint, so that your code doesn’t have to.

Enum Values

The following are the values of the DataSource.AuthenticationCapability enum.

Value Description
ANONYMOUS No credentials are required to authenticate to the external system.
BASIC A username and password can be used to authenticate to the external system.
CERTIFICATE A security certificate can be supplied when establishing each connection to the external system.
OAUTH OAuth can be used to authenticate to the external system.
Previous
Next