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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckCurrentToken()Check 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)voidlogoutAll()voidlogoutHttpSessions(List<String> ids)voidrefreshCallback(RefreshableOidcSecurityContext securityContext)Callback invoked after a successful token refresh.booleanrestoreRequest()Restore the request.voidsaveAccountInfo(OidcAccount account)Finish a successful login and store the validated account.voidsaveRequest()Save the request.
-
-
-
Method Detail
-
logout
void logout(boolean glo)
-
checkCurrentToken
void checkCurrentToken()
Check if the current token exists. Refresh the token if it exists but is expired.
-
isCached
boolean isCached(RequestAuthenticator authenticator)
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
void saveAccountInfo(OidcAccount account)
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()
-
refreshCallback
void refreshCallback(RefreshableOidcSecurityContext securityContext)
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
-
-