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