git.iko.soy/typeable/oauth2-proxy
on master help sign in
Run gofmt over source.
commit5201f26ffc23c966e8aa36161002c6307dce54fe authorTom Taylor <tom@tomtaylor.co.uk> dateMon 19 Jan 2015, 16:10 (12 years ago) parent9d264f3
2 files changed+5−5
oauthproxy.go+2−2 options.go+3−3
oauthproxy.go+2−2
@@ -10,9 +10,9 @@ import (
1010 "net/http"
1111 "net/http/httputil"
1212 "net/url"
13+ "regexp"
1314 "strings"
1415 "time"
15− "regexp"
1616
1717 "github.com/bitly/go-simplejson"
1818)
@@ -84,7 +84,7 @@ func NewOauthProxy(opts *Options, validator func(string) bool) *OauthProxy {
8484 serveMux: serveMux,
8585 redirectUrl: redirectUrl,
8686 skipAuthRegex: opts.SkipAuthRegex,
87− compiledRegex: opts.CompiledRegex,
87+ compiledRegex: opts.CompiledRegex,
8888 PassBasicAuth: opts.PassBasicAuth,
8989 }
9090}
options.go+3−3
@@ -4,8 +4,8 @@ import (
44 "errors"
55 "fmt"
66 "net/url"
7− "time"
87 "regexp"
8+ "time"
99)
1010
1111// Configuration Options that can be set by Command Line Flag, or Config File
@@ -27,8 +27,8 @@ type Options struct {
2727 SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
2828
2929 // internal values that are set after config validation
30− redirectUrl *url.URL
31− proxyUrls []*url.URL
30+ redirectUrl *url.URL
31+ proxyUrls []*url.URL
3232 CompiledRegex []*regexp.Regexp
3333}
3434