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
clarify required email validation settings
This commit is contained in:
@ -103,6 +103,9 @@ func (o *Options) Validate() error {
|
||||
if o.ClientSecret == "" {
|
||||
msgs = append(msgs, "missing setting: client-secret")
|
||||
}
|
||||
if o.AuthenticatedEmailsFile == "" && len(o.EmailDomains) == 0 && o.HtpasswdFile == "" {
|
||||
msgs = append(msgs, "missing setting for email validation: email-domain or authenticated-emails-file required.\n use email-domain=* to authorize all email addresses")
|
||||
}
|
||||
|
||||
o.redirectUrl, msgs = parseUrl(o.RedirectUrl, "redirect", msgs)
|
||||
|
||||
|
Reference in New Issue
Block a user