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 void
checkCurrentToken()
Check if the current token exists.boolean
isCached(RequestAuthenticator authenticator)
Check if we are already logged in (i.e., check if we have a valid and successfully refreshed access token).void
logout()
Handle logout on store side and possibly propagate logout call to the OIDC provider.void
logout(boolean glo)
void
logoutAll()
void
logoutHttpSessions(List<String> ids)
void
refreshCallback(RefreshableOidcSecurityContext securityContext)
Callback invoked after a successful token refresh.boolean
restoreRequest()
Restore the request.void
saveAccountInfo(OidcAccount account)
Finish a successful login and store the validated account.void
saveRequest()
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:
true
if we are logged in already;false
otherwise
-
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:
true
if the request was successfully restored;false
otherwise
-
-