Skip to content

Commit

Permalink
hswro->hskrk cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor committed Nov 18, 2023
1 parent 4317e75 commit 2dc266f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
2 changes: 1 addition & 1 deletion auth/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.shortcuts import redirect

def auth_redirect(request):
return redirect('social:begin', 'spejstore')
return redirect('social:begin', 'hswro')
4 changes: 2 additions & 2 deletions spejstore/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dc266f

Please sign in to comment.