I have configured my urls in the following fashion-:

[main]
authc.loginUrl = /login.jsp
authc.successUrl = /home.jsp

[urls]
/login.jsp = anon
/home.jsp = authc
/logout = logout
/account/** = authc

When I log in I remain on the log in page. Why is that ? I have declared
the success url so why am I still remaining on the login page ?

If I replace anon with authc for login.jsp and keep anon and authc for
/home.jsp, it woks fine.

Why is that ? My understanding is that the login.jsp must be visible to
only anonymous users and the /home.jsp must only be visible to
authenticated users.

So why use authc filter in login.jsp and anon filter in home.jsp.

This works fine-:

/login.jsp = authc
/home.jsp = anon, authc
/logout = logout
/account/** = authc

I just dont understand the logic.

The example was taken from -:

https://github.com/pires/simple-shiro-web-app

Reply via email to