From c98197cbc89a8e00797a4759706279fee8f0e48a Mon Sep 17 00:00:00 2001 From: stigus Date: Thu, 22 Aug 2024 16:20:05 +0200 Subject: [PATCH] Deploy backend idporten #deploy-dolly-backend --- .../nav/testnav/libs/servletsecurity/action/GetUserInfo.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/servlet-security/src/main/java/no/nav/testnav/libs/servletsecurity/action/GetUserInfo.java b/libs/servlet-security/src/main/java/no/nav/testnav/libs/servletsecurity/action/GetUserInfo.java index d015789f00..9d1399ab53 100644 --- a/libs/servlet-security/src/main/java/no/nav/testnav/libs/servletsecurity/action/GetUserInfo.java +++ b/libs/servlet-security/src/main/java/no/nav/testnav/libs/servletsecurity/action/GetUserInfo.java @@ -6,7 +6,6 @@ import no.nav.testnav.libs.securitycore.config.UserConstant; import no.nav.testnav.libs.securitycore.domain.UserInfo; import org.springframework.beans.factory.annotation.Value; -import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; @@ -26,8 +25,6 @@ public GetUserInfo(@Value("${JWT_SECRET:#{null}}") String secret) { @Override public Optional call() { - var test = SecurityContextHolder.getContext().getAuthentication(); - log.info(test.getName()); var request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); log.trace("Prøver å hente JWT fra request..."); return Optional.ofNullable(request.getHeader(UserConstant.USER_HEADER_JWT)).map(token -> {