<div dir="ltr">You need a bearer token to invoke it. Take a look at <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/direct-access-grants.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/direct-access-grants.html</a> / <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/admin-rest-api.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/admin-rest-api.html</a>.</div><div class="gmail_extra"><br><div class="gmail_quote">On 31 May 2016 at 06:56, Andreas Jung <span dir="ltr"><<a href="mailto:lists@zopyx.com" target="_blank">lists@zopyx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>currently evaluating Keyclock and its REST API in particular.</div><div><br></div><div>I am running standalone.sh and created an 'admin' user with password 'admin'</div><div><br></div><div>My expectation was that the following URL call would work:<br></div><div><br></div><div>
<p><span>wget http://admin:admin@localhost:8080/auth/admin/realms</span></p>
<p><span>--2016-05-30 21:52:34-- http://admin:*password*@localhost:8080/auth/admin/realms</span></p>
<p><span>Resolving localhost... ::1, 127.0.0.1, fe80::1</span></p>
<p><span>Connecting to localhost|::1|:8080... failed: Connection refused.</span></p>
<p><span>Connecting to localhost|127.0.0.1|:8080... connected.</span></p>
<p><span>HTTP request sent, awaiting response... 401 Unauthorized</span></p>
<p><span>Unknown authentication scheme.</span></p>
<p><span></span><br></p>
<p><span>Username/Password Authentication Failed.</span></p><p><span><br></span></p><p><span>...but it does not...any insight?</span></p><span class="HOEnZb"><font color="#888888"><p><span><br></span></p><p><span>Andreas</span></p></font></span></div></div>
<br>_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>