Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Alex Soto
A little more info. The class appears in many bundles: karaf@root()> bundle:find-class org.eclipse.jetty.security.authentication.BasicAuthenticator Jetty :: Security (229) org/eclipse/jetty/security/authentication/BasicAuthenticator.class Jetty :: Security (230) org/eclipse/jetty/security/aut

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Alex Soto
Thanks for the effort to help me, Achim. I believe the Jetty configuration is being added automatically by PAX-Web, because I see it being created after the container starts, so I think that part is fine. The web.xml is correctly configured too, except I am using BASIC authentication as opposed

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Achim Nierbeck
Hi Alex, a wab is nothing else then a war which is already contains the required Web-ApplicationContext parameter. That's the only difference, and the sample is actually the same ;) Needed to look this up from the "Apache Karaf Cookbook" :) (it's been a while I did write this and the code in pax-

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Alex Soto
Ok, I am not having good luck with this. Using the realm “karaf” and BASIC authentication. Mind that my artifact is a WAB, not a WAR. My web.xml Protected Area /*

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Alex Soto
Ok I saw it now, it was hidden: Test Realm Best regards, Alex soto > On May 11, 2020, at 8:31 AM, Alex Soto wrote: > > Thanks Achin and JB, > > I looked at that example, but that is is WAR, and I am looking for WAB > example. Still, in the ‘web.xml’ file there is no reference to JAAS re

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Alex Soto
Thanks Achin and JB, I looked at that example, but that is is WAR, and I am looking for WAB example. Still, in the ‘web.xml’ file there is no reference to JAAS realm. Where do you indicate the realm name? (I have my own realm separate from the default Karaf one). Actually, it is not fun havi

Re: Possible issue with ServiceLoader.load() inside bundle

2020-05-11 Thread Jean-Baptiste Onofre
That’s probably because SPI load implementation from other artifacts. Regards JB > Le 11 mai 2020 à 13:46, Davi Baldin Tavares a écrit : > > JB, > > After reading of Apache Aires’s Service API 10 times I could figured out: > > a) maven-bundle-plugin changes > > * > osgi.extender; > filter:=

Re: Possible issue with ServiceLoader.load() inside bundle

2020-05-11 Thread Davi Baldin Tavares
JB, After reading of Apache Aires’s Service API 10 times I could figured out: a) maven-bundle-plugin changes * osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)" ., Path/to/merged-elastic-jars … b) Merge all Elastic’s JARs files into a single one...

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Jean-Baptiste Onofre
No rush, I think it’s easier for our users to find "how to" ;) Thanks ! Regards JB > Le 11 mai 2020 à 09:09, Achim Nierbeck a écrit : > > Sure .. > maybe I find some time during this week to create this there ;) > > regards, Achim > > p.s. this just reminds me, that those samples are also

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Achim Nierbeck
Sure .. maybe I find some time during this week to create this there ;) regards, Achim p.s. this just reminds me, that those samples are also in the "Apache Karaf Cookbook" :) Am Mo., 11. Mai 2020 um 06:32 Uhr schrieb Jean-Baptiste Onofre < j...@nanthrax.net>: > Maybe worth to add this in the K