File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ func (o *Options) Validate() error {
157
157
if len (o .EmailDomains ) == 0 {
158
158
msgs = append (msgs , "missing setting for email validation: email-domain required.\n use email-domain=* to authorize all email addresses" )
159
159
}
160
+ if len (o .ProxyRootDomains ) == 0 {
161
+ msgs = append (msgs , "missing setting: proxy-root-domain" )
162
+ }
160
163
if o .ProxyClientID == "" {
161
164
msgs = append (msgs , "missing setting: proxy-client-id" )
162
165
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ func testOptions() *Options {
18
18
o .EmailDomains = []string {"*" }
19
19
o .ProxyClientID = "abcdef"
20
20
o .ProxyClientSecret = "testtest"
21
+ o .ProxyRootDomains = []string {"*" }
21
22
o .StatsdHost = "statsdhost"
22
23
o .StatsdPort = 12344
23
24
o .Host = "/"
@@ -43,6 +44,7 @@ func TestNewOptions(t *testing.T) {
43
44
"missing setting: cookie-secret" ,
44
45
"missing setting: client-id" ,
45
46
"missing setting: client-secret" ,
47
+ "missing setting: proxy-root-domain" ,
46
48
"missing setting: proxy-client-id" ,
47
49
"missing setting: proxy-client-secret" ,
48
50
"missing setting: required-host-header" ,
You can’t perform that action at this time.
0 commit comments