We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959fc67 commit a19a910Copy full SHA for a19a910
src/main/kotlin/no/nav/klage/document/api/DocumentController.kt
@@ -200,9 +200,8 @@ class DocumentController(
200
secureLogger.debug("{}. On-behalf-of: {}", message, getIdent())
201
}
202
203
- fun getIdent(): String =
+ fun getIdent(): String? =
204
tokenValidationContextHolder.tokenValidationContext.getJwtToken(ISSUER_AAD)
205
.jwtTokenClaims?.get("NAVident")?.toString()
206
- ?: throw RuntimeException("Ident not found in token")
207
208
0 commit comments