Class IdpCreateUserIfUniqueAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
org.keycloak.authentication.authenticators.broker.IdpCreateUserIfUniqueAuthenticator
- All Implemented Interfaces:
Authenticator,Provider
- Direct Known Subclasses:
IdpDetectExistingBrokerUserAuthenticator
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
BROKERED_CONTEXT_NOTE, ENFORCE_UPDATE_PROFILE, EXISTING_USER_INFO, FIRST_BROKER_LOGIN_SUCCESS, NESTED_FIRST_BROKER_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactionImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) protected voidauthenticateImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) protected ExistingUserInfocheckExistingUser(AuthenticationFlowContext context, String username, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) booleanconfiguredFor(KeycloakSession session, RealmModel realm, UserModel user) protected StringgetUsername(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) booleanprotected voiduserRegisteredSuccess(AuthenticationFlowContext context, UserModel registeredUser, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) Methods inherited from class org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
action, authenticate, close, getExistingUser, sendFailureChallenge, setRequiredActionsMethods 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, getRequiredActions
-
Constructor Details
-
IdpCreateUserIfUniqueAuthenticator
public IdpCreateUserIfUniqueAuthenticator()
-
-
Method Details
-
actionImpl
protected void actionImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) - Specified by:
actionImplin classAbstractIdpAuthenticator
-
authenticateImpl
protected void authenticateImpl(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) - Specified by:
authenticateImplin classAbstractIdpAuthenticator
-
checkExistingUser
protected ExistingUserInfo checkExistingUser(AuthenticationFlowContext context, String username, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) -
getUsername
protected String getUsername(AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) -
userRegisteredSuccess
protected void userRegisteredSuccess(AuthenticationFlowContext context, UserModel registeredUser, SerializedBrokeredIdentityContext serializedCtx, BrokeredIdentityContext brokerContext) -
requiresUser
public boolean requiresUser() -
configuredFor
-