<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">We have admin-client and the example is
in the directory "admin-client" of example distribution, also
there is some docs here :
<a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/admin-rest-api.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/admin-rest-api.html</a><br>
<br>
However our admin client doesn't support configuration through
JSON file - it's all programmatic configuration for creating
"Keycloak" object as you can see in the example. You can
externalize to JSON in your own app if you want configuration
externalized.<br>
<br>
Also we don't support the service accounts for admin client ATM.
Currently you always need admin user and his password available
and "Direct access grant" is used under the hood by admin-client
to authenticate admin. Feel free to create JIRA to support Service
account for calling admin-client. It makes sense to support this
IMO.<br>
<br>
Marek<br>
<br>
<br>
On 24/03/16 23:13, Hristo Stoyanov wrote:<br>
</div>
<blockquote
cite="mid:CAHiHDeT8mqbQf-1-huoW9cqh7QPxKqhrPn9FsxbdE2k5MvfQng@mail.gmail.com"
type="cite">
<p dir="ltr">Hi all,<br>
I am trying to do this:<br>
1. Have a war deployed in wildfly10<br>
2. Need to instantiate a kc rest admin service and use the app
service account<br>
3. Need to manipulate user attributes and roles as the app runs
via the rest admin API.</p>
<p dir="ltr">I see some examples, but they are heavy on servlet
configuration and low level HTTP header manipulations. I need
something that picks the configuration from the adapter (not
reading json conf) and use JEE client jax-rs 2.0 to call KC. Any
pointers/sample code will be appreciated! Thanks!<br>
/Hristo Stoyanov</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>