Hello fellow selfhoster! on my debian server I use Caddy as reverse proxy, and would like to protect some services and files with a password. I would like, however, to be able to access some protected files programmatically, from a script. using Caddy’s built-in basic_auth works as intended, but I’d like to be able to use a login form instead of just a browser prompt. This is AFAIK not possible, so I’m looking for alternatives. Any idea?
I use https://github.com/nosduco/nforwardauth for this purpose
There is an example implementation for caddy in https://github.com/nosduco/nforwardauth/tree/main/examples/caddy-v2
or maybe voidauth could do it https://sh.itjust.works/post/42016490