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-ar...
On 23 October 2015 at 10:14, Ian Hamilton <ihamilto(a)redhat.com> wrote:
Hi All,
I am new to redHat and my role is to set up automation test frameworks for
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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev