尝试使用Visual Studio 2012在我的ASP.NET MVC 4项目中使用 Microsoft.Owin.Security.Google 配置设置并使用Google配置登录 .
我一直在关注这篇文章:http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on并检查了其他人,他们都提到将代码放在ASP.NET MVC 4模板没有的 Startup.cs 文件中 .
Microsoft Owin库是否仅适用于ASP.NET MVC 5?
1 回答
是的,使用ASP.NET MVC5实现这一点要容易得多:
在 app_start/Startup.Auth.cs
FacebookBackChannelHandler