Hi, I added Dynamic-Import-Package in Shiro-core so now the Shiro-core bundle can load filters provided by other bundles.
You just need to export your filter throught a org.apache.shiro.* package. Here an example of the ini file: [main] cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager securityManager.cacheManager = $cacheManager authCorsBearer = org.apache.shiro.web.filter.CORSBearerHttpAuthenticationFilter authCorsBearer.loginUrl = https://www.myapp.com logout.redirectUrl = https://www.myapp.com [urls] # use permissive mode to NOT require authentication, our resource Annotations will decide that /myapp-backend/logout = logout /myapp-backend/login = authCorsBearer /myapp-backend/** = authCorsBearer[permissive] The org.apache.shiro.web.filter.CORSBearerHttpAuthenticationFilter is a custom filter include in my app bundle. regards, François [email protected] Le 24/03/2020 à 18:22, Steinar Bang a écrit : >>>>>> Francois Papon <[email protected]>: >> Hi Steinar, >> Why not using the ini file? > Because the last time I tried (january/february 2018 according to git), > the ini file mechanism was unable to resolve classes from other bundles. > > Does that mean that the ini file now works in an OSGi setting? > If so, great news! :-) > > PS I'm on shiro 1.5.1 (on karaf 4.2.8, Java 11).
