How do I fix redirect_uri_mismatch in OAuth?
Short answer: Use the exact redirect_uri sent in the OAuth request and add that same scheme, host, path, and trailing slash to the provider client configuration.
Steps
- Copy the redirect_uri value from the generated authorize URL.
- Compare scheme, domain, path, query, and trailing slash with the provider console.
- Confirm the app is using the intended client ID and environment.
- Retry sign-in only after the provider has saved the updated callback URL.
Use debugtools
Open the SAML / OIDC Debugger to run this workflow in the browser.
Related tools
OAuth Token InspectorAPI Auth Config TesterURL Encoder and Decoder