[keycloak-dev] keycloak admin access in order to crate users

Stan Silvert ssilvert at redhat.com
Fri Oct 23 07:26:11 EDT 2015


You might also consider importing a new realm at startup.  It won't help 
with delete, but you could just delete the entire database and then 
rebuild it from scratch using realm import.  See the documentation that 
here:
http://keycloak.github.io/docs/userguide/keycloak-server/html/export-import.html

We are planning to improve that feature as well where you can just drop 
a file in a directory instead of specifying it on the command line.

Stan

On 10/23/2015 4:19 AM, Stian Thorgersen wrote:
> We have rest endpoints (as well as a java admin client library) for 
> everything that can be done through the admin console. One issue at 
> the moment is that the default username/password for the admin has to 
> be changed through the admin console. That's something we're going to 
> improve in the future, but for now you'd have to reset the password 
> manually or use for example Sellenium to do it before running your 
> tests. You can take a look at our Arquillian based testsuite that does 
> exactly this: 
> https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian
>
> On 23 October 2015 at 10:14, Ian Hamilton <ihamilto at redhat.com 
> <mailto:ihamilto at redhat.com>> wrote:
>
>     Hi All,
>
>     I am new to redHat and my role is to set up automation test
>     frameworks for developers.redhat.com <http://developers.redhat.com>.
>
>     I would like to know how to gain permissions to Keycloak admin in
>     order create/delete new users on the fly in the tests using the
>     Keycloak REST API? Or what the usual process is for creating users
>     via the Keycloak.
>
>     The reason for this is; when we make a new user for a test, we
>     have a "clean slate" which allows us great control over how to
>     shape that user for our test. And if we make that user using a
>     REST API call, we avoid the time penalty of having to fill out a
>     sign-up form (not to mention having to find any emails involved in
>     confirming an email address).
>
>     I would like to be able to do this locally, as well as in the
>     staging environments.
>
>     Could anyone point me in the right direction?
>
>     thanks in advance,
>     Ian
>     _______________________________________________
>     keycloak-dev mailing list
>     keycloak-dev at lists.jboss.org <mailto:keycloak-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20151023/8510a0c0/attachment-0001.html 


More information about the keycloak-dev mailing list