[keycloak-user] Newbie API question

James Falkner jfalkner at redhat.com
Thu Oct 6 09:25:00 EDT 2016


> Michael Furman <mailto:michael_furman at hotmail.com>
> October 6, 2016 at 2:40 AM
> Hi all,
> I have started to learn Keycloak and I need your help.
>
> 1. Is it possible to resister a new client using REST API?
> http://www.keycloak.org/docs/rest-api/
> I want to use the static client registration.
Yes, it's possible 
<http://www.keycloak.org/docs/rest-api/#_create_a_new_client> - for 
example, this is how the JBoss EAP/Wildfly adapter does automatic client 
registration - it does a POST to /admin/realms/<realm-name>/clients with 
a json blob that looks something like

{
   "clientId": "some-client-id",
   "rootUrl": "",
   "adminUrl": "https://some-host:8443/",
   "baseUrl": "",
   "secret": "",
   "redirectUris": [],
   "bearerOnly": true,
   "publicClient": false,
   "protocol": "openid-connect"
}

-James


More information about the keycloak-user mailing list