Hi again,

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()));
           formparams.add(new BasicNameValuePair("email",user.getEmail()));

           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