Error AtlasError Documentation and Resolution

Microsoft Entra returned an invalid redirect URI error

AADSTS70004: InvalidRedirectUri

Microsoft Entra rejected the request because the redirect URI is invalid or does not match the registered authentication settings for the application.

AADSTS70004authentication
AADSTS70004: InvalidRedirectUri
  • The redirect URI in the request is malformed or not registered.
  • The application is using a different environment URL than the one configured.
  • The Entra app registration authentication settings do not include the requested redirect.
  1. Compare the request redirect URI with the URIs configured for the app registration.
  2. Add the exact URI if it is valid for the application.
  3. Update the app configuration so it uses a registered redirect URI.
Microsoft Learn: Microsoft Entra authentication and authorization error codes
AADSTS70004 InvalidRedirectUri: causes and fixes | Error Atlas