[keycloak-user] REST API - Bearer Exception

Stian Thorgersen stian at redhat.com
Tue Jun 10 09:16:56 EDT 2014

To access the REST API you need to pass the token in the http headers. How to obtain the token in the first place depends on the type of the application you're trying to invoke the API from. Look at the docs/examples that corresponds to the type of your app (JavaScript, command-line, jax-rs, etc). You also need to make sure the application/client has scope mappings on the required roles.  

----- Original Message -----
> From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
> To: keycloak-user at lists.jboss.org
> Sent: Monday, 9 June, 2014 12:59:41 PM
> Subject: [keycloak-user] REST API - Bearer Exception
> Hi,
> I'm trying to work with the Keycloak REST API, I logged into the
> administration console, and then tried accessing /auth/admin/realms and got
> this exception:
> Failed executing GET /admin/realms:
> org.jboss.resteasy.spi.UnauthorizedException: Bearer
> How should I build my request to be able to get a response? How should I
> authenticate myself in this situation?
> --
> Rodrigo Sasaki
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user

More information about the keycloak-user mailing list