Author | Message |
---|---|
lcampo14
Posts: 14
|
Posted 20:17 Aug 19, 2015 |
Hi Dr. Sun, I am still not sure how to redirect a User after he succesfully logs in using spring security based on his role. Can I just create 3 login links one for each type of Role(Admin, Reviewer, User) and use " <security:intercept-url >" to authorize the each landing page based on User role. Example: <a href="/user/admin.html">Admin Login</a> <a href="/user/reviewer.html">Reviewer Login</a> <a href="/user/applicant.html">Applicant Login</a>
|
cysun
Posts: 2935
|
Posted 06:23 Aug 23, 2015 |
This is not very easy to do as <form-login> only allow configuring one defaultRedirectUrl. You need to implement a loginSuccessProcessor or something. See CSNS2 for an example. |