【问题标题】:Changing the WWW-Authenticate header when using Azure App Service Authentication使用 Azure 应用服务身份验证时更改 WWW-Authenticate 标头
【发布时间】:2018-04-13 03:59:15
【问题描述】:

这个问题与:

尝试使用应用服务身份验证和 AAD 提供程序让 PowerBI 连接到托管在 Azure 应用服务中的 Web API。

WWW-Authenticate 标头不识别身份提供者,所以PowerBI does not authenticate to the web API

是否可以修改 WWW-Authenticate 标头,可能在使用应用服务身份验证时使用 IAuthenticationFilter

【问题讨论】:

    标签: asp.net web-services azure authentication azure-web-app-service


    【解决方案1】:

    是否可以修改 WWW-Authenticate 标头,可能在使用应用服务身份验证时使用 IAuthenticationFilter?

    根据我的经验,如果我们使用 WebApp 集成的 AAD 身份验证,我们无法使用 IAuthenticationFilter。

    如果我们set up the app to use the OWIN authentication pipeline,我们可以在 ChallengeAsync 的回复中这样做,您可以参考此blog 以获取更多详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-02
      • 1970-01-01
      • 1970-01-01
      • 2019-01-24
      • 1970-01-01
      • 2016-03-21
      • 2011-05-15
      相关资源
      最近更新 更多