<div dir="ltr">Yes I have looked at the jetty documentation. I have had less luck with the Jetty adapter.<div>I am updating an application so different users will take the entire package and drop in the keycloak for their system.</div><div>I would like to avoid having the users have to modify the war.</div><div><br></div><div>I did try dropping the keycloak.json in the war file but I still get an error locating the war file.</div><div>I do not know if this is because the <span style="line-height:1.5">keycloak.json is in an individual app file but the security.xml is </span><span style="line-height:1.5">in a global file.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Thanks for the help so far. </span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Chris</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 2, 2016 at 2:40 PM Bruno Oliveira <<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I believe it's possible to define the configuration at `jetty-web.xml`[1]<br>
<br>
[1] - <a href="https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/jetty9-adapter.html#_jetty9_per_war" rel="noreferrer" target="_blank">https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/jetty9-adapter.html#_jetty9_per_war</a><br>
<br>
On 2016-08-02, Christopher Davies wrote:<br>
> I do not want to have to open the war file just to update / change to<br>
> keycloak credentials.<br>
> I am right that the WEB-INF sits inside the war file ?<br>
> I would like a single security instance for the entire Jetty server<br>
><br>
> Chris<br>
><br>
><br>
> On Tue, Aug 2, 2016 at 12:55 PM Sebastien Blanc <<a href="mailto:sblanc@redhat.com" target="_blank">sblanc@redhat.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > Any reasons you don't want to put the keycloak.json in /WEB-INF ?<br>
> ><br>
> > <bean id="adapterDeploymentContext" class="org.keycloak.adapters.springsecurity.AdapterDeploymentContextFactoryBean"><br>
> > <constructor-arg value="/WEB-INF/keycloak.json" /><br>
> > </bean><br>
> ><br>
> > Sebi<br>
> ><br>
> > On Tue, Aug 2, 2016 at 1:33 PM, Christopher Davies <<br>
> > <a href="mailto:christopher.james.davies@gmail.com" target="_blank">christopher.james.davies@gmail.com</a>> wrote:<br>
> ><br>
> >> I am looking at linking our legacy app to Keycloak.<br>
> >><br>
> >> Currently it is a bespoke jetty server, that only serves our war files.<br>
> >> The security.xml is set in config of the server directory.<br>
> >> I have taken the example setting file from<br>
> >> <a href="https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/spring-security-adapter.html" rel="noreferrer" target="_blank">https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/spring-security-adapter.html</a><br>
> >><br>
> >> I can see this loading keycloak's spring adapter.<br>
> >> It fails when searching for Keycloak.json.<br>
> >><br>
> >> I was hoping to be able to drop the Keycloak.json file in the config<br>
> >> directory.<br>
> >><br>
> >> Hope you can be of assistance. Please feel free to ask if I have missed<br>
> >> any key information.<br>
> >> I am trying to get up to speed on both KeyCloak and SpringSecurity as I<br>
> >> am a C++ programmer at heart.<br>
> >><br>
> >> Chris<br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> keycloak-user mailing list<br>
> >> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> >> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> >><br>
> ><br>
> ><br>
<br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div>