[keycloak-user] User creation
Vlasta Ramik
vramik at redhat.com
Fri Apr 12 05:14:19 EDT 2019
On 4/12/19 10:49 AM, Pavel Drankov wrote:
>
> registration should be an atomic
>
> Sure, I agree with you. But, a user is created after the first step by
> default. How can I make the user creation process consisted of two
> steps atomic?
I suppose you've implemented custom SPI execution [1],
Then in admin console in "Authentication" tab you should make a copy of
"Registration" flow. Then you have to add new execution [Actions -> Add
execution] (your custom execution with sms validation) to "Copy Of
Registration Registration Form" and then you make the execution "REQUIRED".
[1]
https://www.keycloak.org/docs/latest/server_development/index.html#_providers
>
> Best wishes,
> Pavel
>
>
> On Fri, 12 Apr 2019 at 09:54, Vlasta Ramik <vramik at redhat.com
> <mailto:vramik at redhat.com>> wrote:
>
> Hey Pavel,
>
> inline
>
> On 4/10/19 5:36 PM, Pavel Drankov wrote:
> > Hello,
> >
> > I'm trying to implement a two-step registration process based
> keylock. On
> > the first step enters the same information as in the default
> registration
> > form, but with the addition of telephone number. On the second
> step, he
> > enters a code received via an SMS message.
> >
> > The problem I faced is that if a user successfully filled the
> first step
> > registration form and failed to enter a valid code on the second
> step, he
> > is not able to use the same email address on the first
> step(because of "Email
> > already exists." error). Is there a way to clean up not fully
> registered
> > users and allow them to re-register if they have not finished
> all the step
> > from the registration flow.
>
> It doesn't sound right, I think the registration should be an atomic
> operation, so either both steps are successful and user is
> registered or
> the user is not registered.
>
> To tell more I'd need to know more information how you've
> developed the
> described functionality.
>
> Regards,
>
> V.
>
> >
> > Best wishes,
> > Pavel
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>
More information about the keycloak-user
mailing list