I am using Guice and Shiro and I use the next

addFilterChain("/js/**", ANON);
addFilterChain("/favicon.ico", ANON);
addFilterChain("/**", AUTHC);

This filter specifies the public access to static resources
extracted from here:
http://shiro-user.582556.n2.nabble.com/Spring-and-default-filters-td6338568.html

2012/11/4 Richard Adams <[email protected]>

> Hi Armando
>  I am a new Shiro user and have the exact same problem too. In our case,
> it's not reproducible, it only happens sometimes. Basically after login
> there is sometimes a redirect to a static resource page like a CSS file or
> an image. Login seems to work though, if I reload our main page there is no
> redirect to a login page.
>
>  I was wondering if it had something to do with other filters in the
> filter chain but am currently mystified. What sort of environment are you
> running in?
> We're running Spring MVC version 3.0.5 with Shiro integrated as per the
> Shiro documentation.
>
> Cheers
>  Richard
>
> On 4 Nov 2012, at 11:31, armandoxxx wrote:
>
>  Hey ppl
>>
>> I have a little problem with behavior of shiro default form login.
>>
>> Here is my use case:
>> I clear browser cache, and open login page http://domain/login.jspx
>> (No to the problem) after successful login user is redirected to
>> favico.ico
>> file or some other url (it also happens that I'm redirected back to
>> login.jspx) instead of successUrl.
>> Unless I manually correct URL in browser there is no way I can get to my
>> logged-in page.
>>
>> taken from my shiro.ini
>>
>>
>> any help would be appreciated.
>>
>> Kind regards
>>
>> Armando
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://shiro-user.582556.n2.**
>> nabble.com/Redirect-after-**login-voodoo-tp7577909.html<http://shiro-user.582556.n2.nabble.com/Redirect-after-login-voodoo-tp7577909.html>
>> Sent from the Shiro User mailing list archive at Nabble.com.
>>
>
> Richard Adams
> [email protected]
>
>
>
>
>

Reply via email to