【问题标题】:Mimic Azure App Service authorization locally in ASP.NET core app在 ASP.NET 核心应用中本地模拟 Azure 应用服务授权
【发布时间】:2019-10-02 09:00:05
【问题描述】:

我正在使用 Azure 应用服务的内置身份验证来授权访问我的 ASP.NET 核心应用 - https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization。有没有办法模仿 Azure App 服务在我的机器上所做的事情,以便我可以在本地端点和云端点上运行相同的集成测试。

提前致谢!

【问题讨论】:

    标签: asp.net-core azure-web-app-service


    【解决方案1】:

    如果没有 Azure 应用服务,您可以使用 ASP.NET Core OpenID Connect 中间件将 Azure AD 集成到 ASP.NET Core Web 应用中:

    代码示例:

    Integrating Azure AD into an ASP.NET Core web app

    https://stackoverflow.com/a/54546245/5751404

    【讨论】:

      猜你喜欢
      • 2020-12-13
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      • 2021-04-16
      • 1970-01-01
      • 2013-10-24
      • 2018-11-29
      相关资源
      最近更新 更多