[keycloak-dev] Trying to use Admin WS but got 401 Unauthorized

Giulio Vito de Musso giulio.vito.demusso at gmail.com
Tue Oct 27 10:09:37 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20151027/cea0c248/attachment-0001.html 


More information about the keycloak-dev mailing list