From 004773f3ce6e2ae3b5ccb187c22a50bade2984eb Mon Sep 17 00:00:00 2001 From: karthikmurakonda Date: Sun, 11 Sep 2022 23:59:14 +0530 Subject: [PATCH] fixed google outh error --- CDC_Backend/APIs/constants.py | 5 ++++- CDC_Backend/CDC_Backend/settings.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CDC_Backend/APIs/constants.py b/CDC_Backend/APIs/constants.py index faa35d1..ed40d44 100644 --- a/CDC_Backend/APIs/constants.py +++ b/CDC_Backend/APIs/constants.py @@ -1,3 +1,6 @@ +import os + + BRANCH_CHOICES = [ ["CSE", "CSE"], ["EE", "EE"], @@ -36,7 +39,7 @@ TOTAL_BRANCHES = 4 # Total No of Branches TOTAL_BATCHES = 4 # Total No of Batches # To be Configured Properly -CLIENT_ID = "956830229554-290mirc16pdhd5j7ph7v7ukibo4t1qcp.apps.googleusercontent.com" # Google Login Client ID +CLIENT_ID = os.environ.get("GOOGLE_OAUTH_CLIENT_ID") # "client_id" # To be Configured Properly PLACEMENT_OPENING_URL = "http://localhost:3000/student/dashboard/placements/{id}" # On frontend, this is the URL to be opened diff --git a/CDC_Backend/CDC_Backend/settings.py b/CDC_Backend/CDC_Backend/settings.py index 4211796..6eda075 100644 --- a/CDC_Backend/CDC_Backend/settings.py +++ b/CDC_Backend/CDC_Backend/settings.py @@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'e_i2g3z!y4+p3dwm%k9k=zmsot@aya-0$mmetgxz4mp#8_oy#*' +SECRET_KEY = os.getenv("GOOGLE_OAUTH_SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True