aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-12-28 05:57:13 +0300
committerFrederick Muriuki Muriithi2022-12-29 03:13:31 +0300
commitbc709d1aaf1d4ce752394be9d575414de0c66307 (patch)
tree5c80ca85254dcc7656be97fa41bf247e82991867 /etc
parent0fa16d7ccea97cec4864983291183249da994b4c (diff)
downloadgenenetwork2-bc709d1aaf1d4ce752394be9d575414de0c66307.tar.gz
Implement "login" via OAuth2
Diffstat (limited to 'etc')
-rw-r--r--etc/default_settings.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/default_settings.py b/etc/default_settings.py
index 6d7ac063..38c0a110 100644
--- a/etc/default_settings.py
+++ b/etc/default_settings.py
@@ -27,6 +27,8 @@ import sys
with open("../etc/VERSION", "r") as version_file:
GN_VERSION = version_file.read()
+SECRET_KEY = "pleaseChangeThisToSomethingSecretInAnExternalConfigFileOrEnvvars"
+
# Redis
REDIS_URL = "redis://:@localhost:6379/0"
@@ -115,3 +117,10 @@ JS_GN_PATH = os.environ['HOME'] + "/genenetwork/javascript"
# GEMMA_COMMAND = str.strip(os.popen("which gemma").read())
REAPER_COMMAND = os.environ['GN2_PROFILE'] + "/bin/qtlreaper"
# GEMMA_WRAPPER_COMMAND = str.strip(os.popen("which gemma-wrapper").read())
+
+OAUTH2_CLIENT_ID="0bbfca82-d73f-4bd4-a140-5ae7abb4a64d"
+OAUTH2_CLIENT_SECRET="yadabadaboo"
+
+SESSION_TYPE = "redis"
+SESSION_PERMANENT = True
+SESSION_USE_SIGNER = True