Thanks for the response Stain. I can get the admin to login to the master realm. When I use that token with the admin API for my own apps realm, it does not work. Is it supposed to work or am I doing something wrong in theory.

Best Regards,

On 15 May 2015 at 12:08, Stian Thorgersen <stian@redhat.com> wrote:
Look at the examples - you can either use the rest api directly (https://github.com/keycloak/keycloak/tree/master/examples/demo-template/admin-access-app) or use the java library (https://github.com/keycloak/keycloak/tree/master/examples/admin-client).

----- Original Message -----
> From: "I-T" <iqbaltalaat@gmail.com>
> To: keycloak-user@lists.jboss.org
> Sent: Thursday, 14 May, 2015 4:02:17 PM
> Subject: [keycloak-user] Keycloak Admin REST API
>
> Hello,
>
> I see that the Keycloak Admin REST API[
> http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/overview-index.html
> ] is what keycloak itself is using whenever you need to add a new app via
> Chrome inspector.
>
> There is an 'Authorization: Bearer KEY' header in every request that the
> Admin UI app makes to Keycloak Server.
>
> I'm unsure where I can get the key from in a Script that I can use for Server
> to Server communications. I want my existing app to migrate to Keycloak and
> I want to be able to create new users on signup as well without having them
> to redirect to the keycloak service. Any help in this regard will be most
> appreciated.
>
> These are my notes for logging in and validating the users through various
> microservices:
> https://www.evernote.com/l/ALEH0fpLM1JLKYaFnbMQxQxLURc5cduo-oc
>
> I want to be able to build something similar for Admin functionalities. Any
> library / scripts that I write while accomplishing this talk will be open
> sourced.
>
> Best Regards,
>
> Iqbal Talaat Bhatti
>
> "If we did all the things we are capable of doing, we would literally astound
> ourselves." - Thomas Edison
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user



--
Iqbal Talaat Bhatti

"If we did all the things we are capable of doing, we would literally astound ourselves." - Thomas Edison