@@ -7,7 +7,7 @@ import (
77 "time"
88
99 oidc "github.com/coreos/go-oidc"
10− "github.com/oauth2-proxy/oauth2-proxy/pkg/apis/logging"
10+ ipapi "github.com/oauth2-proxy/oauth2-proxy/pkg/apis/ip"
1111 sessionsapi "github.com/oauth2-proxy/oauth2-proxy/pkg/apis/sessions"
1212 "github.com/oauth2-proxy/oauth2-proxy/pkg/logger"
1313 "github.com/oauth2-proxy/oauth2-proxy/providers"
@@ -132,30 +132,30 @@ type Options struct {
132132 signatureData *SignatureData
133133 oidcVerifier *oidc.IDTokenVerifier
134134 jwtBearerVerifiers []*oidc.IDTokenVerifier
135− realClientIPParser logging.RealClientIPParser
135+ realClientIPParser ipapi.RealClientIPParser
136136}
137137
138138// Options for Getting internal values
139−func (o *Options) GetRedirectURL() *url.URL { return o.redirectURL }
140−func (o *Options) GetProxyURLs() []*url.URL { return o.proxyURLs }
141−func (o *Options) GetCompiledRegex() []*regexp.Regexp { return o.compiledRegex }
142−func (o *Options) GetProvider() providers.Provider { return o.provider }
143−func (o *Options) GetSessionStore() sessionsapi.SessionStore { return o.sessionStore }
144−func (o *Options) GetSignatureData() *SignatureData { return o.signatureData }
145−func (o *Options) GetOIDCVerifier() *oidc.IDTokenVerifier { return o.oidcVerifier }
146−func (o *Options) GetJWTBearerVerifiers() []*oidc.IDTokenVerifier { return o.jwtBearerVerifiers }
147−func (o *Options) GetRealClientIPParser() logging.RealClientIPParser { return o.realClientIPParser }
139+func (o *Options) GetRedirectURL() *url.URL { return o.redirectURL }
140+func (o *Options) GetProxyURLs() []*url.URL { return o.proxyURLs }
141+func (o *Options) GetCompiledRegex() []*regexp.Regexp { return o.compiledRegex }
142+func (o *Options) GetProvider() providers.Provider { return o.provider }
143+func (o *Options) GetSessionStore() sessionsapi.SessionStore { return o.sessionStore }
144+func (o *Options) GetSignatureData() *SignatureData { return o.signatureData }
145+func (o *Options) GetOIDCVerifier() *oidc.IDTokenVerifier { return o.oidcVerifier }
146+func (o *Options) GetJWTBearerVerifiers() []*oidc.IDTokenVerifier { return o.jwtBearerVerifiers }
147+func (o *Options) GetRealClientIPParser() ipapi.RealClientIPParser { return o.realClientIPParser }
148148
149149// Options for Setting internal values
150−func (o *Options) SetRedirectURL(s *url.URL) { o.redirectURL = s }
151−func (o *Options) SetProxyURLs(s []*url.URL) { o.proxyURLs = s }
152−func (o *Options) SetCompiledRegex(s []*regexp.Regexp) { o.compiledRegex = s }
153−func (o *Options) SetProvider(s providers.Provider) { o.provider = s }
154−func (o *Options) SetSessionStore(s sessionsapi.SessionStore) { o.sessionStore = s }
155−func (o *Options) SetSignatureData(s *SignatureData) { o.signatureData = s }
156−func (o *Options) SetOIDCVerifier(s *oidc.IDTokenVerifier) { o.oidcVerifier = s }
157−func (o *Options) SetJWTBearerVerifiers(s []*oidc.IDTokenVerifier) { o.jwtBearerVerifiers = s }
158−func (o *Options) SetRealClientIPParser(s logging.RealClientIPParser) { o.realClientIPParser = s }
150+func (o *Options) SetRedirectURL(s *url.URL) { o.redirectURL = s }
151+func (o *Options) SetProxyURLs(s []*url.URL) { o.proxyURLs = s }
152+func (o *Options) SetCompiledRegex(s []*regexp.Regexp) { o.compiledRegex = s }
153+func (o *Options) SetProvider(s providers.Provider) { o.provider = s }
154+func (o *Options) SetSessionStore(s sessionsapi.SessionStore) { o.sessionStore = s }
155+func (o *Options) SetSignatureData(s *SignatureData) { o.signatureData = s }
156+func (o *Options) SetOIDCVerifier(s *oidc.IDTokenVerifier) { o.oidcVerifier = s }
157+func (o *Options) SetJWTBearerVerifiers(s []*oidc.IDTokenVerifier) { o.jwtBearerVerifiers = s }
158+func (o *Options) SetRealClientIPParser(s ipapi.RealClientIPParser) { o.realClientIPParser = s }
159159
160160// NewOptions constructs a new Options with defaulted values
161161func NewOptions() *Options {