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.
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.