@@ -151,7 +151,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
151151 t .Parallel ()
152152 keySet , privateKey , issuer := setupTestKeySet (t )
153153
154- auth := NewJWTAuth (keySet , issuer , "test-service" , false , []AdditionalCheck {})
154+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , []AdditionalCheck {})
155155
156156 // Create access token
157157 token := createAccessToken (t , privateKey , issuer , "" , []string {}, "test-user" )
@@ -175,11 +175,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
175175 }{
176176 {
177177 name : "JWTAuth" ,
178- auth : NewJWTAuth (keySet , issuer , "test-service" , false , []AdditionalCheck {}),
178+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , []AdditionalCheck {}),
179179 },
180180 {
181181 name : "JWTAuth with additional checks" ,
182- auth : NewJWTAuth (keySet , issuer , "test-service" , false , autoPassingAdditionalChecks ),
182+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoPassingAdditionalChecks ),
183183 },
184184 }
185185
@@ -206,11 +206,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
206206 }{
207207 {
208208 name : "JWTAuth" ,
209- auth : NewJWTAuth (keySet , issuer , "test-service" , false , nil ),
209+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , nil ),
210210 },
211211 {
212212 name : "JWTAuth with additional checks" ,
213- auth : NewJWTAuth (keySet , issuer , "test-service" , false , autoPassingAdditionalChecks ),
213+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoPassingAdditionalChecks ),
214214 },
215215 }
216216
@@ -237,11 +237,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
237237 }{
238238 {
239239 name : "JWTAuth" ,
240- auth : NewJWTAuth (keySet , issuer , "test-service" , false , nil ),
240+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , nil ),
241241 },
242242 {
243243 name : "JWTAuth with additional checks" ,
244- auth : NewJWTAuth (keySet , issuer , "test-service" , false , autoPassingAdditionalChecks ),
244+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoPassingAdditionalChecks ),
245245 },
246246 }
247247
@@ -267,11 +267,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
267267 }{
268268 {
269269 name : "JWTAuth" ,
270- auth : NewJWTAuth (keySet , issuer , "test-service" , false , nil ),
270+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , nil ),
271271 },
272272 {
273273 name : "JWTAuth with additional checks" ,
274- auth : NewJWTAuth (keySet , issuer , "test-service" , false , autoPassingAdditionalChecks ),
274+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoPassingAdditionalChecks ),
275275 },
276276 }
277277
@@ -329,11 +329,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
329329 }{
330330 {
331331 name : "JWTAuth" ,
332- auth : NewJWTAuth (keySet , issuer , "test-service" , true , nil ),
332+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , nil ),
333333 },
334334 {
335335 name : "JWTAuth with additional checks" ,
336- auth : NewJWTAuth (keySet , issuer , "test-service" , true , autoPassingAdditionalChecks ),
336+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , autoPassingAdditionalChecks ),
337337 },
338338 }
339339
@@ -364,11 +364,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
364364 }{
365365 {
366366 name : "JWTAuth" ,
367- auth : NewJWTAuth (keySet , issuer , "test-service" , true , nil ),
367+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , nil ),
368368 },
369369 {
370370 name : "JWTAuth with additional checks" ,
371- auth : NewJWTAuth (keySet , issuer , "test-service" , true , autoPassingAdditionalChecks ),
371+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , autoPassingAdditionalChecks ),
372372 },
373373 }
374374
@@ -398,11 +398,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
398398 }{
399399 {
400400 name : "JWTAuth" ,
401- auth : NewJWTAuth (keySet , issuer , "test-service" , true , nil ),
401+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , nil ),
402402 },
403403 {
404404 name : "JWTAuth with additional checks" ,
405- auth : NewJWTAuth (keySet , issuer , "test-service" , true , autoPassingAdditionalChecks ),
405+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , autoPassingAdditionalChecks ),
406406 },
407407 }
408408
@@ -433,11 +433,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
433433 }{
434434 {
435435 name : "JWTAuth" ,
436- auth : NewJWTAuth (keySet , issuer , "test-service" , true , nil ),
436+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , nil ),
437437 },
438438 {
439439 name : "JWTAuth with additional checks" ,
440- auth : NewJWTAuth (keySet , issuer , "test-service" , true , autoPassingAdditionalChecks ),
440+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , true , autoPassingAdditionalChecks ),
441441 },
442442 }
443443
@@ -468,11 +468,11 @@ func TestJWTAuth_Authenticate(t *testing.T) {
468468 }{
469469 {
470470 name : "JWTAuth" ,
471- auth : NewJWTAuth (keySet , issuer , "test-service" , false , nil ),
471+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , nil ),
472472 },
473473 {
474474 name : "JWTAuth with additional checks" ,
475- auth : NewJWTAuth (keySet , issuer , "test-service" , false , autoPassingAdditionalChecks ),
475+ auth : NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoPassingAdditionalChecks ),
476476 },
477477 }
478478
@@ -516,7 +516,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
516516 },
517517 }
518518
519- auth := NewJWTAuth (keySet , issuer , "test-service" , false , autoFailingAdditionalChecks )
519+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , autoFailingAdditionalChecks )
520520
521521 // Create access token
522522 token := createAccessToken (t , privateKey , issuer , "" , []string {}, "test-user" )
@@ -543,7 +543,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
543543 CheckOrganizationIDClaim (provider ),
544544 }
545545
546- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
546+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
547547
548548 // Create access token
549549 token := createAccessTokenWithOrgClaims (t , privateKey , issuer , "" , []string {}, "test-user" , expectedOrgID )
@@ -566,7 +566,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
566566 additionalChecks := []AdditionalCheck {
567567 CheckOrganizationIDClaim (provider ),
568568 }
569- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
569+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
570570
571571 // Create access token
572572 token := createAccessTokenWithOrgClaims (t , privateKey , issuer , "" , []string {}, "test-user" , "" )
@@ -590,7 +590,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
590590 additionalChecks := []AdditionalCheck {
591591 CheckOrganizationIDClaim (provider ),
592592 }
593- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
593+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
594594
595595 // Create access token
596596 token := createAccessTokenWithOrgClaims (t , privateKey , issuer , "" , []string {}, "test-user" , "someotherorgid" )
@@ -615,7 +615,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
615615 additionalChecks := []AdditionalCheck {
616616 CheckOrganizationIDClaim (provider ),
617617 }
618- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
618+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
619619
620620 // Create access token
621621 token := createAccessTokenWithOrgClaims (t , privateKey , issuer , "" , []string {}, "test-user" , "" )
@@ -639,7 +639,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
639639 additionalChecks := []AdditionalCheck {
640640 CheckAudienceClaim (expectedAudience ),
641641 }
642- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
642+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
643643
644644 // Create access token
645645 token := createAccessTokenWithOrgClaims (t , privateKey , issuer , "" , []string {}, "test-user" , "" )
@@ -663,7 +663,7 @@ func TestJWTAuth_Authenticate(t *testing.T) {
663663 additionalChecks := []AdditionalCheck {
664664 CheckAudienceClaim (expectedAudience ),
665665 }
666- auth := NewJWTAuth (keySet , issuer , "test-service" , false , additionalChecks )
666+ auth := NewJWTAuth (map [ string ]oidc. KeySet { issuer : keySet } , "test-service" , false , additionalChecks )
667667
668668 // Create access token
669669 tokenAudience := expectedAudience
0 commit comments