Repository navigation
Custom user attributes intermittently missing from access tokens with user federation and password grant (v26.1.0, Quarkus-based Keycloak) #39692
Unanswered
jonathankamau
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Keycloak team and community,
I'm encountering an intermittent issue where custom user attributes injected via a user federation plugin are not consistently included in access tokens issued through the password grant type. This occurs in Keycloak v26.1.0 (Quarkus-based).
🔧 Environment Details
passwordgrant typeopenid,profile, and additional custom scopes./realms/{realm}/protocol/openid-connect/tokenLegacyUserServicethat fetches user data from a remote APIUserStorageProviderFactorygetAttributes()is overridden in the customUserAdapterto expose external user fields💡 What I'm Observing
curlfrom a terminal, postman or web app, the token always includes all expected custom attributes.✅ What I've Verified / Ruled Out
🕵️♂️ Additional Observations
📋 Questions / Help Needed
Thanks in advance for your help on this!
All reactions