简体   繁体   English

如何获取Azure网站的AzureActiveDirectory身份验证设置

[英]how to get the AzureActiveDirectory authentication settings of azure web site

I recently published a website to azure and it works fine. 我最近发布了一个网站来确定天蓝色,效果很好。 After publishing I configured authentication for it by going to manage.windowsazure.com . 发布后,我通过转到manage.windowsazure.com为它配置了身份验证。 And now it gets redirected to corp.sts authentication. 现在,它被重定向到corp.sts身份验证。

Now if I want to test the same from my local host , I think I need to get all those settings added in web.config or I should modify my local web.config in the source code. 现在,如果我想从本地主机进行测试,我想我需要在web.config中添加所有这些设置,否则我应该在源代码中修改本地web.config。

But is that possible to get the web.config settings from the published website since it might have been updated with Authentication ? 但是,由于它可能已经通过身份验证进行了更新,是否可以从已发布的网站获取web.config设置?

您需要在Azure AD条目(您需要将localhost添加为新的返回URL)和应用程序(您需要将localhost指定为回复URL)中进行更改。您可以通过以下方式找到这两项任务的说明https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet的自述文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM