aboutsummaryrefslogtreecommitdiffstats
path: root/src/laas_dashboard
diff options
context:
space:
mode:
authorAdam Hassick <ahassick@iol.unh.edu>2021-01-04 20:47:35 +0000
committerAdam Hassick <ahassick@iol.unh.edu>2021-01-04 16:10:08 -0500
commitbf822708949ad2e57b3966ad2bf485588fe4b29d (patch)
treeeadee2b772d9c781644e2ed7bb424c6b016d8b97 /src/laas_dashboard
parent5d6508e277e2c373d8e2cde320a2537f42c8189d (diff)
Fix issue where users are redirected to Jira login in LFID mode in certain cases
Change-Id: If8a82d3a2628a7f55f902d321388be2419524c8b Signed-off-by: Adam Hassick <ahassick@iol.unh.edu> Change-Id: Ieb9de968514b88a8c450967466d06c9860427d83
Diffstat (limited to 'src/laas_dashboard')
-rw-r--r--src/laas_dashboard/settings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/laas_dashboard/settings.py b/src/laas_dashboard/settings.py
index a32b1c5..8f43a3d 100644
--- a/src/laas_dashboard/settings.py
+++ b/src/laas_dashboard/settings.py
@@ -53,7 +53,9 @@ MIDDLEWARE = [
'account.middleware.TimezoneMiddleware',
]
-if os.environ['AUTH_SETTING'] == 'LFID':
+AUTH_SETTING = os.environ.get('AUTH_SETTING', 'JIRA')
+
+if AUTH_SETTING == 'LFID':
AUTHENTICATION_BACKENDS = ['account.views.MyOIDCAB']
# OpenID Authentications