thoughtworks / voto-como-vamos-2

New Voto Como Vamos platform
6 stars 1 forks source link

Authenticate user with Facebook #6

Open cv opened 11 years ago

cv commented 11 years ago

"Hi, I'm Carlos from Facebook, get/create my account please"…

fb documentation is good:

https://developers.facebook.com/docs/howtos/login/server-side-login/

...but surely there's a gem out there to deal with all the incantations for us?

juniorz commented 11 years ago

This is something really easy to do with devise + omniauth

cv commented 11 years ago

Sounds like a plan!

marano commented 11 years ago

Really? What do we need Facebook authentication for?

I'd say let's wait till we know exactly what we need from Facebook.

Anyway, if we are doing the authentication I suggest we use the Javascript SDK, it saves us time since we don't have to implement the crazy OAuth callbacks flow.

cv commented 11 years ago

I want fb (or oauth support in general) so we can have non-anonymous edits on the wiki side.

Also, though it is somewhat unrelated, comments and sharing flows make more sense when we already know the user's credentials.

juniorz commented 11 years ago

Anyway, if we are doing the authentication I suggest we use the Javascript SDK, it saves us time since we don't have to implement the crazy OAuth callbacks flow.

That is exactly what devise+omniauth does for you. They handle all the boring oauth flow (and with omniauth you can easily plug other oauth services).

alabeduarte commented 11 years ago

https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview

gabrielaguerra commented 11 years ago

git guys:

did u decide anything on that? :)

judorneles commented 11 years ago

This is not a story, updating Label.