From 09535ca5aa71bb8628ab6a88a0346dfc0fa5e21e Mon Sep 17 00:00:00 2001 From: "Kristen.Herum" Date: Tue, 8 Oct 2024 12:16:01 +0200 Subject: [PATCH] Log authentication token value in filter Added logging to output the TokenX authentication token value in the request filter. This will assist in debugging and tracking token-related issues. --- .../filter/AddAuthenticationRequestGatewayFilterFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/filter/AddAuthenticationRequestGatewayFilterFactory.java b/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/filter/AddAuthenticationRequestGatewayFilterFactory.java index 0a86bf74be..87c8d71272 100644 --- a/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/filter/AddAuthenticationRequestGatewayFilterFactory.java +++ b/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/filter/AddAuthenticationRequestGatewayFilterFactory.java @@ -24,6 +24,7 @@ public static GatewayFilter bearerIdportenHeaderFilter(FakedingsConsumer fakedin exchange.mutate() .request(builder -> builder.header(HttpHeaders.AUTHORIZATION, "Bearer " + tokenX.getTokenValue()).build()); + log.info("TokenX {}", tokenX.getTokenValue()); return chain.filter(exchange); })); };