Re: Simply Protect HTTP servlet

2019-06-04 Thread cooshal
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 /

Re: Simply Protect HTTP servlet

2017-05-02 Thread Cristiano Costantini
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

Re: Simply Protect HTTP servlet

2017-04-29 Thread Achim Nierbeck
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

Re: Simply Protect HTTP servlet

2017-04-29 Thread Cristiano Costantini
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

Re: Simply Protect HTTP servlet

2017-04-28 Thread Jean-Baptiste Onofré
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

Simply Protect HTTP servlet

2017-04-28 Thread Cristiano Costantini
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