aboutsummaryrefslogtreecommitdiffstats
path: root/manager
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--manager/settings.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/manager/settings.py b/manager/settings.py
index fae2385..358b0b7 100644
--- a/manager/settings.py
+++ b/manager/settings.py
@@ -57,6 +57,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ "django_extensions",
]
MIDDLEWARE = [
@@ -69,6 +70,19 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
+AUTHLIB_OAUTH_CLIENTS = {
+ 'hitobito': {
+ 'client_id': 'uZOLGZDioF0FBm5FlkSYkiCJ0nsNErZmLgCDMbWiHYY',
+ 'client_secret': '-Vv4El7-UmiSoET_tvgqeNnJzrSN_76b9I_zKFZFKpo',
+ 'access_token_url': 'https://demo.hitobito.com/oauth/token',
+ 'access_token_params': None,
+ 'refresh_token_url': None,
+ 'authorize_url': 'https://demo.hitobito.com/oauth/authorize',
+ 'authorize_params': None,
+ 'client_kwargs': {"grant_type": "authorization_code", "scope": "with_roles"},
+ }
+}
+
if DEBUG:
INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')