I’m creating a new site and I want the users to be able to use several ways to sign in, basically the users should be able to create a new user on my site OR use Facebook connect OR use Twitter’s account to log into the site.
I have seen several tutorials on using one of these methods, what I want to know is what do you think is the best approach to do this?
So far I think the best way would be to create a custom Authentication model (something like subtyping the existing authorization classes).
Is this the best approach?
Can you point me to a good example of someone trying something similar?
Thanks a lot
I blogged about something similar recently…Here’s the approach I took
I would create a different login method for each type of login depending on how their authorization schemes work.
Btw, the two classes at the top represent my Entity Framework POCOs
The key here is the Authentication Table which is separate from the user table. It allows one user to have multiple methods of signing in. Hope this helps you get you on track.