【发布时间】: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