Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
501 views
in Technique[技术] by (71.8m points)

azure - 请求中指定的回复URL与为应用程序(Azure Published app)配置的回复URL不匹配(The reply url specified in the request does not match the reply urls configured for the application (Azure Published app))

I have a test web application MVC, netcoreapp3.0 and I'm getting crazy with AD auth.

(我有一个测试Web应用程序MVC,netcoreapp3.0,并且对AD auth感到疯狂。)

The appsettings.json

(appsettings.json)

  {
  "AzureAd": {
    "Instance": "https://login.microsoftonline.com/",
   "Domain": "azurewebsites.net",
    "TenantId": "a6b08d54-xx",
    "ClientId": "4737e7b1-xx",
    "CallbackPath": "/signin-oidc"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*"

Redirect URIs in the App regitrations:

(在应用程序注册中重定向URI:)

https://cloud.azurewebsites.net:5001/signin-oidc

(https://cloud.azurewebsites.net:5001/signin-oidc)

https://cloud.azurewebsites.net:5001/

(https://cloud.azurewebsites.net:5001/)

logout: https://cloud.azurewebsites.net:5001/signout-callback-oidc

(注销: https ://cloud.azurewebsites.net: 5001/ signout-callback- oidc)

  ask by Andrea Gail translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You need to have the Domain with the full name, say for ex.

(您需要拥有全名的域名,例如,ex。)

if your app name is stackoverflow-test

(如果您的应用程序名称是stackoverflow-test)

 "Domain": "https://stackoverflow-test.azurewebsites.net",

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...