Add GitHub authentication.

Fixes: #1042
This commit is contained in:
Umair Khan
2016-07-20 16:33:27 +05:00
committed by Tim Abbott
parent d9b5f3089b
commit 80d62de40a
4 changed files with 70 additions and 1 deletions

View File

@@ -964,6 +964,14 @@ if POPULATE_PROFILE_VIA_LDAP and \
else:
POPULATE_PROFILE_VIA_LDAP = 'zproject.backends.ZulipLDAPAuthBackend' in AUTHENTICATION_BACKENDS or POPULATE_PROFILE_VIA_LDAP
########################################################################
# GITHUB AUTHENTICATION SETTINGS
########################################################################
SOCIAL_AUTH_GITHUB_KEY = get_secret('social_auth_github_key')
SOCIAL_AUTH_GITHUB_SECRET = get_secret('social_auth_github_secret')
SOCIAL_AUTH_LOGIN_ERROR_URL = '/login/'
SOCIAL_AUTH_GITHUB_SCOPE = ['email']
########################################################################
# EMAIL SETTINGS
########################################################################