Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a framework to abstract authentication in ASP.NET MVC?

I want to make a web application where authentication method is completely configurable (it may be openid, it may be windows authentication, it may be anything else).

I would prefer just changing a single setting in web.config to get a different auth solution. The application needs a Principal/Identity with some kind of user name (some other user details can be good, but not required at this point).

Is there any good framework that can help me or should I build my own?

like image 936
Andrey Shchekin Avatar asked Oct 25 '22 16:10

Andrey Shchekin


1 Answers

Are you familiar with the built in ASP.NET Membership feature? It can be used with ASP.NET MVC or WebForms. You can plug in other providers as needed. There is an OpenID provider that's available on CodePlex - although I haven't used it.

like image 101
Ryan Tofteland Avatar answered Oct 27 '22 10:10

Ryan Tofteland