Ensure your application is being accesed using the reply URL authority. If your reply URL is https://mysite/reply you have to access your application using https://mysite but not https://mysitealias or any other alias since your application will use the latter and build an incorrect reply URL.
Microsoft Graph API redirect_uri error
I'm using the Microsoft Graph API to connect to Hotmail inboxes as part of the overall solution. I have followed the tutorial here: https://video2.skills-academy.com/en-us/samples/microsoftgraph/aspnet-snippets-sample/microsoft-graph-snippets-sample-for-aspnet-core-31/ and have the solution running well in the development environment.
However, when I deploy the site to IIS on my web server, the error:
invalid_request: 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.
is displayed. I cannot see any problems with the redirect URL set in the AAD screens.
1 answer
Sort by: Most helpful
-
Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,461 Reputation points
2020-08-12T01:01:02.233+00:00