~/talk

The Keycloak-Token-Configuration Mistake, 90% of All Developers Do (and How To Avoid It)

Talkat KeycloakCon Europe 2026 · on Monday, 2026-03-23· at 09:45· Hall 7 | Room A· [security]
slides:none on file

Keycloak by default stuffs access tokens with profile claims, realm and client roles and many audiences, causing oversized tokens and GDPR risk; demos use the admin UI Evaluate, client-scope mappers (remove personal claims from access token) and the add to ID token/add to access token toggles to strip email/profile, show real-world counts (2,000–3,000 roles, users with ~1,500 mappings), and switch off full scope allowed to include only specific client roles. Token exchange with an audience parameter issues a proper-targeted token; access tokens can’t be revoked so keep them short and validate the audience.

AI-written summary · about

  1. 0:00Keycloak token config mistakes
  2. 2:26Default token overloading
  3. 5:13GDPR and token data
  4. 9:28Removing roles from tokens
  5. 13:19Audience claim and scope
  6. 16:28Token exchange for APIs
  7. 22:16Security risks of defaults
  8. 23:38Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.