R – Is it worth using ASP.NET’s membership/role provider model if you’re doing a completely homebaked implementation

asp.netasp.net-membershipmembership

I'm working on a website that will be using Facebook Connect to authenticate users. We also have some database structure on the backend to associate users via their Facebook user id to various groups and roles.

In short, the requirements for the project don't really have a lot of crossover with the functionality defined by ASP.NET's membership and roles provider model.

Given that, is there any reason to implement a custom membership provider for this stuff other than it working with the "built-in" stuff and having access to it via the Membership static class?

Best Answer

Yes. It's very easy to implement a MembershipProvider (you really only need to implement the ValidateUser method) and you get access to some very useful asp.net features which at least simplify a lot of your code (I'm thinking of helpers like Page.User).

Related Topic