[keycloak-user] HTTP 403 Forbidden on Keycloak.getInstance

Alexander Chriztopher alexander.chriztopher at gmail.com
Fri Dec 19 10:06:56 EST 2014


Hi,

I have a realm with an application called : examples-admin-client
<http://localhost:8080/auth/admin/master/console/#/realms/cv/applications/983779c1-3224-459f-8be9-5c2c443158a8>
and
would like to use it to manage my realm but i get an error
: javax.ws.rs.ClientErrorException: HTTP 403 Forbidden every time i make
the following call :

Keycloak keycloak = Keycloak.getInstance(authServer, "realm-name", "User1",
"password", "examples-admin-client",
"a5890cdf-e1df-40c0-9d50-26ad2f7badde");

When i try to do the same thing with the example realm (i use the json
example-realm.json provided by the keycloak project) this works nicely
actually !

Btw, i can successfully login with the user : User1 with that password.

This is the json for my realm :

{
  "realm": "realm-name",
  "realm-public-key":
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCxwUIE6W3BZYlSxDPpwkknb2ObnrEsGMUJGy3HfNEfkfu9rcY5bxkllLsW32KlR78++xtuI11IE2nuh6nJmUsIKMb55Ez9n7/E9kPmSF6lxavZlQY0HfBnR3ZWgzsoUUz4n7pOhmqHIAGXeuxnMDQ5/upwcolFIZRor1v7oT/H8QIDAQAB",
  "auth-server-url": "http://localhost:8080/auth",
  "ssl-required": "none",
  "resource": "examples-admin-client",
  "credentials": {
    "secret": "a5890cdf-e1df-40c0-9d50-26ad2f7badde"
  }
}

Thanks for any help on this one !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20141219/40b70f9a/attachment.html 


More information about the keycloak-user mailing list