Skip to content

Commit 885eb17

Browse files
config: add Google OAuth settings and dependency
1 parent 22b124f commit 885eb17

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

app/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@
194194

195195
AUTHENTICATION_BACKENDS = [
196196
'ccs_auth.auth_backends.SSOAuthenticationBackend',
197+
'ccs_auth.auth_backends.GoogleAuthenticationBackend',
197198
'django.contrib.auth.backends.ModelBackend', # Default backend
198199
]
199200

201+
GOOGLE_CLIENT_ID = os.getenv('GOOGLE_CLIENT_ID')
202+
200203
AUTH_USER_MODEL = 'ccs_auth.CUser'
201204

202205
TOKEN_EXPIRY = 30

requirements.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ django-celery-beat
1111
django-celery-results
1212
django-cors-headers
1313
djangorestframework-simplejwt
14+
<<<<<<< Updated upstream
1415
gunicorn
1516
pytz
1617
django-hijack
17-
django-extensions
18+
django-extensions
19+
=======
20+
google-auth
21+
gunicorn
22+
>>>>>>> Stashed changes

0 commit comments

Comments
 (0)