Class AuthenticationStateCookie
java.lang.Object
org.keycloak.forms.login.freemarker.AuthenticationStateCookie
Non http-only cookie with tracking remaining authSessions in current root authentication session
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
expireCookie
(RealmModel realm, KeycloakSession session) static void
generateAndSetCookie
(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootAuthSession, int cookieMaxAge) void
setAuthSessionId
(String authSessionId) void
setRemainingTabs
(Set<String> remainingTabs) toString()
-
Field Details
-
KC_AUTH_STATE
- See Also:
-
-
Constructor Details
-
AuthenticationStateCookie
public AuthenticationStateCookie()
-
-
Method Details
-
getAuthSessionId
-
setAuthSessionId
-
getRemainingTabs
-
setRemainingTabs
-
generateAndSetCookie
public static void generateAndSetCookie(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootAuthSession, int cookieMaxAge) -
expireCookie
-
toString
-