1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-15 00:15:00 +02:00

Integrate HTPasswdValidator into OAuth2 Proxy

This commit is contained in:
Joel Speed
2020-07-18 10:18:47 +01:00
parent 7d8ee61254
commit 2981a5ed1a
4 changed files with 21 additions and 130 deletions

View File

@ -66,15 +66,6 @@ func main() {
}
}
if opts.HtpasswdFile != "" {
logger.Printf("using htpasswd file %s", opts.HtpasswdFile)
oauthproxy.HtpasswdFile, err = NewHtpasswdFromFile(opts.HtpasswdFile)
oauthproxy.DisplayHtpasswdForm = opts.DisplayHtpasswdForm
if err != nil {
logger.Fatalf("FATAL: unable to open %s %s", opts.HtpasswdFile, err)
}
}
rand.Seed(time.Now().UnixNano())
chain := alice.New()