karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Lutz <ChristianL...@kreeloo.de>
Subject Re: Using jetty instead of undertow with keycloak possible
Date Sun, 19 Apr 2020 11:17:38 GMT

I tried to get the keycloak integration up and running with karat (4.2.8) cxf (3.3.5) jetty
(9.4.x) and keycloak (9.0.3).

* https://github.com/jboss-fuse/karaf-quickstarts/blob/7.x.redhat-7-x/security/keycloak/fuse-keycloak.adoc#securing-embedded-cxf-server---previous-solution
* https://github.com/jboss-fuse/karaf-quickstarts/blob/7.x.redhat-7-x/security/keycloak/fuse-keycloak.adoc#securing-embedded-cxf-server---new-solution

At first both solutions didn’t work. I found a bug within the jetty adapter. I created PR
for this[1]
With this fix the previous solutions works, now.

However I wasn’t able to get the new solution working. 
The questions is, is it a bug within one of the components pax-web, keycloak adapter or just
a configuration error. 
Does anyone have a running instance with the new solution.

kind regards

[1]: https://github.com/keycloak/keycloak/pull/6978 <https://github.com/keycloak/keycloak/pull/6978>

> Am 07.04.2020 um 23:06 schrieb Christian Lutz <ChristianLutz@kreeloo.de>:
> Hello,
> I just wanted to ask if someone has a running karaf 4.2.8 instance with REST services
protected by keycloak.
> Based on this https://github.com/jboss-fuse/karaf-quickstarts/tree/7.x.redhat-7-x/security/keycloak/keycloak-cxf#testing-embedded-undertow-servlet-engine
> but instead of using cxf with undertow using this approach with jetty.
> If so, did the description work out of box or are any changes necessary?
> For some reason the keycloak-pax-http-jetty feature is commented out.
> https://github.com/keycloak/keycloak/blob/master/distribution/adapters/osgi/features/src/main/resources/features.xml
> Any idea why? 
> Sincerely
> Christian

View raw message