[keycloak-user] Naive Question

Christopher Davies christopher.james.davies at gmail.com
Tue Aug 2 09:58:54 EDT 2016


Yes I have looked at the jetty documentation. I have had less luck with the
Jetty adapter.
I am updating an application so different users will take the entire
package and drop in the keycloak for their system.
I would like to avoid having the users have to modify the war.

I did try dropping the keycloak.json in the war file but I still get an
error locating the war file.
I do not know if this is because the   keycloak.json is in an individual
app file but the security.xml is in a global file.

Thanks for the help so far.

Chris



On Tue, Aug 2, 2016 at 2:40 PM Bruno Oliveira <bruno at abstractj.org> wrote:

> I believe it's possible to define the configuration at `jetty-web.xml`[1]
>
> [1] -
> https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/jetty9-adapter.html#_jetty9_per_war
>
> On 2016-08-02, Christopher Davies wrote:
> > I do not want to have to open the war file just to update / change to
> > keycloak credentials.
> > I am right that the WEB-INF sits inside the war file ?
> > I would like a single security instance for the entire Jetty server
> >
> > Chris
> >
> >
> > On Tue, Aug 2, 2016 at 12:55 PM Sebastien Blanc <sblanc at redhat.com>
> wrote:
> >
> > > Hi,
> > >
> > > Any reasons you don't want to put the keycloak.json in /WEB-INF ?
> > >
> > >     <bean id="adapterDeploymentContext"
> class="org.keycloak.adapters.springsecurity.AdapterDeploymentContextFactoryBean">
> > >         <constructor-arg value="/WEB-INF/keycloak.json" />
> > >     </bean>
> > >
> > > Sebi
> > >
> > > On Tue, Aug 2, 2016 at 1:33 PM, Christopher Davies <
> > > christopher.james.davies at gmail.com> wrote:
> > >
> > >> I am looking at linking our legacy app to Keycloak.
> > >>
> > >> Currently it is a bespoke jetty server, that only serves our war
> files.
> > >> The security.xml is set in config of the server directory.
> > >> I have taken the example setting file from
> > >>
> https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/spring-security-adapter.html
> > >>
> > >> I can see this loading keycloak's spring adapter.
> > >> It fails when searching for Keycloak.json.
> > >>
> > >> I was hoping to be able to drop the Keycloak.json file in the config
> > >> directory.
> > >>
> > >> Hope you can be of assistance. Please feel free to ask if I have
> missed
> > >> any key information.
> > >> I am trying to get up to speed on both KeyCloak and SpringSecurity as
> I
> > >> am a C++ programmer at heart.
> > >>
> > >> Chris
> > >>
> > >>
> > >> _______________________________________________
> > >> keycloak-user mailing list
> > >> keycloak-user at lists.jboss.org
> > >> https://lists.jboss.org/mailman/listinfo/keycloak-user
> > >>
> > >
> > >
>
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
> --
>
> abstractj
> PGP: 0x84DC9914
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160802/e26f9c18/attachment-0001.html 


More information about the keycloak-user mailing list