Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Dec 10, 2024
1 parent 3fd5767 commit 20e58bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/kotlin/no/nav/klage/oppgave/util/TokenUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ class TokenUtil(
}

fun getSubjectFromTokenXToken(): String {
val claims = ctxHolder.getTokenValidationContext().getClaims(SecurityConfiguration.TOKEN_X)
val claims = ctxHolder.getTokenValidationContext()//.getClaims(SecurityConfiguration.TOKEN_X)
securelogger.debug("fant noen claims: $claims")
securelogger.debug("fant noen claims: ${claims.allClaims}")
return ctxHolder.getTokenValidationContext().getClaims(SecurityConfiguration.TOKEN_X).getStringClaim("pid")
// securelogger.debug("fant noen claims: ${claims.allClaims}")
// return ctxHolder.getTokenValidationContext().getClaims(SecurityConfiguration.TOKEN_X).getStringClaim("pid")
return "hei"
}

fun getSaksbehandlerAccessTokenWithGraphScope(): String {
Expand Down

0 comments on commit 20e58bf

Please sign in to comment.