Class AbstractIdpAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
- All Implemented Interfaces:
org.keycloak.authentication.Authenticator,org.keycloak.provider.Provider
- Direct Known Subclasses:
IdpAddOrganizationMemberAuthenticator,IdpAutoLinkAuthenticator,IdpConfirmLinkAuthenticator,IdpConfirmOverrideLinkAuthenticator,IdpCreateUserIfUniqueAuthenticator,IdpEmailVerificationAuthenticator,IdpReviewProfileAuthenticator
public abstract class AbstractIdpAuthenticator
extends Object
implements org.keycloak.authentication.Authenticator
- Author:
- Marek Posolda
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(org.keycloak.authentication.AuthenticationFlowContext context) protected abstract voidactionImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) voidauthenticate(org.keycloak.authentication.AuthenticationFlowContext context) protected abstract voidauthenticateImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) voidclose()static org.keycloak.models.UserModelgetExistingUser(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.sessions.AuthenticationSessionModel authSession) protected voidsendFailureChallenge(org.keycloak.authentication.AuthenticationFlowContext context, jakarta.ws.rs.core.Response.Status status, String eventError, String errorMessage, org.keycloak.authentication.AuthenticationFlowError flowError) voidsetRequiredActions(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabled, configuredFor, getRequiredActions, requiresUser
-
Field Details
-
BROKERED_CONTEXT_NOTE
- See Also:
-
EXISTING_USER_INFO
- See Also:
-
ENFORCE_UPDATE_PROFILE
- See Also:
-
FIRST_BROKER_LOGIN_SUCCESS
- See Also:
-
NESTED_FIRST_BROKER_CONTEXT
- See Also:
-
-
Constructor Details
-
AbstractIdpAuthenticator
public AbstractIdpAuthenticator()
-
-
Method Details
-
authenticate
public void authenticate(org.keycloak.authentication.AuthenticationFlowContext context) - Specified by:
authenticatein interfaceorg.keycloak.authentication.Authenticator
-
action
public void action(org.keycloak.authentication.AuthenticationFlowContext context) - Specified by:
actionin interfaceorg.keycloak.authentication.Authenticator
-
authenticateImpl
protected abstract void authenticateImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) -
actionImpl
protected abstract void actionImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) -
sendFailureChallenge
-
setRequiredActions
public void setRequiredActions(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user) - Specified by:
setRequiredActionsin interfaceorg.keycloak.authentication.Authenticator
-
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-
getExistingUser
public static org.keycloak.models.UserModel getExistingUser(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.sessions.AuthenticationSessionModel authSession)
-