----- Original Message -----
From: "Сергій Дзюбін" <kotychok(a)gmail.com>
To: keycloak-user(a)lists.jboss.org
Sent: Sunday, 31 August, 2014 12:01:33 PM
Subject: [keycloak-user] access to IDM form java EJB
Good afternoon.
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
has
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
user, get
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
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user