<div dir="ltr">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.<div><br></div><div>Best Regards,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 May 2015 at 12:08, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Look at the examples - you can either use the rest api directly (<a href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/admin-access-app" target="_blank">https://github.com/keycloak/keycloak/tree/master/examples/demo-template/admin-access-app</a>) or use the java library (<a href="https://github.com/keycloak/keycloak/tree/master/examples/admin-client" target="_blank">https://github.com/keycloak/keycloak/tree/master/examples/admin-client</a>).<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "I-T" <<a href="mailto:iqbaltalaat@gmail.com">iqbaltalaat@gmail.com</a>><br>
> To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Thursday, 14 May, 2015 4:02:17 PM<br>
> Subject: [keycloak-user] Keycloak Admin REST API<br>
><br>
> Hello,<br>
><br>
> I see that the Keycloak Admin REST API[<br>
> <a href="http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/overview-index.html" target="_blank">http://docs.jboss.org/keycloak/docs/1.1.0.Final/rest-api/overview-index.html</a><br>
> ] is what keycloak itself is using whenever you need to add a new app via<br>
> Chrome inspector.<br>
><br>
> There is an 'Authorization: Bearer KEY' header in every request that the<br>
> Admin UI app makes to Keycloak Server.<br>
><br>
> I'm unsure where I can get the key from in a Script that I can use for Server<br>
> to Server communications. I want my existing app to migrate to Keycloak and<br>
> I want to be able to create new users on signup as well without having them<br>
> to redirect to the keycloak service. Any help in this regard will be most<br>
> appreciated.<br>
><br>
> These are my notes for logging in and validating the users through various<br>
> microservices:<br>
> <a href="https://www.evernote.com/l/ALEH0fpLM1JLKYaFnbMQxQxLURc5cduo-oc" target="_blank">https://www.evernote.com/l/ALEH0fpLM1JLKYaFnbMQxQxLURc5cduo-oc</a><br>
><br>
> I want to be able to build something similar for Admin functionalities. Any<br>
> library / scripts that I write while accomplishing this talk will be open<br>
> sourced.<br>
><br>
> Best Regards,<br>
><br>
> Iqbal Talaat Bhatti<br>
><br>
> "If we did all the things we are capable of doing, we would literally astound<br>
> ourselves." - Thomas Edison<br>
><br>
</div></div>> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Iqbal Talaat Bhatti<br><br><span><span>"If we did all the things we are capable of doing, we would
literally astound ourselves." - Thomas Edison</span></span><br></div>
</div>