Class RegistrationUserCreation
java.lang.Object
org.keycloak.authentication.forms.RegistrationUserCreation
- All Implemented Interfaces:
ConfigurableAuthenticatorFactory
,FormAction
,FormActionFactory
,ConfiguredProvider
,Provider
,ProviderFactory<FormAction>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildPage
(FormContext context, LoginFormsProvider form) void
close()
boolean
configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) create
(KeycloakSession session) getId()
getOrCreateUserProfile
(FormContext formContext, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) Get user profile instance for current HTTP request (KeycloakSession) and for given context.void
init
(Config.Scope config) boolean
boolean
void
postInit
(KeycloakSessionFactory factory) boolean
void
setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
success
(FormContext context) void
validate
(ValidationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
RegistrationUserCreation
public RegistrationUserCreation()
-
-
Method Details
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
validate
- Specified by:
validate
in interfaceFormAction
-
buildPage
- Specified by:
buildPage
in interfaceFormAction
-
success
- Specified by:
success
in interfaceFormAction
-
requiresUser
public boolean requiresUser()- Specified by:
requiresUser
in interfaceFormAction
-
configuredFor
- Specified by:
configuredFor
in interfaceFormAction
-
setRequiredActions
- Specified by:
setRequiredActions
in interfaceFormAction
-
isUserSetupAllowed
public boolean isUserSetupAllowed()- Specified by:
isUserSetupAllowed
in interfaceConfigurableAuthenticatorFactory
-
close
public void close()- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<FormAction>
-
getDisplayType
- Specified by:
getDisplayType
in interfaceConfigurableAuthenticatorFactory
-
getReferenceCategory
- Specified by:
getReferenceCategory
in interfaceConfigurableAuthenticatorFactory
-
isConfigurable
public boolean isConfigurable()- Specified by:
isConfigurable
in interfaceConfigurableAuthenticatorFactory
-
getRequirementChoices
- Specified by:
getRequirementChoices
in interfaceConfigurableAuthenticatorFactory
-
create
- Specified by:
create
in interfaceProviderFactory<FormAction>
-
init
- Specified by:
init
in interfaceProviderFactory<FormAction>
-
postInit
- Specified by:
postInit
in interfaceProviderFactory<FormAction>
-
getId
- Specified by:
getId
in interfaceProviderFactory<FormAction>
-
getOrCreateUserProfile
public UserProfile getOrCreateUserProfile(FormContext formContext, jakarta.ws.rs.core.MultivaluedMap<String, String> formData) Get user profile instance for current HTTP request (KeycloakSession) and for given context. This assumes that there is single user registered within HTTP request, which is always the case in Keycloak
-