Package org.keycloak.sessions
Interface StickySessionEncoderProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
InfinispanStickySessionEncoderProvider
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptiondecodeSessionId
(String encodedSessionId) encodeSessionId
(String sessionId) boolean
-
Method Details
-
encodeSessionId
- Parameters:
sessionId
-- Returns:
- Encoded value to be used as the value of sticky session cookie (AUTH_SESSION_ID cookie)
-
decodeSessionId
- Parameters:
encodedSessionId
- value of the sticky session cookie- Returns:
- decoded value, which represents the actual ID of the
AuthenticationSessionModel
-
shouldAttachRoute
boolean shouldAttachRoute()- Returns:
- true if information about route should be attached to the sticky session cookie by Keycloak. Otherwise it may be attached by loadbalancer.
-