Adds support to logging into Forem with Facebook Oauth. We're only using the Omniauth Facebook provider, not Facebook's SDK. In addition: only the bare minimum amount of information is requested from Facebook, so no app review is required on their end (and we limit the amount of user data that we're asking for). Included is:
The main difference in our approach is that we have a "one to many" correspondence between a user and the preferred login method. Something we call Identity. Thus a user can have a Twitter identity, a GitHub identity and so on.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article Mbonu, such a coincidence BTW :-)
@joshpuetz has been working on adding optional Facebook authentication support to Forems in the following PR:
Log in with Facebook #9922
What type of PR is this? (check all applicable)
Description
Adds support to logging into Forem with Facebook Oauth. We're only using the Omniauth Facebook provider, not Facebook's SDK. In addition: only the bare minimum amount of information is requested from Facebook, so no app review is required on their end (and we limit the amount of user data that we're asking for). Included is:
Authentication::Provider
subclassuser
Related Tickets & Documents
resolves github.com/forem/InternalProjectPl...
QA Instructions, Screenshots, Recordings
Added tests?
Added to documentation?
[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?
The main difference in our approach is that we have a "one to many" correspondence between a user and the preferred login method. Something we call
Identity
. Thus a user can have a Twitter identity, a GitHub identity and so on.