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

Use display-htpasswd-form flag (#778)

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
ofir-amir
2020-11-08 20:48:01 +02:00
committed by GitHub
parent 47710d0094
commit cc6532a282
2 changed files with 3 additions and 1 deletions

View File

@ -222,7 +222,7 @@ func NewOAuthProxy(opts *options.Options, validator func(string) bool) (*OAuthPr
AllowedGroups: opts.AllowedGroups,
basicAuthValidator: basicAuthValidator,
displayHtpasswdForm: basicAuthValidator != nil,
displayHtpasswdForm: basicAuthValidator != nil && opts.DisplayHtpasswdForm,
sessionChain: sessionChain,
headersChain: headersChain,
preAuthChain: preAuthChain,