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 e5c6f13 commit b0b6c0fCopy full SHA for b0b6c0f
1 file changed
src/main/kotlin/config/AuthenticationModule.kt
@@ -65,7 +65,7 @@ fun Application.authenticationModule() {
65
66
validate { credential ->
67
val token = credential.payload
68
- if (!token.getClaim("username").asString().isNullOrBlank() ||
+ if (!token.getClaim("preferred_username").asString().isNullOrBlank() ||
69
!token.getClaim("user_id").asString().isNullOrBlank()
70
) {
71
JWTPrincipal(token)
0 commit comments