@@ -70,7 +70,6 @@ func TestAuthenticationConfig(t *testing.T) {
70
70
saKey string
71
71
privateKeySet bool
72
72
tokenEndpoint string
73
- jwksEndpoint string
74
73
isValid bool
75
74
expectedCustomAuthSet bool
76
75
expectedTokenSet bool
@@ -102,7 +101,6 @@ func TestAuthenticationConfig(t *testing.T) {
102
101
saKey : testServiceAccountKey ,
103
102
privateKeySet : true ,
104
103
tokenEndpoint : "token_url" ,
105
- jwksEndpoint : "jwks_url" ,
106
104
isValid : true ,
107
105
expectedCustomAuthSet : true ,
108
106
},
@@ -115,7 +113,6 @@ func TestAuthenticationConfig(t *testing.T) {
115
113
saKey : testServiceAccountKey ,
116
114
privateKeySet : true ,
117
115
tokenEndpoint : "token_url" ,
118
- jwksEndpoint : "jwks_url" ,
119
116
isValid : false ,
120
117
},
121
118
{
@@ -180,7 +177,6 @@ func TestAuthenticationConfig(t *testing.T) {
180
177
authFields [REFRESH_TOKEN ] = tt .refreshToken
181
178
authFields [SERVICE_ACCOUNT_KEY ] = tt .saKey
182
179
authFields [TOKEN_CUSTOM_ENDPOINT ] = tt .tokenEndpoint
183
- authFields [JWKS_CUSTOM_ENDPOINT ] = tt .jwksEndpoint
184
180
185
181
err = SetAuthFlow (tt .flow )
186
182
if err != nil {
@@ -245,7 +241,6 @@ func TestInitKeyFlow(t *testing.T) {
245
241
saKey string
246
242
privateKeySet bool
247
243
tokenEndpoint string
248
- jwksEndpoint string
249
244
isValid bool
250
245
}{
251
246
{
@@ -255,7 +250,6 @@ func TestInitKeyFlow(t *testing.T) {
255
250
saKey : testServiceAccountKey ,
256
251
privateKeySet : true ,
257
252
tokenEndpoint : "token_url" ,
258
- jwksEndpoint : "jwks_url" ,
259
253
isValid : true ,
260
254
},
261
255
{
@@ -265,7 +259,6 @@ func TestInitKeyFlow(t *testing.T) {
265
259
saKey : "" ,
266
260
privateKeySet : true ,
267
261
tokenEndpoint : "token_url" ,
268
- jwksEndpoint : "jwks_url" ,
269
262
isValid : false ,
270
263
},
271
264
{
@@ -275,7 +268,6 @@ func TestInitKeyFlow(t *testing.T) {
275
268
saKey : testServiceAccountKey ,
276
269
privateKeySet : false ,
277
270
tokenEndpoint : "token_url" ,
278
- jwksEndpoint : "jwks_url" ,
279
271
isValid : false ,
280
272
},
281
273
{
@@ -285,7 +277,6 @@ func TestInitKeyFlow(t *testing.T) {
285
277
saKey : testServiceAccountKey ,
286
278
privateKeySet : true ,
287
279
tokenEndpoint : "token_url" ,
288
- jwksEndpoint : "jwks_url" ,
289
280
isValid : false ,
290
281
},
291
282
{
@@ -295,7 +286,6 @@ func TestInitKeyFlow(t *testing.T) {
295
286
saKey : testServiceAccountKey ,
296
287
privateKeySet : true ,
297
288
tokenEndpoint : "token_url" ,
298
- jwksEndpoint : "jwks_url" ,
299
289
isValid : false ,
300
290
},
301
291
}
@@ -326,7 +316,6 @@ func TestInitKeyFlow(t *testing.T) {
326
316
authFields [REFRESH_TOKEN ] = tt .refreshToken
327
317
authFields [SERVICE_ACCOUNT_KEY ] = tt .saKey
328
318
authFields [TOKEN_CUSTOM_ENDPOINT ] = tt .tokenEndpoint
329
- authFields [JWKS_CUSTOM_ENDPOINT ] = tt .jwksEndpoint
330
319
err = SetAuthFieldMap (authFields )
331
320
if err != nil {
332
321
t .Fatalf ("Failed to set in auth storage: %v" , err )
0 commit comments