Package org.keycloak.adapters
Interface AdapterTokenStore
- All Superinterfaces:
AdapterSessionStore
Abstraction for storing token info on adapter side. Intended to be per-request object
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptionvoidImpl can validate if current token exists and perform refreshing if it exists and is expiredbooleanisCached(RequestAuthenticator authenticator) Check if we are logged already (we have already valid and successfully refreshed accessToken).voidlogout()Handle logout on store side and possibly propagate logout call to KeycloakvoidrefreshCallback(RefreshableKeycloakSecurityContext securityContext) Callback invoked after successful token refreshvoidsaveAccountInfo(OidcKeycloakAccount account) Finish successful OAuth2 login and store validated accountMethods inherited from interface org.keycloak.adapters.spi.AdapterSessionStore
restoreRequest, saveRequest
-
Method Details
-
checkCurrentToken
void checkCurrentToken()Impl can validate if current token exists and perform refreshing if it exists and is expired -
isCached
Check if we are logged already (we have already valid and successfully refreshed accessToken). Establish security context if yes- Parameters:
authenticator- used for actual request authentication- Returns:
- true if we are logged-in already
-
saveAccountInfo
Finish successful OAuth2 login and store validated account- Parameters:
account-
-
logout
void logout()Handle logout on store side and possibly propagate logout call to Keycloak -
refreshCallback
Callback invoked after successful token refresh- Parameters:
securityContext- context where refresh was performed
-