OAUTH_APPROVAL_ERROR_GENERIC: An unexpected error has occurred during authentication. Please try again.

This error occurs when at least one of the following OAuth Scopes is not selected in the Salesforce app:
You should select the OAuth Scopes that are currently used in the Salesforce app.


error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration
You should add the Callback URL to the app settings in Salesforce.
https://fullDomain[:WithOptionalPort]/MicroStrategy/servlet/mstrWeb?evt=3172
https://example.Strategy.com/MicroStrategy/servlet/mstrWeb?evt=3172






error=invaild_client_id&error_description=client%20identifier%20invalid
Use the correct Client ID.


Failed to retrieve refresh token for authentication[400 Bad Request. The request cannot be fulfilled due to bad syntax. invalid_client. invalid client credentials]

This error occurs when the Client Secret provided in the OAuth Parameters dialog is incorrect.
Make sure the correct client secret is used for the provided client ID.



Failed to retrieve refresh token for authentication[400 Bad Request. The request cannot be fulfilled due to bad syntax. invalid_grant. authentication failure]

This error occurs when the client uses a production account to log into the sandbox environment or vice versa.
Use the account credentials based on the selected Salesforce instance - default or sandbox.