Description
I added a URL to the OAuth allow list but when using the code to get the access token, I receive an error “Invalid request : Redirect URI mismatch.”
redirect_uri in install request: https://www.app-staging.mydomain.com/api/connectedapps/oauth/callback
redirect_uri in code request: https://www.app-staging.mydomain.com/api/connectedapps/oauth/callback
The “Redirect URL for OAuth” in the main text field (registration in marketplace) is:
api-staging. mydomain. com/api/connectedapps/oauth/callback (without spaces)
But I would’ve thought as long as both requests have the same redirect URL it should work?
Error?
Invalid request : Redirect URI mismatch.
API Endpoint/s?
Normal OAuth token URL
How To Reproduce
Steps to reproduce the behavior:
*1. Use a redirect_uri that’s in the OAuth allow list but not listed as the main redirect_uri
*3. Error received: “Invalid request : Redirect URI mismatch.”