Thats right. My solution is to build shiro infrastructure (securitymanager, realms, filterchainresolver) by myself as a beans in blueprint, because I can inject to them other services (like Datasource, or EntityManager). I do not use ini file, and actually I do not use shiro in standard servlet container, because there is Spring for it :) But if you use shiro before, and have ini file, you can create SecurityManager by IniSecurityManagerFactory <https://shiro.apache.org/static/1.3.2/apidocs/src-html/org/apache/shiro/config/IniSecurityManagerFactory.html#line.46> and FilterChainResolver by IniFilterChainResolverFactory <https://shiro.apache.org/static/1.3.2/apidocs/src-html/org/apache/shiro/web/config/IniFilterChainResolverFactory.html#line.43> and set them to your filter. All of this is better to do in activate() method of your filter. And dont forget to install shiro bundles (shiro-core, shiro-web...)
2018-03-20 21:45 GMT+03:00 Steinar Bang <[email protected]>: > >>>>> Steinar Bang <[email protected]>: > > >>>>> Steinar Bang <[email protected]>: > >>> Do you register WebSecurityManager and FilterChainResolver as a > services? > > >> No I haven't. Should I? I thought Pax Whiteboard Extender handles > >> creating the appropriate services? > [snip!] > > (ie. FilterChainResolver was missing) > > Right! Both WebEnvironment and FilterChainResolver are shiro classes, so > of course I (or something else) would need to create something that > provides those services. > > There is no way my code earlier could have actually worked, so something > in how I'm testing it is fooling myself (running old code, probably...). > > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
