Add htpasswd-style static file auth module

Can be used via `-auth.url=file://`. Only supports bcrypt password
hashes ($2y). Use e.g. `htpasswd -c -BC 14 <filename> <user>` to create
a file. Documentation forthcoming.
This commit is contained in:
Conrad Hoffmann 2024-02-05 17:23:11 +01:00
parent 536f83fa61
commit a87520cb0f
4 changed files with 101 additions and 1 deletions

1
go.mod
View file

@ -11,6 +11,7 @@ require (
github.com/go-chi/chi/v5 v5.0.10
github.com/msteinert/pam v1.2.0
github.com/rs/zerolog v1.31.0
golang.org/x/crypto v0.18.0
)
require (