<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Well, the adapter does support loading the keycloak.json file from anywhere on the class path. Jetty AFAIK does include&nbsp;jetty/resources on the class path. So, you could put keycloak.json there and if you start the server with the option below it should work:<div class=""><br class=""></div><div class="">-Dkeycloak.configurationFile:ā€¯classpath:keycloak.json"<br class=""><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Scott Rossillo</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Smartling | Senior Software Engineer</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:srossillo@smartling.com" class="">srossillo@smartling.com</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
</div>
</div></div><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 2, 2016, at 8:56 AM, Christopher Davies &lt;<a href="mailto:christopher.james.davies@gmail.com" class="">christopher.james.davies@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I do not want to have to open the war file just to update / change to keycloak credentials.<div class="">I am right that the&nbsp;<span style="color:rgb(33,33,33);line-height:1.5" class="">WEB-INF sits inside the war file ?</span></div><div class=""><font color="#212121" class="">I would like a single security instance for the entire Jetty server</font></div><div class=""><font color="#212121" class=""><br class=""></font></div><div class=""><font color="#212121" class="">Chris</font></div><div class=""><font color="#212121" class=""><br class=""></font></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Aug 2, 2016 at 12:55 PM Sebastien Blanc &lt;<a href="mailto:sblanc@redhat.com" class="">sblanc@redhat.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>Any reasons you don't want to put the keycloak.json in /WEB-INF ? <br class=""></div><br class=""><pre class=""><code class="">    &lt;bean id="adapterDeploymentContext" class="org.keycloak.adapters.springsecurity.AdapterDeploymentContextFactoryBean"&gt;
        &lt;constructor-arg value="/WEB-INF/keycloak.json" /&gt;
    &lt;/bean&gt;</code></pre>Sebi<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 2, 2016 at 1:33 PM, Christopher Davies <span dir="ltr" class="">&lt;<a href="mailto:christopher.james.davies@gmail.com" target="_blank" class="">christopher.james.davies@gmail.com</a>&gt;</span> wrote:<br class=""></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">I am looking at linking our legacy app to Keycloak.<div class=""><br class=""></div><div class="">Currently it is a bespoke jetty server, that only serves our war files.</div><div class="">The security.xml is set in config of the server directory.</div><div class="">I have taken the example setting file from&nbsp;<a href="https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/spring-security-adapter.html" target="_blank" class="">https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/spring-security-adapter.html</a></div><div class=""><br class=""></div><div class="">I can see this loading keycloak's spring adapter.</div><div class="">It fails when searching for Keycloak.json.</div><div class=""><br class=""></div><div class="">I was hoping to be able to drop the&nbsp;<span style="line-height:1.5" class="">Keycloak.json file in the config directory.</span></div><div class=""><span style="line-height:1.5" class=""><br class=""></span></div><div class=""><span style="line-height:1.5" class="">Hope you can be of assistance. Please feel free to ask if I have missed any key information.</span></div><div class=""><span style="line-height:1.5" class="">I am trying to get up to speed on both KeyCloak and SpringSecurity as I am a C++ programmer at heart.</span></div><div class=""><span style="line-height:1.5" class=""><br class=""></span></div><div class=""><span style="line-height:1.5" class="">Chris</span></div><div class=""><span style="line-height:1.5" class=""><br class=""></span></div></div>
<br class=""></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="">
keycloak-user mailing list<br class="">
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank" class="">keycloak-user@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br class=""></blockquote></div><br class=""></div>
</blockquote></div>
_______________________________________________<br class="">keycloak-user mailing list<br class=""><a href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</div></blockquote></div><br class=""></div></div></body></html>