Class IdpUsernamePasswordForm
java.lang.Object
org.keycloak.authentication.AbstractFormAuthenticator
org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
org.keycloak.authentication.authenticators.broker.IdpUsernamePasswordForm
- All Implemented Interfaces:
Authenticator
,Provider
Same like classic username+password form, but for use in IdP linking.
User identity is optionally established by the preceding idp-create-user-if-unique execution.
In this case username field will be pre-filled (but still changeable).
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
log
Fields inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION, SESSION_INVALID, USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Response
challenge
(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) protected jakarta.ws.rs.core.Response
challenge
(AuthenticationFlowContext context, String error, String field) protected LoginFormsProvider
setupForm
(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, Optional<UserModel> existingUser) protected boolean
validateForm
(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) Methods inherited from class org.keycloak.authentication.authenticators.browser.UsernamePasswordForm
action, authenticate, close, configuredFor, requiresUser, setRequiredActions
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
challenge, createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, setDuplicateUserChallenge, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
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, getRequiredActions
-
Constructor Details
-
IdpUsernamePasswordForm
public IdpUsernamePasswordForm()
-
-
Method Details
-
challenge
protected jakarta.ws.rs.core.Response challenge(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) - Overrides:
challenge
in classUsernamePasswordForm
-
challenge
protected jakarta.ws.rs.core.Response challenge(AuthenticationFlowContext context, String error, String field) - Overrides:
challenge
in classAbstractUsernameFormAuthenticator
-
validateForm
protected boolean validateForm(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) - Overrides:
validateForm
in classUsernamePasswordForm
-
setupForm
protected LoginFormsProvider setupForm(AuthenticationFlowContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, Optional<UserModel> existingUser)
-