public interface FormAction extends Provider
Modifier and Type | Method and Description |
---|---|
void |
buildPage(FormContext context,
LoginFormsProvider form)
When a FormAuthenticator is rendering the challenge page, even FormAction.buildPage() method will be called
This gives the FormAction the opportunity to add additional attributes to the form to be displayed.
|
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this FormAction configured for the current user?
|
boolean |
requiresUser()
Does this FormAction require that a user be set? For registration, this method will always return false.
|
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
void |
success(FormContext context)
Called after all validate() calls of all FormAction providers are successful.
|
void |
validate(ValidationContext context)
This is the first phase of form processing.
|
void buildPage(FormContext context, LoginFormsProvider form)
context
- form
- void validate(ValidationContext context)
context
- void success(FormContext context)
context
- boolean requiresUser()
boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
session
- realm
- user
- void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Copyright © 2021 JBoss by Red Hat. All rights reserved.