shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <l...@toolazydogs.com>
Subject Re: Struts2 integration
Date Sat, 23 Oct 2010 14:24:43 GMT
PassThruAuthenticationFilter.  That's the ticket.  Thanks.

So it's starting to look like there's not a lot of code; just a simple interceptor.  I do
have a nice example.  I'll get this in this weekend.


Regards,
Alan 

On Oct 18, 2010, at 1:54 PM, Les Hazlewood wrote:

> By default, the 'authc' filter is a FormAuthenticationFilter.  This
> filter assumes that it itself is the 'controller' for processing an
> authentication request and handles a success by redirecting to a
> success URL. This filter is suitable if the underlying view is a
> static html page or raw .jsp page.
> 
> However, if you want an underlying MVC framework to handle the
> requests, show errors and perform the authentication (i.e. a Struts
> controller calls Subject.login), then you will want to use the
> PassThruAuthenticationFilter instead.  You can override the 'authc'
> filter to be the PassThruAuthenticationFilter if you still want to
> reference the actual String 'authc' in your [urls] configuration
> 
> [main]
> ...
> authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
> 
> HTH!
> 
> -- 
> Les Hazlewood
> Founder, Katasoft, Inc.
> Application Security Products & Professional Apache Shiro Support and Training:
> http://www.katasoft.com


Mime
View raw message