Add oidc capability
This commit is contained in:
parent
935e57013d
commit
21bd04c879
8 changed files with 53 additions and 18 deletions
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ from django.contrib import admin
|
|||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("brews/", include(("reinheit.apps.brew.urls", "brew"), namespace="brews")),
|
||||
path("oidc/", include("oauth2_authcodeflow.urls")),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue