Follow http://jira.codehaus.org/browse/TYNAMO-67. In the one
application I needed this, I'm still using tapestry-security 0.1.0
which allowed these type of contributions and was a separate and my
original effort at integrating jsecurity/shiro. There were a few other
interesting features and I'll merge them in over time, but don't hold
your breath. Out of interest, what's your use case for it? (If it's
just the dislike of the configuration file, that's fine I get it).

Kalle


On Thu, Nov 25, 2010 at 10:06 AM, Kalle Korhonen
<kalle.o.korho...@gmail.com> wrote:
> Whoops. We certainly wanted to make overriding possible
> programmatically. I'm on it, didn't look into the code yet but if it
> doesn't currently work I'll definitely fix it. Which version of
> tapestry-security are you using?
>
> Kalle
>
> On Wed, Nov 24, 2010 at 3:11 AM, anton.litvinenko
> <anton.litvine...@gmail.com> wrote:
>>
>> Hello!
>>
>> I need to override Shiro authc filter. I can do that via shiro.ini file:
>> [main]
>> authc=com.programeter.web.security.RemoteUserAuhtenticationFilter
>>
>> But I am wondering if there's way to achieve the same via XxxModule and
>> configure Shiro via Tynamo Security. Tynamo has a SecurityRequestFilter
>> class, but it seems that section that could help me is commented out:
>>
>> /*
>>        //Apply the acquired and/or configured filters:
>>        Map<String, Filter> filters = getFilters();
>>        if (!CollectionUtils.isEmpty(filters)) {
>>            for (Map.Entry<String, Filter> entry : filters.entrySet()) {
>>                String name = entry.getKey();
>>                Filter filter = entry.getValue();
>>                applyGlobalPropertiesIfNecessary(filter);
>>                if (filter instanceof Nameable) {
>>                    ((Nameable) filter).setName(name);
>>                }
>>                //'init' argument is false, since Spring-configured filters
>> should be initialized
>>                //in Spring (i.e. 'init-method=blah') or implement
>> InitializingBean:
>>                manager.addFilter(name, filter, false);
>>            }
>>        }
>> */
>>
>> Am I missing something? Or it is by design not permitted to override (or add
>> custom) filters via Tapestry IOC?
>>
>> --
>> View this message in context: 
>> http://tapestry-users.832.n2.nabble.com/T5-1-and-Tynamo-Security-override-a-Shiro-Filter-tp5769989p5769989.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to