Troubleshooting Access Token Request Errors
When users try to sign into Service Board from Salesforce and authentication fails with a 403 Authentication Error, the back-end log shows errors such as the following:
Failed to access OAuth server org.springframework.security.oauth2.client.resource.OAuth2AccessDeniedException: Error requesting access token.
In most cases, the root cause is that the domain name specified in external OAuth provider configuration is a specific Salesforce instance such as svmx.cs10.my.salesforce.com. Typically, the correct value to use for external OAuth provider configuration should be the My Domain value in Salesforce Setup, such as svmx.my.salesforce.com.
To troubleshoot access token request errors:
1. In Salesforce, on the Setup page, in the left pane, in the Settings section, expand the Company Settings node, and then click My Domain.
2. Sign into Service Board as the system user at https://<tenant_hostname>/sec/auth/max.
3. In
Max Admin, on the
System Management (
) launchpad menu, expand the
System Management section and click
External OAuth Providers, and then in the list view, click to open the
Salesforce record.
4. Update the following fields with the value in the Salesforce
My Domain page, and then in the top left corner, click
Save and Close (
).
◦ Authorization URL
◦ Access Token URL
◦ User Profile URL
◦ Logout URL
For more information: