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?
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:
I doubt there is a library that could work against all the possible sites you can list. You could use DotNetOpenAuth for OpenID.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With