AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: ''

前端 未结 8 1673
我寻月下人不归
我寻月下人不归 2021-02-18 13:12

I have a .NET Core 2 app template that is configured to use Azure AD out of the box.

The configuration is:

{
  \"AzureAd\": {
    \"Instance\": \"https:         


        
8条回答
  •  生来不讨喜
    2021-02-18 13:37

    You can refer to this Sample to rebuild your .NET core App and publish to the Azure.

    There are some NOTES you need to pay attention to :

    1. you need to change the port from 5000 to the effective one. Currently, it should be 61659. So, when you do a test in your localhost, you can set the reply URL in the AAD App with http://localhost:61659/signin-oidc

    2. Update these URLs if you configure the app for production use or If you publish the App to Azure Web App, you should change the Reply URL in both App config file and AAD Application to be /signin-oidc

    For example, https://www.contoso.com/signin-oidc or https://Myapp.azurewebsites.net/signout-oidc.

提交回复
热议问题