You've already forked oauth2-proxy
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:
9
main.go
9
main.go
@ -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()
|
||||
|
Reference in New Issue
Block a user