Re: [PATCH 1/2] pgarchives: Add missing authentication backend to settings.py - Mailing list pgsql-www

From Magnus Hagander
Subject Re: [PATCH 1/2] pgarchives: Add missing authentication backend to settings.py
Date
Msg-id CABUevExckBnyw1cUvioswExNrR8cnyM_U12HnWMbvcGTWxYVdg@mail.gmail.com
Whole thread Raw
In response to [PATCH 1/2] pgarchives: Add missing authentication backend to settings.py  (Célestin Matte <celestin.matte@cmatte.me>)
List pgsql-www
On Thu, Oct 28, 2021 at 7:42 PM Célestin Matte <celestin.matte@cmatte.me> wrote:
>
> Hello,
>
> Authentication when using private archives in pgarchives is broken with current settings.py file.
> This first patch add a missing backend in settings.py, without which sessions aren't registered and users get
redirectedindefinitely. 
> In the second patch of this series, I add missing parameters for configuring PGAUTH, copying the ones from pglister.

Yeah, technically it's configured to use django auth but then we
override that elsewhere.  It might be worthwhile to remove those
hardcoded redirects and make it possible to use the system with the
built in django auth. But until someone does that, I agree that
putting a working value into AUTHENTICATION_BACKEND is definitely
better.

And also the example file that was in your patch #2.

Both patches squashed and applied. Thanks!

--
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/



pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [PATCH] pgweb: Add ARCHIVES_FRONT_ADDRESS to allow configuration of archives
Next
From: Magnus Hagander
Date:
Subject: Re: [PATCHES] pglister: make organization name generic