auth: add PAM support

Handy for small local installations.

Disabled by default because it adds a dependency on the PAM
library.
This commit is contained in:
Simon Ser 2022-09-10 17:13:20 +00:00 committed by Conrad Hoffmann
parent 228384530e
commit 10587f425b
6 changed files with 99 additions and 1 deletions

5
go.mod
View file

@ -11,4 +11,7 @@ require (
github.com/go-chi/chi/v5 v5.0.7
)
require golang.org/x/text v0.3.7 // indirect
require (
github.com/msteinert/pam v1.0.0 // indirect
golang.org/x/text v0.3.7 // indirect
)