----- Original Message -----
From: "Сергій Дзюбін" <kotychok(a)gmail.com>
Sent: Sunday, 31 August, 2014 12:01:33 PM
Subject: [keycloak-user] access to IDM form java EJB
My English is not very good, so just apologize. I really liked your project
Keycloak. I've had a number of questions on it, in which I ask your help. So
1 How REST interface through JSApp create user with specified password. In my
case I "PUT" reset-password and get a "Access to the specified resource
been forbidden", but without password is ok.
You need to first create the user, then reset the password for the user afterwards (the
password can best to temporary to require the user to change on next login)
2 How to check in Stateless EJB which role belongs to a particular
his ID, etc. That access to users IDM from the business code.
Thank you very much.
You can use the standard JavaEE mechanism for this (EJBContext.isCallerInRole)
keycloak-user mailing list