Hello,
Is there a good tutorial or documentation on how to protect a WAB (Web
Application Bundle) with JAAS authentication?
My Karaf version is 4.2.8. Documentation here
https://karaf.apache.org/manual/latest/webcontainer
<https://karaf.apache.org/manual/latest/webcontainer> is scarce, only referring
to Jetty global config, (even that failed for me). I have multiple WABs and
WARs in the same Karaf container, and I don’t want to apply the same JAAS
authentication to all of them. From the comment:
<!-- =========================================================== -->
<!-- Configure Authentication Realms -->
<!-- Realms may be configured for the entire server here, or -->
<!-- they can be configured for a specific web app in a context -->
<!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
<!-- example). -->
<!-- =========================================================== —>
It looks like is a way ($(jetty.home)/contexts/test.xml ). But this is unclear
on how to apply, and it is Jetty specific.
My preference is for a Jetty agnostic way, for portability reasons. (Maybe
Karaf will change to Undertow in the future)
Best regards,
Alex soto