You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by andreys82 <mi...@gmail.com> on 2013/01/21 16:33:03 UTC
Multiple authentication forms
I have two sections (contexts) in my application - customer's and admin's.
I want to separate authentication forms for these sections. If a customer
opens "/customer/*" url in customer's context he should be redirected to
"/customer/login" authentication page. If admin opens "/admin/*" url he
should be redirected to "/admin/login" page. These login pages differ in
design, customer login page have some customer specific information so they
should be separated.
Nevertheless I don't want to create separate filters for the two contexts.
How could I make two different login forms and redirect user to specific
login page depending on the current web context while using only one web
filter? BTW I am using Spring.
--
View this message in context: http://shiro-user.582556.n2.nabble.com/Multiple-authentication-forms-tp7578185.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: Multiple authentication forms
Posted by jleleu <le...@gmail.com>.
Hi,
I'm not sure to understand why you don't want to have two filters.
I think it would be easy to create an authc2
(org.apache.shiro.web.filter.authc.FormAuthenticationFilter) with a new
loginUrl and protect the appropriate urls.
Best regards,
Jérôme
--
View this message in context: http://shiro-user.582556.n2.nabble.com/Multiple-authentication-forms-tp7578185p7578186.html
Sent from the Shiro User mailing list archive at Nabble.com.