Put the Right Context Inside Every Token
With Keymate's Token Attribute Enricher, your access tokens carry rich, real-time organizational and contextual metadata—so authorization decisions are precise, scoped, and audit-ready.
Context-Rich Tokens for Authorization, Auditing, and Analytics
Why It Matters
Default Keycloak tokens are limited to static claims—often just roles and basic user attributes. But in real-world enterprise environments, you need more:
- Department, unit, position, clearance level
- Session-specific role (aka delegated "hat")
- Risk score, impersonation flags
- Tenant and organization hierarchy
This extension enriches every token with live, scoped session context, without custom token mappers or manual workarounds.
From Session to Token—Automatic Attribute Injection
The Token Attribute Enricher:
Token Attribute Enrichment Flow
Fully compatible with OpenFGA and Keymate Authorization DSL.
Example: Session notes and external data are injected into access tokens.
Key Components:
Extension Highlights — What Makes It Unique
Org-Aware Fields
Add organization ID, department, unit, company, position
Delegation Support
Include delegated role or impersonation metadata
Risk Score Injection
Embed real-time risk level for RADAC scenarios
Dynamic Source Mapping
Pull from session notes, LDAP, HRMS, or external APIs
OpenFGA-Ready
Enriched fields map directly to relationship models
Secure and Immutable
Injected claims are tamper-proof within the token lifecycle