From 2dc266fc4f26b40abd251c18f7f6acb1e6f8889a Mon Sep 17 00:00:00 2001 From: Wiktor Date: Sat, 18 Nov 2023 15:14:35 +0100 Subject: [PATCH] hswro->hskrk cd --- auth/backend.py | 2 +- auth/views.py | 2 +- spejstore/settings.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/auth/backend.py b/auth/backend.py index d277e1b..8a446e5 100644 --- a/auth/backend.py +++ b/auth/backend.py @@ -3,7 +3,7 @@ class HSWawOAuth2(BaseOAuth2): """Hackerspace OAuth authentication backend""" - name = 'spejstore' + name = 'hswro' ID_KEY = 'username' AUTHORIZATION_URL = 'https://auth.apps.hskrk.pl/application/o/authorize/' ACCESS_TOKEN_URL = 'http://authentik:9000/application/o/token/' diff --git a/auth/views.py b/auth/views.py index c1215e0..d746b69 100644 --- a/auth/views.py +++ b/auth/views.py @@ -1,4 +1,4 @@ from django.shortcuts import redirect def auth_redirect(request): - return redirect('social:begin', 'spejstore') + return redirect('social:begin', 'hswro') diff --git a/spejstore/settings.py b/spejstore/settings.py index 6e50055..5302545 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -184,8 +184,8 @@ def env(name, default=None): ] } -SOCIAL_AUTH_SPEJSTORE_KEY = env('SPEJSTORE_CLIENT_ID') -SOCIAL_AUTH_SPEJSTORE_SECRET = env('SPEJSTORE_SECRET') +SOCIAL_AUTH_HSWRO_KEY = env('CLIENT_ID') +SOCIAL_AUTH_HSWRO_SECRET = env('SECRET') SOCIAL_AUTH_REDIRECT_IS_HTTPS = True SOCIAL_AUTH_POSTGRES_JSONFIELD = True