git.iko.soy/typeable/oauth2-proxy
on master help sign in
Remove check for >0 upstreams
0b11713Christian Svensson
options.go−3
@@ -121,9 +121,6 @@ func parseURL(to_parse string, urltype string, msgs []string) (*url.URL, []strin
121
121
122func (o *Options) Validate() error {
122func (o *Options) Validate() error {
123 msgs := make([]string, 0)
123 msgs := make([]string, 0)
124− if len(o.Upstreams) < 1 {
125− msgs = append(msgs, "missing setting: upstream")
126− }
127 if o.CookieSecret == "" {
124 if o.CookieSecret == "" {
128 msgs = append(msgs, "missing setting: cookie-secret")
125 msgs = append(msgs, "missing setting: cookie-secret")
129 }
126 }
options_test.go−1
@@ -35,7 +35,6 @@ func TestNewOptions(t *testing.T) {
35 assert.NotEqual(t, nil, err)
35 assert.NotEqual(t, nil, err)
36
36
37 expected := errorMsg([]string{
37 expected := errorMsg([]string{
38− "missing setting: upstream",
39 "missing setting: cookie-secret",
38 "missing setting: cookie-secret",
40 "missing setting: client-id",
39 "missing setting: client-id",
41 "missing setting: client-secret"})
40 "missing setting: client-secret"})