Our application consists of several OSGi packages that reveal their functionality through RESTful URIs. What is the best way to protect these URIs so that only registered and authorized users can access them? For a regular web application, I would use a web filter to control access to all of these URIs. Is there a way to protect access using only one security filter (or its equivalent) for all these URIs in OSGi? Or do I need to include a security filter in each of the OSGi packages? The container we use is Apache Karaf, if that matters.
source share