You need a bearer token to invoke it. Take a look at http://keycloak.github.io/docs/userguide/keycloak-server/html/direct-access-grants.htmlhttp://keycloak.github.io/docs/userguide/keycloak-server/html/admin-rest-api.html.

On 31 May 2016 at 06:56, Andreas Jung <lists@zopyx.com> wrote:
Hi there,

currently evaluating Keyclock and its REST API in particular.

I am running standalone.sh and created an 'admin' user with password 'admin'

My expectation was that the following URL call would work:

wget http://admin:admin@localhost:8080/auth/admin/realms

--2016-05-30 21:52:34--  http://admin:*password*@localhost:8080/auth/admin/realms

Resolving localhost... ::1, 127.0.0.1, fe80::1

Connecting to localhost|::1|:8080... failed: Connection refused.

Connecting to localhost|127.0.0.1|:8080... connected.

HTTP request sent, awaiting response... 401 Unauthorized

Unknown authentication scheme.


Username/Password Authentication Failed.


...but it does not...any insight?


Andreas


_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user