[keycloak-user] Proxying Registration
conrad at mindless.com
Tue Jun 10 02:26:34 EDT 2014
a requirement of the application I am working on is for one person to very easily be able to add another using their email address.
We must not use the keycloak realm registration page and so I was wondering what the best way to proxy a realm user registration is?
I am trying to use the rest api like this
HttpPost post = new HttpPost(
List<NameValuePair> formparams = new ArrayList<>();
formparams.add(new BasicNameValuePair("username", user.getEmail()));
formparams.add(new BasicNameValuePair("password", user.getPassword()));
UrlEncodedFormEntity form = new UrlEncodedFormEntity(formparams, "UTF-8");
HttpResponse response = client.execute(post);
But I am not sure what the returned entity is, nor how to get the ID of the newly registered user.
Is there another way to do this?
Any help would be greatly appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the keycloak-user