gpt4 book ai didi

authentication - Azure 网站身份验证/授权

转载 作者:行者123 更新时间:2023-12-03 06:01:36 25 4
gpt4 key购买 nike

我正在使用 Azure 的新功能,无需编写任何代码即可为您的网站启用 Active Directory 身份验证。 http://azure.microsoft.com/blog/2014/11/13/azure-websites-authentication-authorization/

但问题是我的 Web 应用程序还托管了一些 Web API,这些 API 需要在没有任何身份验证的情况下调用。

有没有办法(某些属性?)让我无需任何身份验证即可调用 Web API?

最佳答案

Tushar,我看到 Byron 也在他的帖子中回复了您的问题,并建议创建另一个关于 API 的网站作为解决方法。不过,我建议您按照此处的示例为您的 Web 应用程序和 API 单独连接身份验证:https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet , https://github.com/AzureADSamples/WebApp-WebAPI-OpenIDConnect-DotNet

如果您遇到任何问题,请告诉我。

关于authentication - Azure 网站身份验证/授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28365981/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com