User Registration and Verification using KeyCloak

3,097 views
Skip to first unread message

Dulanjan Wijesekara

unread,
Mar 1, 2021, 3:43:38 AM3/1/21
to Keycloak User
Hi,

I'm very new to keycloak and i would love to clarify somethings for myself. My task is to figure out whether the following user registration is possible by using keycloak. We already have configured a realm including clients, resources and client policies and permissions.

The Flow:
  1. A User fills the registration form in the web sign up page.
  2. User information will be saved in the web backend.
  3. Web backend sends the registration information to the IDP user registration API.
  4. Web gives a notification to the user to verify email address and mobile number.
  5. IDP send the registration confirmation email to user
  6. IDP verifies the email address.
  7. IDP verifies the mobile number.
  8. IDP redirects the user to the web login page.
I'm seeking help in whether this is possible and if so how to go about on this. 

Thank you,
Dulanjan

Garth

unread,
Mar 1, 2021, 1:32:28 PM3/1/21
to keyclo...@googlegroups.com
For 1-3, you can use Keycloak's registration interface, rather than implementing it yourself. In "Realm Settings"->"Login", you can turn on "User Registration", and Keycloak will activate the registration interface.

For 4, you can turn on the "Verify email" flag in the same admin page. There is no built-in functionality for verifying mobile number, but you could write a custom Registration form and Required Action to do that.

On Mon, Mar 1, 2021, at 9:43 AM, Dulanjan Wijesekara wrote:
> Hi,
>
> I'm very new to keycloak and i would love to clarify somethings for
> myself. My task is to figure out whether the following user
> registration is possible by using keycloak. We already have configured
> a realm including clients, resources and client policies and
> permissions.
>
> The Flow:
> 1. A User fills the registration form in the web sign up page.
> 2. User information will be saved in the web backend.
> 3. Web backend sends the registration information to the IDP user
> registration API.
> 4. Web gives a notification to the user to verify email address and
> mobile number.
> 5. IDP send the registration confirmation email to user
> 6. IDP verifies the email address.
> 7. IDP verifies the mobile number.
> 8. IDP redirects the user to the web login page.
> I'm seeking help in whether this is possible and if so how to go about
> on this.
>
> Thank you,
> Dulanjan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Keycloak User" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to keycloak-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/keycloak-user/431dcdf8-8860-4099-8d60-4339279218fen%40googlegroups.com <https://groups.google.com/d/msgid/keycloak-user/431dcdf8-8860-4099-8d60-4339279218fen%40googlegroups.com?utm_medium=email&utm_source=footer>.

Thomas Darimont

unread,
Mar 1, 2021, 1:49:49 PM3/1/21
to Garth, Keycloak User
I have a brief example for requesting additional user info, e.g. mobile phone number, during registration with a required action in my extension-playground: https://github.com/thomasdarimont/keycloak-extension-playground/tree/master/custom-required-action

Perhaps this can serve as a start for your requirement.

Cheers,
Thomas


Garth

unread,
Mar 1, 2021, 1:51:14 PM3/1/21
to Thomas Darimont, keyclo...@googlegroups.com
This is awesome. Thank you for sharing!
> > > an email to keycloak-use...@googlegroups.com <mailto:keycloak-user%2Bunsu...@googlegroups.com>.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msgid/keycloak-user/431dcdf8-8860-4099-8d60-4339279218fen%40googlegroups.com <https://groups.google.com/d/msgid/keycloak-user/431dcdf8-8860-4099-8d60-4339279218fen%40googlegroups.com?utm_medium=email&utm_source=footer>.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Keycloak User" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com <mailto:keycloak-user%2Bunsu...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages