Enabling OAuth 2.0 Authentication for Veeva CRM Online
Admins must configure Veeva CRM to communicate with an identity provider (IDP) to allow orgs to sign in with OAuth 2.0. Any IDP supporting the OpenID Connect protocol and having a working integration with Salesforce is supported.
Before configuring OAuth for CRM:
- Set up the IDP (of your choice) and retrieve the following:
- Consumer Key
- Consumer Secret
- Authorize Endpoint URL
- Token Endpoint URL
- User Info Endpoint URL
- Integrate Salesforce with the IDP. After the subdomain is registered and deployed, admins must define a Registration Handler Apex class and configure an authentication provider to allow the IDP to communicate with Salesforce. To configure and test the authentication provider, see the Salesforce documentation.
When configuring the authentication provider, make sure to select Open ID Connect for the Provider Type, enter openid for Default Scopes, and select the appropriate Apex class for the Registration Handler lookup field.
To allow online users to sign in with OAuth 2.0, admins must configure My Domain to redirect to the IDP’s signin page:
- Navigate to Setup > Administration Setup > Domain Management > My Domain.
- Select Edit for Authentication Configuration.
- Deselect Login Form for Authentication Service.
- Select the name of the authentication provider you just configured, for example, PingFederate.
- Select Save.