REFACTOR: Migrate FacebookAuthenticator to use ManagedAuthenticator

Changes to functionality
  - Removed syncing of user metadata including gender, location etc.
    These are no longer available to standard Facebook applications.
  - Removed the remote 'revoke' functionality. No other providers have
    it, and it does not appear to be standard practice in other apps.
  - The 'facebook_no_email' event is no longer logged. The system can
    cope fine with a missing email address.

Data is migrated to the new user_associated_accounts table.
facebook_user_infos can be dropped once we are confident the data has
been migrated successfully.
This commit is contained in:
David Taylor
2018-11-28 15:49:24 +00:00
parent 534e1b1b18
commit 208005f9c9
11 changed files with 70 additions and 271 deletions

View File

@@ -28,7 +28,7 @@ class UserHistory < ActiveRecord::Base
notified_about_dominating_topic: 9,
suspend_user: 10,
unsuspend_user: 11,
facebook_no_email: 12,
facebook_no_email: 12, # not used anymore
grant_badge: 13,
revoke_badge: 14,
auto_trust_level_change: 15,