Class IdpCreateUserIfUniqueAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator
org.keycloak.authentication.authenticators.broker.IdpCreateUserIfUniqueAuthenticator
- All Implemented Interfaces:
org.keycloak.authentication.Authenticator,org.keycloak.provider.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(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) protected voidauthenticateImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) protected ExistingUserInfocheckExistingUser(org.keycloak.authentication.AuthenticationFlowContext context, String username, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) booleanconfiguredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user) protected StringgetUsername(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) booleanprotected voiduserRegisteredSuccess(org.keycloak.authentication.AuthenticationFlowContext context, org.keycloak.models.UserModel registeredUser, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.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(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) - Specified by:
actionImplin classAbstractIdpAuthenticator
-
authenticateImpl
protected void authenticateImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) - Specified by:
authenticateImplin classAbstractIdpAuthenticator
-
checkExistingUser
protected ExistingUserInfo checkExistingUser(org.keycloak.authentication.AuthenticationFlowContext context, String username, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) -
getUsername
protected String getUsername(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) -
userRegisteredSuccess
protected void userRegisteredSuccess(org.keycloak.authentication.AuthenticationFlowContext context, org.keycloak.models.UserModel registeredUser, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext) -
requiresUser
public boolean requiresUser() -
configuredFor
public boolean configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
-