Implement support for Oauth2 based login integrations

This creates Google, Github, Microsoft and Facebook login integrations.
Other providers can also be added if needed. Accounts still need to be
created in the community auth system, and will be automatically created
on first login, when the user also gets to pick a username. Once an
account exists, it will be matched on email address from the external
systems.

No methods are enabled by default, as they all require encryption keys
and identities configured in local_settings.py.

Review by Stephen Frost, Jonathan Katz and Daniel Gustafsson.
This commit is contained in:
Magnus Hagander
2017-08-28 16:28:03 +02:00
parent 827cabb126
commit 9a77d1747a
13 changed files with 362 additions and 17 deletions

View File

@ -172,6 +172,7 @@ VARNISH_PURGERS=() # Extra servers that can
LIST_ACTIVATORS=() # Servers that can activate lists
ARCHIVES_SEARCH_SERVER="archives.postgresql.org" # Where to post REST request for archives search
FRONTEND_SMTP_RELAY="magus.postgresql.org" # Where to relay user generated email
OAUTH={} # OAuth providers and keys
# Load local settings overrides
from settings_local import *