@@ -36,9 +36,9 @@ var _ = Describe("Legacy Options", func() {
3636 Path: "/baz",
3737 URI: "http://foo.bar/baz",
3838 FlushInterval: &flushInterval,
39− InsecureSkipTLSVerify: ptr.Ptr(true),
40− PassHostHeader: ptr.Ptr(true),
41− ProxyWebSockets: ptr.Ptr(true),
39+ InsecureSkipTLSVerify: ptr.To(true),
40+ PassHostHeader: ptr.To(true),
41+ ProxyWebSockets: ptr.To(true),
4242 Timeout: &timeout,
4343 DisableKeepAlives: &legacyOpts.LegacyUpstreams.DisableKeepAlives,
4444 },
@@ -47,9 +47,9 @@ var _ = Describe("Legacy Options", func() {
4747 Path: "/bar",
4848 URI: "file:///var/lib/website",
4949 FlushInterval: &flushInterval,
50− InsecureSkipTLSVerify: ptr.Ptr(true),
51− PassHostHeader: ptr.Ptr(true),
52− ProxyWebSockets: ptr.Ptr(true),
50+ InsecureSkipTLSVerify: ptr.To(true),
51+ PassHostHeader: ptr.To(true),
52+ ProxyWebSockets: ptr.To(true),
5353 Timeout: &timeout,
5454 DisableKeepAlives: &legacyOpts.LegacyUpstreams.DisableKeepAlives,
5555 },
@@ -57,10 +57,10 @@ var _ = Describe("Legacy Options", func() {
5757 ID: "static://204",
5858 Path: "/",
5959 URI: "",
60− Static: ptr.Ptr(true),
60+ Static: ptr.To(true),
6161 StaticCode: &staticCode,
6262 FlushInterval: nil,
63− InsecureSkipTLSVerify: ptr.Ptr(false),
63+ InsecureSkipTLSVerify: ptr.To(false),
6464 PassHostHeader: nil,
6565 ProxyWebSockets: nil,
6666 Timeout: nil,
@@ -72,7 +72,7 @@ var _ = Describe("Legacy Options", func() {
7272 opts.InjectRequestHeaders = []Header{
7373 {
7474 Name: "X-Forwarded-Groups",
75− PreserveRequestValue: ptr.Ptr(false),
75+ PreserveRequestValue: ptr.To(false),
7676 Values: []HeaderValue{
7777 {
7878 ClaimSource: &ClaimSource{
@@ -83,7 +83,7 @@ var _ = Describe("Legacy Options", func() {
8383 },
8484 {
8585 Name: "X-Forwarded-User",
86− PreserveRequestValue: ptr.Ptr(false),
86+ PreserveRequestValue: ptr.To(false),
8787 Values: []HeaderValue{
8888 {
8989 ClaimSource: &ClaimSource{
@@ -94,7 +94,7 @@ var _ = Describe("Legacy Options", func() {
9494 },
9595 {
9696 Name: "X-Forwarded-Email",
97− PreserveRequestValue: ptr.Ptr(false),
97+ PreserveRequestValue: ptr.To(false),
9898 Values: []HeaderValue{
9999 {
100100 ClaimSource: &ClaimSource{
@@ -105,7 +105,7 @@ var _ = Describe("Legacy Options", func() {
105105 },
106106 {
107107 Name: "X-Forwarded-Preferred-Username",
108− PreserveRequestValue: ptr.Ptr(false),
108+ PreserveRequestValue: ptr.To(false),
109109 Values: []HeaderValue{
110110 {
111111 ClaimSource: &ClaimSource{
@@ -126,8 +126,8 @@ var _ = Describe("Legacy Options", func() {
126126 opts.Providers[0].ClientID = "oauth-proxy"
127127 opts.Providers[0].OIDCConfig.AudienceClaims = []string{"aud"}
128128 opts.Providers[0].OIDCConfig.ExtraAudiences = []string{}
129− opts.Providers[0].OIDCConfig.InsecureSkipNonce = ptr.Ptr(true)
130− opts.Providers[0].OIDCConfig.InsecureSkipIssuerVerification = ptr.Ptr(false)
129+ opts.Providers[0].OIDCConfig.InsecureSkipNonce = ptr.To(true)
130+ opts.Providers[0].OIDCConfig.InsecureSkipIssuerVerification = ptr.To(false)
131131 opts.Providers[0].LoginURLParameters = []LoginURLParameter{
132132 {Name: "approval_prompt", Default: []string{"force"}},
133133 }
@@ -202,14 +202,14 @@ var _ = Describe("Legacy Options", func() {
202202 ID: validStatic,
203203 Path: "/",
204204 URI: "",
205− Static: ptr.Ptr(true),
205+ Static: ptr.To(true),
206206 StaticCode: &validStaticCode,
207− InsecureSkipTLSVerify: ptr.Ptr(false),
207+ InsecureSkipTLSVerify: ptr.To(false),
208208 PassHostHeader: nil,
209209 ProxyWebSockets: nil,
210210 FlushInterval: nil,
211211 Timeout: nil,
212− DisableKeepAlives: ptr.Ptr(false),
212+ DisableKeepAlives: ptr.To(false),
213213 }
214214
215215 invalidStatic := "static://abc"
@@ -218,14 +218,14 @@ var _ = Describe("Legacy Options", func() {
218218 ID: invalidStatic,
219219 Path: "/",
220220 URI: "",
221− Static: ptr.Ptr(true),
221+ Static: ptr.To(true),
222222 StaticCode: &invalidStaticCode,
223− InsecureSkipTLSVerify: ptr.Ptr(false),
223+ InsecureSkipTLSVerify: ptr.To(false),
224224 PassHostHeader: nil,
225225 ProxyWebSockets: nil,
226226 FlushInterval: nil,
227227 Timeout: nil,
228− DisableKeepAlives: ptr.Ptr(false),
228+ DisableKeepAlives: ptr.To(false),
229229 }
230230
231231 invalidHTTP := ":foo"
@@ -318,7 +318,7 @@ var _ = Describe("Legacy Options", func() {
318318
319319 xForwardedUser := Header{
320320 Name: "X-Forwarded-User",
321− PreserveRequestValue: ptr.Ptr(false),
321+ PreserveRequestValue: ptr.To(false),
322322 Values: []HeaderValue{
323323 {
324324 ClaimSource: &ClaimSource{
@@ -330,7 +330,7 @@ var _ = Describe("Legacy Options", func() {
330330
331331 xForwardedEmail := Header{
332332 Name: "X-Forwarded-Email",
333− PreserveRequestValue: ptr.Ptr(false),
333+ PreserveRequestValue: ptr.To(false),
334334 Values: []HeaderValue{
335335 {
336336 ClaimSource: &ClaimSource{
@@ -342,7 +342,7 @@ var _ = Describe("Legacy Options", func() {
342342
343343 xForwardedGroups := Header{
344344 Name: "X-Forwarded-Groups",
345− PreserveRequestValue: ptr.Ptr(false),
345+ PreserveRequestValue: ptr.To(false),
346346 Values: []HeaderValue{
347347 {
348348 ClaimSource: &ClaimSource{
@@ -354,7 +354,7 @@ var _ = Describe("Legacy Options", func() {
354354
355355 xForwardedPreferredUsername := Header{
356356 Name: "X-Forwarded-Preferred-Username",
357− PreserveRequestValue: ptr.Ptr(false),
357+ PreserveRequestValue: ptr.To(false),
358358 Values: []HeaderValue{
359359 {
360360 ClaimSource: &ClaimSource{
@@ -366,7 +366,7 @@ var _ = Describe("Legacy Options", func() {
366366
367367 basicAuthHeader := Header{
368368 Name: "Authorization",
369− PreserveRequestValue: ptr.Ptr(false),
369+ PreserveRequestValue: ptr.To(false),
370370 Values: []HeaderValue{
371371 {
372372 ClaimSource: &ClaimSource{
@@ -382,7 +382,7 @@ var _ = Describe("Legacy Options", func() {
382382
383383 xForwardedUserWithEmail := Header{
384384 Name: "X-Forwarded-User",
385− PreserveRequestValue: ptr.Ptr(false),
385+ PreserveRequestValue: ptr.To(false),
386386 Values: []HeaderValue{
387387 {
388388 ClaimSource: &ClaimSource{
@@ -394,7 +394,7 @@ var _ = Describe("Legacy Options", func() {
394394
395395 xForwardedAccessToken := Header{
396396 Name: "X-Forwarded-Access-Token",
397− PreserveRequestValue: ptr.Ptr(false),
397+ PreserveRequestValue: ptr.To(false),
398398 Values: []HeaderValue{
399399 {
400400 ClaimSource: &ClaimSource{
@@ -406,7 +406,7 @@ var _ = Describe("Legacy Options", func() {
406406
407407 basicAuthHeaderWithEmail := Header{
408408 Name: "Authorization",
409− PreserveRequestValue: ptr.Ptr(false),
409+ PreserveRequestValue: ptr.To(false),
410410 Values: []HeaderValue{
411411 {
412412 ClaimSource: &ClaimSource{
@@ -422,7 +422,7 @@ var _ = Describe("Legacy Options", func() {
422422
423423 xAuthRequestUser := Header{
424424 Name: "X-Auth-Request-User",
425− PreserveRequestValue: ptr.Ptr(false),
425+ PreserveRequestValue: ptr.To(false),
426426 Values: []HeaderValue{
427427 {
428428 ClaimSource: &ClaimSource{
@@ -434,7 +434,7 @@ var _ = Describe("Legacy Options", func() {
434434
435435 xAuthRequestEmail := Header{
436436 Name: "X-Auth-Request-Email",
437− PreserveRequestValue: ptr.Ptr(false),
437+ PreserveRequestValue: ptr.To(false),
438438 Values: []HeaderValue{
439439 {
440440 ClaimSource: &ClaimSource{
@@ -446,7 +446,7 @@ var _ = Describe("Legacy Options", func() {
446446
447447 xAuthRequestGroups := Header{
448448 Name: "X-Auth-Request-Groups",
449− PreserveRequestValue: ptr.Ptr(false),
449+ PreserveRequestValue: ptr.To(false),
450450 Values: []HeaderValue{
451451 {
452452 ClaimSource: &ClaimSource{
@@ -458,7 +458,7 @@ var _ = Describe("Legacy Options", func() {
458458
459459 xAuthRequestPreferredUsername := Header{
460460 Name: "X-Auth-Request-Preferred-Username",
461− PreserveRequestValue: ptr.Ptr(false),
461+ PreserveRequestValue: ptr.To(false),
462462 Values: []HeaderValue{
463463 {
464464 ClaimSource: &ClaimSource{
@@ -470,7 +470,7 @@ var _ = Describe("Legacy Options", func() {
470470
471471 xAuthRequestAccessToken := Header{
472472 Name: "X-Auth-Request-Access-Token",
473− PreserveRequestValue: ptr.Ptr(false),
473+ PreserveRequestValue: ptr.To(false),
474474 Values: []HeaderValue{
475475 {
476476 ClaimSource: &ClaimSource{
@@ -482,7 +482,7 @@ var _ = Describe("Legacy Options", func() {
482482
483483 authorizationHeader := Header{
484484 Name: "Authorization",
485− PreserveRequestValue: ptr.Ptr(false),
485+ PreserveRequestValue: ptr.To(false),
486486 Values: []HeaderValue{
487487 {
488488 ClaimSource: &ClaimSource{
@@ -948,14 +948,14 @@ var _ = Describe("Legacy Options", func() {
948948 }
949949
950950 defaultOIDCOptions := OIDCOptions{
951− SkipDiscovery: ptr.Ptr(false),
952− InsecureSkipNonce: ptr.Ptr(false),
953− InsecureAllowUnverifiedEmail: ptr.Ptr(false),
954− InsecureSkipIssuerVerification: ptr.Ptr(false),
951+ SkipDiscovery: ptr.To(false),
952+ InsecureSkipNonce: ptr.To(false),
953+ InsecureAllowUnverifiedEmail: ptr.To(false),
954+ InsecureSkipIssuerVerification: ptr.To(false),
955955 }
956956
957957 defaultGoogleOptions := GoogleOptions{
958− UseApplicationDefaultCredentials: ptr.Ptr(false),
958+ UseApplicationDefaultCredentials: ptr.To(false),
959959 }
960960
961961 defaultLegacyProvider := LegacyProvider{
@@ -970,8 +970,8 @@ var _ = Describe("Legacy Options", func() {
970970 OIDCConfig: defaultOIDCOptions,
971971 GoogleConfig: defaultGoogleOptions,
972972 LoginURLParameters: defaultURLParams,
973− UseSystemTrustStore: ptr.Ptr(false),
974− SkipClaimsFromProfileURL: ptr.Ptr(false),
973+ UseSystemTrustStore: ptr.To(false),
974+ SkipClaimsFromProfileURL: ptr.To(false),
975975 }
976976
977977 defaultLegacyProviderWithPrompt := LegacyProvider{
@@ -989,8 +989,8 @@ var _ = Describe("Legacy Options", func() {
989989 LoginURLParameters: []LoginURLParameter{
990990 {Name: "prompt", Default: []string{"switch_user"}},
991991 },
992− UseSystemTrustStore: ptr.Ptr(false),
993− SkipClaimsFromProfileURL: ptr.Ptr(false),
992+ UseSystemTrustStore: ptr.To(false),
993+ SkipClaimsFromProfileURL: ptr.To(false),
994994 }
995995
996996 displayNameLegacyProvider := LegacyProvider{
@@ -1007,8 +1007,8 @@ var _ = Describe("Legacy Options", func() {
10071007 OIDCConfig: defaultOIDCOptions,
10081008 GoogleConfig: defaultGoogleOptions,
10091009 LoginURLParameters: defaultURLParams,
1010− UseSystemTrustStore: ptr.Ptr(false),
1011− SkipClaimsFromProfileURL: ptr.Ptr(false),
1010+ UseSystemTrustStore: ptr.To(false),
1011+ SkipClaimsFromProfileURL: ptr.To(false),
10121012 }
10131013
10141014 internalConfigProvider := Provider{
@@ -1020,11 +1020,11 @@ var _ = Describe("Legacy Options", func() {
10201020 AdminEmail: "email@email.com",
10211021 ServiceAccountJSON: "test.json",
10221022 Groups: []string{"1", "2"},
1023− UseApplicationDefaultCredentials: ptr.Ptr(false),
1023+ UseApplicationDefaultCredentials: ptr.To(false),
10241024 },
10251025 LoginURLParameters: defaultURLParams,
1026− UseSystemTrustStore: ptr.Ptr(false),
1027− SkipClaimsFromProfileURL: ptr.Ptr(false),
1026+ UseSystemTrustStore: ptr.To(false),
1027+ SkipClaimsFromProfileURL: ptr.To(false),
10281028 }
10291029
10301030 internalConfigLegacyProvider := LegacyProvider{