Which is the better way to implement authentication using login/password AND other social networks?
问题 I'm gonna try to explain my problem : I'd like to allow users to connect to my api via their own accounts (login/password) or via a social network (Facebook at first). Then, I would allow any application to use my api, with the user authenticated. My first thought when to auth the user via his/her login/password and return a token used as the session for the next requests. But OAuth would seems to be the better implementations, except I don't know how to do this : One of my applications will