getmovement / deprecated-movement-rails-api

DEPRECATED Rails API for getmovement.org
1 stars 1 forks source link

Signup via facebook #47

Closed begedin closed 8 years ago

begedin commented 8 years ago

Closes #54, #6, #47, #7

TODO:

begedin commented 8 years ago

Some notes

begedin commented 8 years ago

I cleaned this up a bit so we don't have to rely on prepend. I'm also still looking into proper facebook authentication.

I found this and it seems like a pretty clean way to do it. However, while refactoring this, a few things occurred to me.

  1. When registering through facebook, either email and password should not be required as parameters, or password should not be required and email should be pulled from facebook using Koala.
  2. User should be able to set their email/password at a later time (this is how it usually works with facebook authentication)
  3. Right now, when signing in, we just check if the user with the specified facebook id and access token is in our database. We may want to consider checking with facebook first if it's a valid token/id combination at all. The assumption is that it will be, but still.

For this purpose, I've created the issue #62 to handle this separately. I think this is mergeable as is, for now.

joshsmith commented 8 years ago

With that minor change, this is good to go.