microsoftgraph / aspnetcore-connect-sample

[ARCHIVED] This ASP.NET Core MVC sample shows how to connect to Microsoft Graph using delegated permissions and the Azure AD v2.0 (MSAL) endpoint.
MIT License
123 stars 96 forks source link

The reply address does not match the reply addresses configured for the application #6

Closed aredfox closed 6 years ago

aredfox commented 6 years ago

I have configured an application via the portal (converged). I was running under a differen port though, so when settup up the URLS in the app registrations I changed them to match my port number...

Now I'm receiving this error after the flow is trying to connect back to my application. How can I debug this, or how do I know what is happening?

Additional technical information:
--
Correlation ID: 145d8f37-7229-4dce-8ace-c777e4aeef94
Timestamp: 2017-11-02 08:41:21Z
AADSTS50011: The reply address 'http://localhost:60761/signin-oidc' does not match the reply addresses configured for the application: '8b640f9d-e7d8-4c41-8a40-15069f5712ee'. More details: not specified

azureadconvergederror

mark-szabo commented 6 years ago

Hi @aredfox, when you create your app on https://apps.dev.microsoft.com, you have to update the reply URL, if you change it in the code. Just modify the port in the Redirect URLs field, or add a new line and enter the full URL. image

Hope it helps! :) Feel free to leave a comment if you have any questions!

mark-szabo commented 6 years ago

Ohh, I see, I've misunderstand your question! :) So basically the URL on the portal needs to match the URL in appsettings.json. Please update the BaseUrl field and it should work!

mark-szabo commented 6 years ago

Feel free to reopen if you were not able to solve the problem or have more questions! :)