ADO.NET Provider for Salesforce

Build 26.0.9666

AuthScheme

Specifies the authentication method to use when connecting to Salesforce.

Possible Values

Basic, OAuth, OAuthClient, OAuthPassword, OAuthJWT, OAuthPKCE, OneLogin, PingFederate, OKTA, ADFS, AzureAD

Data Type

string

Default Value

"OAuthPKCE"

Remarks

Salesforce supports multiple authentication methods. The correct value depends on the authentication flow your organization uses.

  • Basic: Deprecated and unsupported in API versions 65.0 and later. To use Basic Authentication, set APIVersion to 64.0 or lower. Switching to a supported authentication scheme is recommended. Set this to use Basic user/password authentication.
  • OAuth: Set this to perform OAuth with the code grant type. This authentication method requires the use of a custom OAuth application, which you can create using the procedure in Creating a Custom OAuth Application.
  • OAuthClient: Set this to perform OAuth with the client grant type.
  • OAuthPassword: Set this to perform OAuth with the password grant type.
  • OAuthJWT: Set this to perform OAuth authentication with a JWT certificate. Requires the following additional connection properties. [OAuthJWTCert,/OAuthJWTCertType/OAuthJWTCertPassword/OAuthJWTCertSubject/OAuthJWTIssuer/OAuthJWTSubject]
  • OAuthPKCE: Set this to use Proof Key of Code Exchange(PKCE) extension of the standard OAuth2 flow. Either set your own PKCEVerifier or the driver will automatically generate one for you.
  • OneLogin: Set this to perform SSO authentication through OneLogin. All identity providers require the following common connection properties. [SSOLoginURL/SSOExchangeURL]
  • PingFederate: Set this to perform SSO authentication through PingFederate. All identity providers require the following common connection properties. [SSOLoginURL/SSOExchangeURL]
  • OKTA: Set this to perform SSO authentication through OKTA. All identity providers require the following common connection properties. [SSOLoginURL/SSOExchangeURL]
  • ADFS: Set this to perform SSO authentication through ADFS. All identity providers require the following common connection properties. [SSOLoginURL/SSOExchangeURL]
  • AzureAD: Set this to perform SSO authentication through AzureAD. Please see the connection property SSOProperties for more information.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9666