You'll need a bearer token to invoke the services. A token can be obtained
either using the direct grant (or resource owner password grant as oauth
calls it) or using the standard web flow.
Take a look at:
https://github.com/keycloak/keycloak/blob/master/examples/demo-template/a...
Or if you are invoking from Java, simply use our Java admin client lib:
https://github.com/keycloak/keycloak/blob/master/examples/admin-client/sr...
On 27 October 2015 at 07:09, Giulio Vito de Musso <
giulio.vito.demusso(a)gmail.com> wrote:
Hello you all,
I need to configure realms in Keycloak through the Admin WS accessible at
the path
http://KeycloakServer:8081/auth/admin/realms
So in Postman I run the following request
URL:
http://KeycloakServer:8081/auth/admin/realms
Method: POST
Body:
{
"enabled": true,
"id": "TestRealm",
}
I get a 401 Unauthorized response, so I think it is necessary to
authenticate to the Admin WS. But in the docs I cannot find any information
about the type of authentication required and the syntax. Do you know how
to authenticate to the Keycloak WSs?
Thank you
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev