All pages are redirect to login.xhtml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

All pages are redirect to login.xhtml

Hello all,
I'm new to Shiro. I just need to access index.xhtml without authentication,
on my project, but all the pages are redirect to login.xhtml.  
I want that all, users and non-users access index.xhtml pages without
code below.

authc.loginUrl = /login.xhtml
authc.successUrl = /index.xhtml

[hidden email] = password, admin
[hidden email] = userpassword, customer

admin = *
customer = purchase:*

/index.xhtml = anon
/javax.faces.resource/** = anon
/pages/principal/** = anon
/login.xhtml = authc
/logout = logout
/pages/purchases/** = authc
/protected/** = authc, roles[admin]

thanks for all

Sent from: