Add oidc capability

This commit is contained in:
Maximilian Friedersdorff 2024-06-28 15:04:51 +01:00
parent 935e57013d
commit 21bd04c879
8 changed files with 53 additions and 18 deletions

View file

@ -39,6 +39,7 @@ INSTALLED_APPS = [
"django.contrib.staticfiles",
"django.contrib.humanize",
"django_bootstrap5",
"oauth2_authcodeflow",
"reinheit.apps.brew",
"reinheit.apps.styles",
"reinheit.apps.ingredients",
@ -127,3 +128,8 @@ STATICFILES_DIRS = [BASE_DIR / "reinheit" / "static"]
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
AUTHENTICATION_BACKENDS = [
"oauth2_authcodeflow.auth.AuthenticationBackend",
"django.contrib.auth.backends.ModelBackend",
]