Class AbstractUsernameFormAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.AbstractFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
-
- All Implemented Interfaces:
Authenticator
,Provider
- Direct Known Subclasses:
BasicAuthAuthenticator
,OTPFormAuthenticator
,SpnegoAuthenticator
,UsernamePasswordForm
public abstract class AbstractUsernameFormAuthenticator extends AbstractFormAuthenticator
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTEMPTED_USERNAME
static String
REGISTRATION_FORM_ACTION
protected static String
USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
-
Constructor Summary
Constructors Constructor Description AbstractUsernameFormAuthenticator()
-
Method Summary
-
Methods inherited from class org.keycloak.authentication.AbstractFormAuthenticator
close
-
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, authenticate, configuredFor, getRequiredActions, requiresUser, setRequiredActions
-
-
-
-
Field Detail
-
REGISTRATION_FORM_ACTION
public static final String REGISTRATION_FORM_ACTION
- See Also:
- Constant Field Values
-
ATTEMPTED_USERNAME
public static final String ATTEMPTED_USERNAME
- See Also:
- Constant Field Values
-
USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
protected static final String USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
action
public void action(AuthenticationFlowContext context)
Description copied from interface:Authenticator
Called from a form action invocation.
-
challenge
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error)
-
challenge
protected javax.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error, String field)
-
createLoginForm
protected javax.ws.rs.core.Response createLoginForm(LoginFormsProvider form)
-
disabledByBruteForceError
protected String disabledByBruteForceError()
-
disabledByBruteForceFieldError
protected String disabledByBruteForceFieldError()
-
setDuplicateUserChallenge
protected javax.ws.rs.core.Response setDuplicateUserChallenge(AuthenticationFlowContext context, String eventError, String loginFormError, AuthenticationFlowError authenticatorError)
-
runDefaultDummyHash
protected void runDefaultDummyHash(AuthenticationFlowContext context)
-
dummyHash
protected void dummyHash(AuthenticationFlowContext context)
-
testInvalidUser
public void testInvalidUser(AuthenticationFlowContext context, UserModel user)
-
enabledUser
public boolean enabledUser(AuthenticationFlowContext context, UserModel user)
-
validateUserAndPassword
public boolean validateUserAndPassword(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> inputData)
-
validateUser
public boolean validateUser(AuthenticationFlowContext context, javax.ws.rs.core.MultivaluedMap<String,String> inputData)
-
validatePassword
public boolean validatePassword(AuthenticationFlowContext context, UserModel user, javax.ws.rs.core.MultivaluedMap<String,String> inputData, boolean clearUser)
-
isDisabledByBruteForce
protected boolean isDisabledByBruteForce(AuthenticationFlowContext context, UserModel user)
-
getDefaultChallengeMessage
protected String getDefaultChallengeMessage(AuthenticationFlowContext context)
-
isUserAlreadySetBeforeUsernamePasswordAuth
protected boolean isUserAlreadySetBeforeUsernamePasswordAuth(AuthenticationFlowContext context)
-
-