Skip to content

Commit b0b6c0f

Browse files
committed
CGDMF-132: Fix keycloak token validation
1 parent e5c6f13 commit b0b6c0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/config/AuthenticationModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fun Application.authenticationModule() {
6565

6666
validate { credential ->
6767
val token = credential.payload
68-
if (!token.getClaim("username").asString().isNullOrBlank() ||
68+
if (!token.getClaim("preferred_username").asString().isNullOrBlank() ||
6969
!token.getClaim("user_id").asString().isNullOrBlank()
7070
) {
7171
JWTPrincipal(token)

0 commit comments

Comments
 (0)