【问题标题】:Azure Active Directory and OWINAzure Active Directory 和 OWIN
【发布时间】:2014-08-19 23:44:44
【问题描述】:

我正在尝试将使用 OAuth2 的 Azure Active Directory 登录添加到现有 MVC 应用程序。

我在 Startup.Auth.cs 以及 AccountController 和 Account/Views 中有所有 OWIN 样板文件。

当尝试使用授权属性(测试/测试)访问控制器时,我会看到登录页面:http://mywebapp.com:12345/Account/Login?ReturnUrl=%2FTest%2FTest)

当我单击指示我想使用 Azure Active Directory 登录的按钮时,我被发送到:http://mywebapp.com:12345/Account.aspx/ExternalLogin?ReturnUrl=%2FTest%2FTest

但仅此而已。该页面是空白的,并且没有提示我在任何地方登录。

任何指导都会有所帮助。

【问题讨论】:

    标签: asp.net-mvc oauth-2.0 owin azure-active-directory


    【解决方案1】:

    Azure 管理门户中有关此功能的指导链接已过时。在撰写本文时,更新后的指南位于https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet。问题的症结在于 MS 希望您使用 OpenIDConnect Nuget 包向 Azure AD 进行身份验证。包的名称是:Microsoft.Owin.Security.OpenIdConnect。

    【讨论】:

      猜你喜欢
      • 2019-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 2016-08-13
      • 1970-01-01
      相关资源
      最近更新 更多