From 0e8a6ba23368925789ee0115c9b5095bbd22778a Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 18 Jun 2019 16:55:47 +0200 Subject: [PATCH] Allow authentication urls under /list/_auth/ This allows the authentication to work even when used behind a varnish proxy that eats all other URLs than those directly to the archives. To make use of this, LOGIN_URL must also be changed to point to /list/_auth/accounts/login/, and the entry in the community authentication system must point to /list/_auth/auth_receive/. --- django/archives/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/archives/urls.py b/django/archives/urls.py index 67dd3e1..cc8732e 100644 --- a/django/archives/urls.py +++ b/django/archives/urls.py @@ -69,7 +69,7 @@ if settings.ALLOW_RESEND or not settings.PUBLIC_ARCHIVES: urlpatterns += [ # For non-public archives, support login - url(r'^accounts/login/?$', archives.auth.login), - url(r'^accounts/logout/?$', archives.auth.logout), - url(r'^auth_receive/$', archives.auth.auth_receive), + url(r'^(?:list/_auth/)?accounts/login/?$', archives.auth.login), + url(r'^(?:list/_auth/)?accounts/logout/?$', archives.auth.logout), + url(r'^(?:list/_auth/)?auth_receive/$', archives.auth.auth_receive), ] -- 2.39.5