[keycloak-user] URL/Auth of REST API

Stian Thorgersen sthorger at redhat.com
Tue May 31 01:11:48 EDT 2016


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

On 31 May 2016 at 06:56, Andreas Jung <lists at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160531/b41eb847/attachment-0001.html 


More information about the keycloak-user mailing list