Uses of Class
org.keycloak.authentication.actiontoken.ActionTokenContext
Package
Description
-
Uses of ActionTokenContext in org.keycloak.authentication
Modifier and TypeMethodDescriptionstatic void
AuthenticatorUtil.logoutOtherSessions
(ActionTokenContext<? extends DefaultActionToken> context) Logouts all sessions that are different to the current authentication session managed in the action token context. -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken
Modifier and TypeMethodDescriptionboolean
AbstractActionTokenHandler.canUseTokenRepeatedly
(T token, ActionTokenContext<T> tokenContext) boolean
ActionTokenHandler.canUseTokenRepeatedly
(T token, ActionTokenContext<T> tokenContext) Returnstrue
when the token can be used repeatedly to invoke the action,false
when the token is intended to be for single use only.AbstractActionTokenHandler.getAuthenticationSessionIdFromToken
(T token, ActionTokenContext<T> tokenContext, AuthenticationSessionModel currentAuthSession) ActionTokenHandler.getAuthenticationSessionIdFromToken
(T token, ActionTokenContext<T> tokenContext, AuthenticationSessionModel currentAuthSession) Returns a compound authentication session ID requested from within the given token that the handler should attempt to join.default TokenVerifier.Predicate<? super T>[]
ActionTokenHandler.getVerifiers
(ActionTokenContext<T> tokenContext) Returns an array of verifiers that are tested prior to handling the token.jakarta.ws.rs.core.Response
ActionTokenHandler.handleToken
(T token, ActionTokenContext<T> tokenContext) Performs the action as per the token details.AbstractActionTokenHandler.startFreshAuthenticationSession
(T token, ActionTokenContext<T> tokenContext) ActionTokenHandler.startFreshAuthenticationSession
(T token, ActionTokenContext<T> tokenContext) Creates a fresh authentication session according to the information from the token.protected TokenVerifier.Predicate<DefaultActionToken>
AbstractActionTokenHandler.verifyEmail
(ActionTokenContext<? extends DefaultActionToken> context) -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken.execactions
Modifier and TypeMethodDescriptionboolean
ExecuteActionsActionTokenHandler.canUseTokenRepeatedly
(ExecuteActionsActionToken token, ActionTokenContext<ExecuteActionsActionToken> tokenContext) TokenVerifier.Predicate<? super ExecuteActionsActionToken>[]
ExecuteActionsActionTokenHandler.getVerifiers
(ActionTokenContext<ExecuteActionsActionToken> tokenContext) jakarta.ws.rs.core.Response
ExecuteActionsActionTokenHandler.handleToken
(ExecuteActionsActionToken token, ActionTokenContext<ExecuteActionsActionToken> tokenContext) protected TokenVerifier.Predicate<ExecuteActionsActionToken>
ExecuteActionsActionTokenHandler.verifyRequiredActions
(ActionTokenContext<ExecuteActionsActionToken> tokenContext) -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken.idpverifyemail
Modifier and TypeMethodDescriptionIdpVerifyAccountLinkActionTokenHandler.getVerifiers
(ActionTokenContext<IdpVerifyAccountLinkActionToken> tokenContext) jakarta.ws.rs.core.Response
IdpVerifyAccountLinkActionTokenHandler.handleToken
(IdpVerifyAccountLinkActionToken token, ActionTokenContext<IdpVerifyAccountLinkActionToken> tokenContext) -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken.resetcred
Modifier and TypeMethodDescriptionboolean
ResetCredentialsActionTokenHandler.canUseTokenRepeatedly
(ResetCredentialsActionToken token, ActionTokenContext tokenContext) ResetCredentialsActionTokenHandler.getVerifiers
(ActionTokenContext<ResetCredentialsActionToken> tokenContext) jakarta.ws.rs.core.Response
ResetCredentialsActionTokenHandler.handleToken
(ResetCredentialsActionToken token, ActionTokenContext tokenContext) -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken.updateemail
Modifier and TypeMethodDescriptionboolean
UpdateEmailActionTokenHandler.canUseTokenRepeatedly
(UpdateEmailActionToken token, ActionTokenContext<UpdateEmailActionToken> tokenContext) TokenVerifier.Predicate<? super UpdateEmailActionToken>[]
UpdateEmailActionTokenHandler.getVerifiers
(ActionTokenContext<UpdateEmailActionToken> tokenContext) jakarta.ws.rs.core.Response
UpdateEmailActionTokenHandler.handleToken
(UpdateEmailActionToken token, ActionTokenContext<UpdateEmailActionToken> tokenContext) -
Uses of ActionTokenContext in org.keycloak.authentication.actiontoken.verifyemail
Modifier and TypeMethodDescriptionTokenVerifier.Predicate<? super VerifyEmailActionToken>[]
VerifyEmailActionTokenHandler.getVerifiers
(ActionTokenContext<VerifyEmailActionToken> tokenContext) jakarta.ws.rs.core.Response
VerifyEmailActionTokenHandler.handleToken
(VerifyEmailActionToken token, ActionTokenContext<VerifyEmailActionToken> tokenContext) -
Uses of ActionTokenContext in org.keycloak.services.resources
Modifier and TypeMethodDescriptionstatic <T extends JsonWebToken>
voidLoginActionsServiceChecks.checkIsClientValid
(T token, ActionTokenContext<T> context) Verifies whether the client denoted by client ID in token'siss
(issuedFor
) field both exists and is enabled.static <T extends JsonWebToken & SingleUseObjectKeyModel>
voidLoginActionsServiceChecks.checkIsUserValid
(T token, ActionTokenContext<T> context) Verifies whether the user given by ID both exists in the current realm.static <T extends JsonWebToken>
voidLoginActionsServiceChecks.checkNotLoggedInYet
(ActionTokenContext<T> context, AuthenticationSessionModel authSessionFromCookie, String authSessionId) Verifies that the authentication session has not yet been converted to user session, in other words that the user has not yet completed authentication and logged in.static <T extends JsonWebToken & SingleUseObjectKeyModel>
voidLoginActionsServiceChecks.checkTokenWasNotUsedYet
(T token, ActionTokenContext<T> context) static <T extends JsonWebToken>
booleanLoginActionsServiceChecks.doesAuthenticationSessionFromCookieMatchOneFromToken
(ActionTokenContext<T> context, AuthenticationSessionModel authSessionFromCookie, String authSessionCompoundIdFromToken) This check verifies that current authentication session is consistent with the one specified in token.ModifierConstructorDescriptionIsActionRequired
(ActionTokenContext<?> context, CommonClientSessionModel.Action expectedAction) IsRedirectValid
(ActionTokenContext<?> context, String redirectUri)