This commit is contained in:
2025-05-20 18:07:25 +02:00
parent 27526c2d74
commit 5a432ae1ef
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -26,6 +26,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django_htmx',
'rest_framework'
]
MIDDLEWARE = [
@@ -85,6 +86,13 @@ AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
)
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'mozilla_django_oidc.contrib.drf.OIDCAuthentication',
'rest_framework.authentication.SessionAuthentication',
],
}
OIDC_RP_CLIENT_ID = os.getenv('OIDC_RP_CLIENT_ID')
OIDC_RP_CLIENT_SECRET = os.getenv('OIDC_RP_CLIENT_SECRET')
OIDC_OP_AUTHORIZATION_ENDPOINT = os.getenv('OIDC_OP_AUTHORIZATION_ENDPOINT')
+4
View File
@@ -5,3 +5,7 @@ python-dotenv
mozilla-django-oidc
django-htmx
celery
djangorestframework
markdown
PyYAML
Pygments