Switch Departments—Without Logging Out
Empower users to securely switch their department or unit context mid-session using a seamless token exchange flow. No re-login. No duplicated sessions. Just scoped, auditable context updates—on demand.
Seamless Department Switching Without Reauthentication
Why It Matters
In modern enterprise systems, users often hold responsibilities across multiple departments or business units. However, Keycloak's default session and token structure lacks built-in support for context switching.
This causes:
- Conflicting permissions
- Confusing audit trails
- Risk of privilege leakage
Keymate solves this with a secure token exchange flow that updates the active department context while keeping the user's session intact and scoped.
Switch Context. Retain Trust.
The Department Switch flow includes:
Department Switch via Token Exchange
This enables fine-grained access control and visibility without requiring logout/login cycles.
Example: A user securely switches their active department mid-session.
Key Components:
Extension Highlights — What Makes It Unique
Session-Preserving Switch
Update only department context—session and identity stay intact
Scoped Token Regeneration
New token reflects updated department and clears the previous scope
Access Control Integration
Switch operation is policy-governed (e.g., role-based)
Audit-Ready
Every switch generates an auditable event
Built for Multi-Org Setups
Works seamlessly with org-aware sessions and OpenFGA policies
No UX Disruption
Lightweight UI dropdown or API call—no full logout required