<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Thank you Rodrigo!!&nbsp;</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>Can you please clarify the following?</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>1. Admin-client is that something released in beta4 release, is that
 right?</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>2. In order to use REST API in a out of box Keycloak service, don't you need Username, password and either public client id or combination of client id and secret.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>3. Also for the 1st time login, you may need to change the admin password. can this be done through this Admin client</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>4. By default the Direct Grant access
 API is disabled for the "master" realm, can this also be modified through Admin client.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span>My use case is Keycloak will be part of our product and all the 1st time setting +configuration should be done during installation step without end user logging into keycloak admin console.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0,
 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Currently I am inclined towards using a &nbsp;JSON to import a new realm that our product can use which are pre-configured with appropriate values. Not sure if there is any other better way of dealing with it.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;
 background-color: transparent;">Best</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Kamal</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><span><br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Rodrigo Sasaki &lt;rodrigopsasaki@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Kamal Jagadevan
 &lt;j.kamal@ymail.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "keycloak-user@lists.jboss.org" &lt;keycloak-user@lists.jboss.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 14, 2014 2:38 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [keycloak-user] Alternative ways to reset password<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8532086432"><div><div dir="ltr">I believe I can help you with this one. The Keycloak team can correct me if I say anything inaccurate.<div><br clear="none"></div><div>There is an admin-client bundled with Keycloak that can be used to access the Keycloak REST API, it's basically a Java REST client for the REST API that they provide and is documented here:&nbsp;<a rel="nofollow" shape="rect" target="_blank"
 href="http://docs.jboss.org/keycloak/docs/1.0-beta-4/rest-api/overview-index.html">http://docs.jboss.org/keycloak/docs/1.0-beta-4/rest-api/overview-index.html</a></div>
<div><br clear="none"></div><div>Basically what you need is an OAuthClient or an Application, and a User and you can alter information like you requested.</div><div><br clear="none"></div><div>The source is here:&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="https://github.com/keycloak/keycloak/tree/master/integration/admin-client">https://github.com/keycloak/keycloak/tree/master/integration/admin-client</a></div>
<div>And you can add it as a maven dependency as well:&nbsp;<a rel="nofollow" shape="rect" target="_blank" href="http://maven-repository.com/artifact/org.keycloak/keycloak-admin-client/1.0-beta-4">http://maven-repository.com/artifact/org.keycloak/keycloak-admin-client/1.0-beta-4</a></div>
</div><div class="yiv8532086432gmail_extra"><br clear="none"><br clear="none"><div class="yiv8532086432gmail_quote">On Thu, Aug 14, 2014 at 3:08 PM, Kamal Jagadevan <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:j.kamal@ymail.com" target="_blank" href="mailto:j.kamal@ymail.com">j.kamal@ymail.com</a>&gt;</span> wrote:<br clear="none">
<blockquote class="yiv8532086432gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="qtdSeparateBR"><br><br></div><div class="yiv8532086432yqt4028693206" id="yiv8532086432yqt12857"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255);">
<div>Hello,</div><div>&nbsp; Are there any alternative ways like command line or shortcuts to update the Realm settings or user settings in Keycloak.</div><div>Though it is possible to set it up through Admin console but trying to avoid the setup steps through UI.</div>
<div><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Looks like during application bootstrap these are few settings like admin password to be reset &amp; Direct Grant API access being disabled.</div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Is there any other better way to modify other than UI or directly updating them in database.<br clear="none">
</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">
<br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Please let us know. This is critical for our post install steps while integrating with Keycloak.<br clear="none">
</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;"><br clear="none"></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">
Thanks</div><span class="yiv8532086432HOEnZb"><font color="#888888"></font></span><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">
Kamal<br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
keycloak-user mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org" target="_blank" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div>
</div></div>
</div></div></div><br><br></div> </div> </div>  </div></body></html>