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:
IdpAutoLinkAuthenticator
,IdpConfirmLinkAuthenticator
,IdpCreateUserIfUniqueAuthenticator
,IdpEmailVerificationAuthenticator
,IdpReviewProfileAuthenticator
public abstract class AbstractIdpAuthenticator extends Object implements org.keycloak.authentication.Authenticator
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description static String
BROKER_REGISTERED_NEW_USER
static String
BROKERED_CONTEXT_NOTE
static String
ENFORCE_UPDATE_PROFILE
static String
EXISTING_USER_INFO
static String
FIRST_BROKER_LOGIN_SUCCESS
static String
NESTED_FIRST_BROKER_CONTEXT
static String
UPDATE_PROFILE_EMAIL_CHANGED
-
Constructor Summary
Constructors Constructor Description AbstractIdpAuthenticator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
action(org.keycloak.authentication.AuthenticationFlowContext context)
protected abstract void
actionImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext)
void
authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
protected abstract void
authenticateImpl(org.keycloak.authentication.AuthenticationFlowContext context, SerializedBrokeredIdentityContext serializedCtx, org.keycloak.broker.provider.BrokeredIdentityContext brokerContext)
void
close()
static org.keycloak.models.UserModel
getExistingUser(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.sessions.AuthenticationSessionModel authSession)
protected void
sendFailureChallenge(org.keycloak.authentication.AuthenticationFlowContext context, javax.ws.rs.core.Response.Status status, String eventError, String errorMessage, org.keycloak.authentication.AuthenticationFlowError flowError)
void
setRequiredActions(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
-
-
-
Field Detail
-
BROKERED_CONTEXT_NOTE
public static final String BROKERED_CONTEXT_NOTE
- See Also:
- Constant Field Values
-
EXISTING_USER_INFO
public static final String EXISTING_USER_INFO
- See Also:
- Constant Field Values
-
UPDATE_PROFILE_EMAIL_CHANGED
public static final String UPDATE_PROFILE_EMAIL_CHANGED
- See Also:
- Constant Field Values
-
ENFORCE_UPDATE_PROFILE
public static final String ENFORCE_UPDATE_PROFILE
- See Also:
- Constant Field Values
-
BROKER_REGISTERED_NEW_USER
public static final String BROKER_REGISTERED_NEW_USER
- See Also:
- Constant Field Values
-
FIRST_BROKER_LOGIN_SUCCESS
public static final String FIRST_BROKER_LOGIN_SUCCESS
- See Also:
- Constant Field Values
-
NESTED_FIRST_BROKER_CONTEXT
public static final String NESTED_FIRST_BROKER_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticate
public void authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
authenticate
in interfaceorg.keycloak.authentication.Authenticator
-
action
public void action(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
action
in 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
protected void sendFailureChallenge(org.keycloak.authentication.AuthenticationFlowContext context, javax.ws.rs.core.Response.Status status, String eventError, String errorMessage, org.keycloak.authentication.AuthenticationFlowError flowError)
-
setRequiredActions
public void setRequiredActions(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
- Specified by:
setRequiredActions
in interfaceorg.keycloak.authentication.Authenticator
-
close
public void close()
- Specified by:
close
in 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)
-
-