>>>>> Francois Papon <[email protected]>:
> Hi Steinar, > I started some test projects, you can take a look here: > https://github.com/fpapon/shiro-labs thanks! I may be able to replace the deprecated WebIniSecurityManagerFactory with stuff from here: https://github.com/fpapon/shiro-labs/blob/master/karaf-jaxrs/src/main/java/fr/openobject/labs/shiro/karaf/jaxrs/ShiroService.java#L48 Note that there are two Shiro interfaces (there may be more, but those two at least), where it may be best to have one bundle per implementation of the service. The two interfaces are Realm and SessionDAO. I have one DS component implementing JdbcRealm and exposing a Realm service, and one component implementing MemorySessio and exposing a SessionDAO service. https://github.com/steinarb/authservice/blob/master/authservice.web.security.dbrealm/src/main/java/no/priv/bang/authservice/web/security/dbrealm/AuthserviceDbRealm.java#L25 https://github.com/steinarb/authservice/blob/master/authservice.web.security.memorysession/src/main/java/no/priv/bang/authservice/web/security/memorysession/MemorySession.java#L23 The idea is that one could pick the realm (JDBC, LDAP, shiro.ini password), and session manager, simply by requiring karaf features. I'm already using a shiro.ini-backed realm in the unit tests, since that is much cheaper to start and initialize than the JdbcRealm. For session managemen used by my "cross-webapp-poor-man's-single-signon" I'm using a simple MemorySession, but one could potentially have a persistent session management based on EHCache.
