Class AbstractIdpAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
- All Implemented Interfaces:
Authenticator
,Provider
- Direct Known Subclasses:
IdpAutoLinkAuthenticator
,IdpConfirmLinkAuthenticator
,IdpCreateUserIfUniqueAuthenticator
,IdpEmailVerificationAuthenticator
,IdpReviewProfileAuthenticator
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
action
(AuthenticationFlowContext context) protected abstract void
actionImpl
(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) void
authenticate
(AuthenticationFlowContext context) protected abstract void
authenticateImpl
(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) void
close()
static UserModel
getExistingUser
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession) protected void
sendFailureChallenge
(AuthenticationFlowContext context, jakarta.ws.rs.core.Response.Status status, String eventError, String errorMessage, AuthenticationFlowError flowError) void
setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabled, configuredFor, getRequiredActions, requiresUser
-
Field Details
-
BROKERED_CONTEXT_NOTE
- See Also:
-
EXISTING_USER_INFO
- See Also:
-
UPDATE_PROFILE_EMAIL_CHANGED
- See Also:
-
ENFORCE_UPDATE_PROFILE
- See Also:
-
BROKER_REGISTERED_NEW_USER
- See Also:
-
FIRST_BROKER_LOGIN_SUCCESS
- See Also:
-
NESTED_FIRST_BROKER_CONTEXT
- See Also:
-
-
Constructor Details
-
AbstractIdpAuthenticator
public AbstractIdpAuthenticator()
-
-
Method Details
-
authenticate
- Specified by:
authenticate
in interfaceAuthenticator
-
action
- Specified by:
action
in interfaceAuthenticator
-
authenticateImpl
protected abstract void authenticateImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) -
actionImpl
protected abstract void actionImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) -
sendFailureChallenge
protected void sendFailureChallenge(AuthenticationFlowContext context, jakarta.ws.rs.core.Response.Status status, String eventError, String errorMessage, AuthenticationFlowError flowError) -
setRequiredActions
- Specified by:
setRequiredActions
in interfaceAuthenticator
-
close
public void close() -
getExistingUser
public static UserModel getExistingUser(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession)
-