|
5 | 5 | "encoding/json"
|
6 | 6 | "errors"
|
7 | 7 | "fmt"
|
| 8 | + "go.uber.org/zap" |
8 | 9 | "io"
|
9 | 10 | "math/big"
|
10 | 11 | "net"
|
@@ -73,7 +74,7 @@ func TestWebSockets(t *testing.T) {
|
73 | 74 | authServer, err := jwks.NewServer(t)
|
74 | 75 | require.NoError(t, err)
|
75 | 76 | t.Cleanup(authServer.Close)
|
76 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 77 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
77 | 78 | authOptions := authentication.HttpHeaderAuthenticatorOptions{
|
78 | 79 | Name: jwksName,
|
79 | 80 | URL: authServer.JWKSURL(),
|
@@ -123,7 +124,7 @@ func TestWebSockets(t *testing.T) {
|
123 | 124 | authServer, err := jwks.NewServer(t)
|
124 | 125 | require.NoError(t, err)
|
125 | 126 | t.Cleanup(authServer.Close)
|
126 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 127 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
127 | 128 | authOptions := authentication.HttpHeaderAuthenticatorOptions{
|
128 | 129 | Name: jwksName,
|
129 | 130 | URL: authServer.JWKSURL(),
|
@@ -173,7 +174,7 @@ func TestWebSockets(t *testing.T) {
|
173 | 174 | authServer, err := jwks.NewServer(t)
|
174 | 175 | require.NoError(t, err)
|
175 | 176 | t.Cleanup(authServer.Close)
|
176 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 177 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
177 | 178 | authOptions := authentication.HttpHeaderAuthenticatorOptions{
|
178 | 179 | Name: jwksName,
|
179 | 180 | URL: authServer.JWKSURL(),
|
@@ -232,7 +233,7 @@ func TestWebSockets(t *testing.T) {
|
232 | 233 | authServer, err := jwks.NewServer(t)
|
233 | 234 | require.NoError(t, err)
|
234 | 235 | t.Cleanup(authServer.Close)
|
235 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 236 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
236 | 237 | authOptions := authentication.HttpHeaderAuthenticatorOptions{
|
237 | 238 | Name: jwksName,
|
238 | 239 | URL: authServer.JWKSURL(),
|
@@ -290,7 +291,7 @@ func TestWebSockets(t *testing.T) {
|
290 | 291 | authServer, err := jwks.NewServer(t)
|
291 | 292 | require.NoError(t, err)
|
292 | 293 | t.Cleanup(authServer.Close)
|
293 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 294 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
294 | 295 | authOptions := authentication.WebsocketInitialPayloadAuthenticatorOptions{
|
295 | 296 | TokenDecoder: tokenDecoder,
|
296 | 297 | Key: "Authorization",
|
@@ -351,7 +352,7 @@ func TestWebSockets(t *testing.T) {
|
351 | 352 | authServer, err := jwks.NewServer(t)
|
352 | 353 | require.NoError(t, err)
|
353 | 354 | t.Cleanup(authServer.Close)
|
354 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 355 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
355 | 356 | authOptions := authentication.WebsocketInitialPayloadAuthenticatorOptions{
|
356 | 357 | TokenDecoder: tokenDecoder,
|
357 | 358 | Key: "Authorization",
|
@@ -400,7 +401,7 @@ func TestWebSockets(t *testing.T) {
|
400 | 401 | authServer, err := jwks.NewServer(t)
|
401 | 402 | require.NoError(t, err)
|
402 | 403 | t.Cleanup(authServer.Close)
|
403 |
| - tokenDecoder, _ := authentication.NewJwksTokenDecoder(authServer.JWKSURL(), time.Second*5) |
| 404 | + tokenDecoder, _ := authentication.NewJwksTokenDecoder(zap.NewNop(), authServer.JWKSURL(), time.Second*5) |
404 | 405 | authOptions := authentication.WebsocketInitialPayloadAuthenticatorOptions{
|
405 | 406 | TokenDecoder: tokenDecoder,
|
406 | 407 | Key: "Authorization",
|
|
0 commit comments