Skip to content

Commit a19a910

Browse files
committed
Quick fix until NAVIdent works
1 parent 959fc67 commit a19a910

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/no/nav/klage/document/api/DocumentController.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ class DocumentController(
200200
secureLogger.debug("{}. On-behalf-of: {}", message, getIdent())
201201
}
202202

203-
fun getIdent(): String =
203+
fun getIdent(): String? =
204204
tokenValidationContextHolder.tokenValidationContext.getJwtToken(ISSUER_AAD)
205205
.jwtTokenClaims?.get("NAVident")?.toString()
206-
?: throw RuntimeException("Ident not found in token")
207206

208207
}

0 commit comments

Comments
 (0)