Share via

Keep getting this error message. How do I fix it

Vic Henson 0 Reputation points
2026-04-22T15:53:32.1833333+00:00
Microsoft Security | Microsoft Entra | Microsoft Entra External ID

1 answer

Sort by: Most helpful
  1. VEMULA SRISAI 13,235 Reputation points Microsoft External Staff Moderator
    2026-04-22T16:49:46.87+00:00

    Hello Vic Henson,

    The error invalid_request: The provided value for the input parameter 'redirect_uri' is not valid means the redirect URI being sent in the sign‑in request does not exactly match any redirect URI configured for the app in Microsoft Entra ID.

    How to fix it

    1. Go to Microsoft Entra ID → App registrations → Your app → Authentication
    2. Under Redirect URIs, make sure the URI:
      • Matches exactly (case‑sensitive)
        • Has the same protocol (https/http), domain, path, and no extra slash
        1. Verify the application (client) ID used in the request is the same app where the redirect URI is registered
        2. If this is a SPA, ensure the redirect URI is added under Single‑page application, not Web (and vice versa)

    After updating, save the changes and retry the sign‑in.

    https://learn.microsoft.com/en-in/entra/identity-platform/reply-url

    https://learn.microsoft.com/en-in/entra/identity-platform/reference-error-codes

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.