Skip to content

Commit

Permalink
herp derp
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Apr 26, 2024
1 parent 2982726 commit a1fa9bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def auth_redirect(request):
return redirect("social:begin", "hswaw")
return redirect("social:begin", "oidc")
6 changes: 5 additions & 1 deletion spejstore/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,13 @@ def env(name, default=None):
},
]

SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = 'https://auth.apps.hskrk.pl/application/o/spejstore/' # endpoint without /.well-known/openid-configuration
SOCIAL_AUTH_OIDC_KEY = env("CLIENT_ID")
SOCIAL_AUTH_OIDC_SECRET = env("SECRET")


AUTHENTICATION_BACKENDS = (
"auth.backend.HSWawOAuth2",
"social_core.backends.open_id_connect.OpenIdConnectAuth",
"django.contrib.auth.backends.ModelBackend",
)

Expand Down

0 comments on commit a1fa9bb

Please sign in to comment.