C# library to authenticate users against your own database, facebook, twitter, OpenID, [closed]

佐手、 提交于 2019-12-10 13:22:43

问题


I am looking for an open-source C# library with flexible licencing to use in an ASP.NET MVC application.

It should be able to authenticate users against a local database, facebook, twitter, OpenID or other popular authentication methods.

Is there such a library available?


回答1:


This is exactly what one of the goals of Windows Identity Foundation (WIF) is. It allows you to abstract your authentication code away with different providers. They have a very complete developer training kit, and there are modules avaiable to authenticate with all kinds of different protocols (OpenID, OAuth, Facebook, LiveID...) or you can use ACS to provide the abstraction around all the different protocols.

For even more information see these:

  • http://claimsid.codeplex.com/
  • http://blogs.msdn.com/b/vbertocci/
  • http://channel9.msdn.com/Learn/Courses/IdentityTrainingCourse



回答2:


I doubt there is a library that could work against all the possible sites you can list. You could use DotNetOpenAuth for OpenID.



来源:https://stackoverflow.com/questions/5292572/c-sharp-library-to-authenticate-users-against-your-own-database-facebook-twitt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!