Hi:
I have similar concerns. I wanted to protect a particular endpoint. Here's
what I have done, so far:
// pom file
org.apache.felix
maven-bundle-plugin
3.3.0
true
true
/
Hi all!
Yes! I've followed the both advices and it works!
I've been able to turn basic authentication on simply and quickly by
dropping a web.xml into the jar of my wab.
I'm trying to find a satisfying project setup to deploy a Polymer web
application in Karaf, if I get good results I'll then shar
Hi Christiano,
you could try with a servlet filter, though since you already have a
Web-ContextPath you are actually already using the WAB approach.
With Pax-Web the file-extension actually doesn't matter. So if you just add
a web.xml to it you should be safe to use the default jaas mechanism
prov
Hello Jean-Baptiste an thank you for the reply!
your approach would be great as I just need the quickest way to protect the
access with a username and password.
The problem is that the application is not a WAR, it is just a bundle with
the that publish HTML/Javascript/CSS resources plus a
Servl
Hi Cristiano,
It depends if you want to use leverage the authentication/authorization to
access to a pattern/url or if you want to use JAAS internally to your
application with a subject.
Basically, imagine you have your servlet where you defined the pattern to /foo
(via the service propertie
Hello All,
How can I implement a Basic HTTP Authentication similar to the one use by
Karaf WebConsole (which I understand uses Jaas) to protect access to HTTP
resources in Karaf?
thanks
Cristiano