OAuth Error

redirect_uri_mismatch

Last updated: April 2026

OAuth Error Response
error: redirect_uri_mismatch error_description: The redirect_uri does not match any registered redirect_uris.

The redirect_uri your app sent in the authorization request does not exactly match any URI registered in your OAuth provider's dashboard. The match is case-sensitive and includes the full URI: protocol, domain, port, and path.

Diagnose OAuth errors with OAuthFixer โ†’

Fix โ€” match the URI exactly

The redirect_uri in your authorization request must exactly match one of the registered URIs in the provider dashboard. Check for:

# Common mismatches:

# 1. Trailing slash
https://yourapp.com/callback    # registered
https://yourapp.com/callback/   # sent โ€” mismatch

# 2. HTTP vs HTTPS
https://yourapp.com/callback    # registered
http://yourapp.com/callback     # sent โ€” mismatch

# 3. Port mismatch (localhost)
http://localhost:3000/callback  # registered
http://localhost:3001/callback  # sent โ€” mismatch

# 4. Path case
https://yourapp.com/Callback    # registered
https://yourapp.com/callback    # sent โ€” mismatch

Auth0 fix

# Auth0 Dashboard โ†’ Applications โ†’ Your App โ†’ Settings
# Add the exact URI to "Allowed Callback URLs"
# Multiple URIs separated by commas:
https://yourapp.com/callback, http://localhost:3000/callback

Okta fix

# Okta Admin โ†’ Applications โ†’ Your App โ†’ General
# Add to "Sign-in redirect URIs"
https://yourapp.com/callback
http://localhost:3000/callback

Google OAuth fix

# Google Cloud Console โ†’ APIs & Services โ†’ Credentials
# Click your OAuth 2.0 Client โ†’ Edit
# Add to "Authorized redirect URIs":
https://yourapp.com/callback

AWS Cognito fix

# AWS Console โ†’ Cognito โ†’ User Pools โ†’ Your Pool
# App clients โ†’ Your client โ†’ Edit
# Add to "Callback URLs":
https://yourapp.com/callback

Microsoft / Azure fix

# Azure Portal โ†’ App registrations โ†’ Your app
# Authentication โ†’ Redirect URIs โ†’ Add URI:
https://yourapp.com/callback

Debug โ€” find the exact URI your app is sending

# Check the authorization URL your app constructs
# The redirect_uri parameter must match the registered URI exactly

# Example authorization URL:
https://auth.yourprovider.com/authorize
  ?client_id=YOUR_CLIENT_ID
  &redirect_uri=https%3A%2F%2Fyourapp.com%2Fcallback  # URL-encoded
  &response_type=code
  &scope=openid
📚 HttpFixer Blog โ€” fix guides, explainers, and references โ†’