aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/settings.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-19 09:35:51 -0500
committerFrederick Muriuki Muriithi2024-07-31 09:30:22 -0500
commit6510dd5175b84c9780dda2fe0d8869efaeb2404b (patch)
tree7f17e90fa9ff4bb9b4ad3a7146f0489119132b93 /gn_auth/settings.py
parentbb66f79d675ad046acdc4e6853416bf7e948d6dc (diff)
downloadgn-auth-6510dd5175b84c9780dda2fe0d8869efaeb2404b.tar.gz
Enable external configuration of session expiry period
Enable passing in the number of minutes that a session can be valid for. This enables the length of time that the session can last to be configurable rather than hard-coded.
Diffstat (limited to 'gn_auth/settings.py')
-rw-r--r--gn_auth/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/settings.py b/gn_auth/settings.py
index 2cac390..e9bfe23 100644
--- a/gn_auth/settings.py
+++ b/gn_auth/settings.py
@@ -8,6 +8,9 @@ LOGLEVEL = "WARNING"
SECRET_KEY = ""
GN_AUTH_SECRETS = None # Set this to path to secrets file
+# Session settings
+SESSION_EXPIRY_MINUTES = 10
+
# Database settings
SQL_URI = "mysql://webqtlout:webqtlout@localhost/db_webqtl"
AUTH_DB = f"{os.environ.get('HOME')}/genenetwork/gn3_files/db/auth.db"