From 655957935a2c2daec3f5f1640754915d1bf26d6f Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sun, 2 Jan 2022 18:31:34 +0100 Subject: pof of oauth2 --- manager/settings.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'manager') 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') -- cgit v1.2.1