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

fernandosouza
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
authentication.
code below.

shiro.ini
[main]
authc.loginUrl = /login.xhtml
authc.successUrl = /index.xhtml

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


[roles]
admin = *
customer = purchase:*

[urls]
/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: http://shiro-user.582556.n2.nabble.com/