Getting an invalid redirect URI error even if the redirect uri is registered correctly

Joseph Nasser 0 Reputation points
2024-10-23T06:19:27.47+00:00

I am trying to authenticate with my app. But whenever I enter my email, I get redirected with the following error in the url query:

{
  "error": "invalid_request",
  "error_description": "AADSTS90023: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.",
  "error_codes": [90023],
  "timestamp": "2024-10-23 05:36:41Z",
  "trace_id": "61835421-190c-43c7-812e-e1ecaa21c900",
  "correlation_id": "27406729-a215-4d0c-9ed6-333e6cc67208"
}

I even tried so far as adding https://google.com to the redirect uri and I still get the error.image

Here's an example of the oauth urls:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&scope=User.Read%20Calendars.Read%20Calendars.ReadWrite%20offline_access&client_id={{MY_CLIENT_ID}}&redirect_uri=https://google.com

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&scope=User.Read%20Calendars.Read%20Calendars.ReadWrite%20offline_access&client_id={{MY_CLIENT_ID}}&redirect_uri={{MY_SITE_URL}}/api/integrations/outlookCalendar/callback

I've tripple checked the URIs, and they're the same as what I've registered in my App Registration.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-23T08:34:58.48+00:00

    Hello Joseph Nasser,

    Thank you for reaching out to Microsoft Support!

    Please check that the URL is configured for the application registered in Azure, as shown in the following figure:

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

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