aboutsummaryrefslogtreecommitdiffstats
path: root/src/laas_dashboard/settings.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-06-23 21:18:19 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-06-23 21:18:19 +0000
commit682f7ebb6d0be5ddd8e4c699e1f87fc20a3fe1e3 (patch)
treeacf41c2c41ccb053f7cbf4ff9d814419e9fd9edf /src/laas_dashboard/settings.py
parent2b15204ca0f8d9a51c3b4963db904d797ebb8186 (diff)
parent57d1635845df4a8b045805b66e8fbec5010ce97f (diff)
Merge "Revert "Enable OpenID""
Diffstat (limited to 'src/laas_dashboard/settings.py')
-rw-r--r--src/laas_dashboard/settings.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/laas_dashboard/settings.py b/src/laas_dashboard/settings.py
index 0b23960..62fc9ec 100644
--- a/src/laas_dashboard/settings.py
+++ b/src/laas_dashboard/settings.py
@@ -30,7 +30,6 @@ INSTALLED_APPS = [
'api',
'django.contrib.admin',
'django.contrib.auth',
- 'mozilla_django_oidc', # needs to be defined after auth
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
@@ -38,7 +37,7 @@ INSTALLED_APPS = [
'django.contrib.humanize',
'bootstrap4',
'rest_framework',
- 'rest_framework.authtoken',
+ 'rest_framework.authtoken'
]
MIDDLEWARE = [
@@ -52,20 +51,6 @@ MIDDLEWARE = [
'account.middleware.TimezoneMiddleware',
]
-AUTHENTICATION_BACKENDS = ['account.views.MyOIDCAB']
-
-
-# OpenID Authentications
-OIDC_RP_CLIENT_ID = os.environ['OIDC_CLIENT_ID']
-OIDC_RP_CLIENT_SECRET = os.environ['OIDC_CLIENT_SECRET']
-
-OIDC_OP_AUTHORIZATION_ENDPOINT = os.environ['OIDC_AUTHORIZATION_ENDPOINT']
-OIDC_OP_TOKEN_ENDPOINT = os.environ['OIDC_TOKEN_ENDPOINT']
-OIDC_OP_USER_ENDPOINT = os.environ['OIDC_USER_ENDPOINT']
-
-LOGIN_REDIRECT_URL = os.environ['DASHBOARD_URL']
-LOGOUT_REDIRECT_URL = os.environ['DASHBOARD_URL']
-
ROOT_URLCONF = 'laas_dashboard.urls'
TEMPLATE_OVERRIDE = os.environ.get("TEMPLATE_OVERRIDE_DIR", "") # the user's custom template dir