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)
You need to have the Domain with the full name, say for ex.
(您需要拥有全名的域名,例如,ex。)
stackoverflow-test
(如果您的应用程序名称是stackoverflow-test)
"Domain": "https://stackoverflow-test.azurewebsites.net",
1.4m articles
1.4m replys
5 comments
57.0k users