aboutsummaryrefslogtreecommitdiffstats
path: root/src/laas_dashboard/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/laas_dashboard/settings.py')
-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