Skip to content

Commit

Permalink
Deploy backend idporten
Browse files Browse the repository at this point in the history
#deploy-dolly-backend
  • Loading branch information
stigus committed Aug 22, 2024
1 parent d8a080e commit c98197c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -26,8 +25,6 @@ public GetUserInfo(@Value("${JWT_SECRET:#{null}}") String secret) {

@Override
public Optional<UserInfo> 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 -> {
Expand Down

0 comments on commit c98197c

Please sign in to comment.