Loading...

debugtools / answers

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

  1. Copy the redirect_uri value from the generated authorize URL.
  2. Compare scheme, domain, path, query, and trailing slash with the provider console.
  3. Confirm the app is using the intended client ID and environment.
  4. 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