Page MenuHomeSoftware Heritage
Paste P1036

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on May 5 2021, 3:07 PM.
diff --git a/swh/web/settings/common.py b/swh/web/settings/common.py
index d61949b6..c28bbcce 100644
--- a/swh/web/settings/common.py
+++ b/swh/web/settings/common.py
@@ -58,7 +58,7 @@
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
- "swh.auth.django.middlewares.OIDCSessionExpiredMiddleware",
+ #"swh.auth.django.middlewares.OIDCSessionExpiredMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"swh.web.common.middlewares.ThrottlingHeadersMiddleware",
@@ -167,7 +167,7 @@
"DEFAULT_THROTTLE_RATES": throttle_rates,
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.SessionAuthentication",
- "swh.auth.django.backends.OIDCBearerTokenAuthentication",
+ #"swh.auth.django.backends.OIDCBearerTokenAuthentication",
],
"EXCEPTION_HANDLER": "swh.web.api.apiresponse.error_response_handler",
}
@@ -279,7 +279,7 @@
AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",
- "swh.auth.django.backends.OIDCAuthorizationCodePKCEBackend",
+ #"swh.auth.django.backends.OIDCAuthorizationCodePKCEBackend",
]
SWH_AUTH_SERVER_URL = swh_web_config["keycloak"]["server_url"]