Package org.wildfly.security.http.oidc
Interface OidcTokenStore
- All Known Implementing Classes:
OidcCookieTokenStore,OidcSessionTokenStore
public interface OidcTokenStore
- Author:
- Pedro Igor, Marek Posolda, Farah Juma
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if the current token exists.booleanisCached(RequestAuthenticator authenticator) Check if we are already logged in (i.e., check if we have a valid and successfully refreshed access token).voidlogout()Handle logout on store side and possibly propagate logout call to the OIDC provider.voidlogout(boolean glo) voidvoidlogoutHttpSessions(List<String> ids) voidrefreshCallback(RefreshableOidcSecurityContext securityContext) Callback invoked after a successful token refresh.booleanRestore the request.voidsaveAccountInfo(OidcAccount account) Finish a successful login and store the validated account.voidSave the request.
-
Method Details
-
logout
void logout(boolean glo) -
checkCurrentToken
void checkCurrentToken()Check if the current token exists. Refresh the token if it exists but is expired. -
isCached
Check if we are already logged in (i.e., check if we have a valid and successfully refreshed access token). If so, establish the security context.- Parameters:
authenticator- used for actual request authentication- Returns:
trueif we are logged in already;falseotherwise
-
saveAccountInfo
Finish a successful login and store the validated account.- Parameters:
account- the validated account
-
logout
void logout()Handle logout on store side and possibly propagate logout call to the OIDC provider. -
logoutAll
void logoutAll() -
logoutHttpSessions
-
refreshCallback
Callback invoked after a successful token refresh.- Parameters:
securityContext- context where refresh was performed
-
saveRequest
void saveRequest()Save the request. -
restoreRequest
boolean restoreRequest()Restore the request.- Returns:
trueif the request was successfully restored;falseotherwise
-