Troubleshooting OAuth Redirect URI Mismatch Errors
In cases where there is a configuration mismatch between the External OAuth Provider in Service Board and the Connected App in Salesforce, users see the following error message when they try to log into Service Board:
error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
To troubleshoot OAuth errors:
1. On the Salesforce Setup page, in the left pane, click > > and then in the list view, in the ServiceMax Service Board Single Sign-On row, in the picklist on the right, click Edit.
2. On the Connected App page, under API (Enable OAuth Settings), verify that the Callback URL field contains a valid URL in the format https://<tenant_domain_name>/oauth, for example, https://myserviceboard.eu.servicemax.io/oauth.
3. If the URL value is correct, in Max Admin, click > > , and then in the list view, click the currently active record.
4. On the record page, and paste the following field values from the Salesforce Connected App into the following fields.
|
Salesforce Field
|
Service Board Field
|
|
Consumer Key
|
Client ID
|
|
Consumer Secret
|
Client Secret
|
5. Verify that the following fields have a valid URL that contains the domain of your Salesforce org.
◦ Authorization URL
◦ Access Token URL
◦ User Profile URL
◦ Logout URL