Hello keycloak-team,
we are facing a problem with the user registration we don't know how to solve proper.
Situation:
We do have a Web-Client and our own cxf REST endpoints. We secured it with keycloak. After
we created a
keycloak cxf admin client (see: [1]) it works realy nice.
Currently we add the user manually, because we have to create serveral authorization
resources. Something you
described within the photoz example. [2]
Question:
How would you create your own user registration? We tried to adapt the existing user
registration, we added additional
input form for the new user. Then we created an event provider listining to the
registration event.
If a registration happens this provider calls our private REST endpoint, to create all
groups
and authorization resources for newly created user. This approach isn't very elegant.
All of this is necessary because
to create the corresponding authorization resources for a new user we need some id only
our REST service is able to provide.
E.g. /cxf/api/v1/dealers/{id}
Any idea how to solve this in a more elegant way?
[1]:
https://github.com/ChristianLutz/keycloak-cxf-admin-client
[2]:
https://github.com/keycloak/keycloak/tree/master/examples/authz/photoz
Mit freundlichen Grüßen / with best regards
Christian