hi,
how do i set up a custom login controller instead of the one already defined in the xml?
i thought it would just take to create a @Controller LoginController with "login.do" as @RequestMapping but that's not quite working out now.
hi,
how do i set up a custom login controller instead of the one already defined in the xml?
i thought it would just take to create a @Controller LoginController with "login.do" as @RequestMapping but that's not quite working out now.
2+2=5
Out of the box, sparklr uses Spring Security form login, so /login.do is not a @RequestMapping. You are free to change that to any authentication mechanism you like. Maybe this is a question for the main Spring Security forum?
That looks 100% relevant. But the @RequestMapping for the LoginController is /login (to render the form) not /login.do. Compare the config in sparklr2:
(There's no controller because the login-page is /login.jsp.)Code:<form-login authentication-failure-url="/login.jsp?authentication_error=true" default-target-url="/index.jsp" login-page="/login.jsp" login-processing-url="/login.do" />
as it happens, i figured that bit out 2 minutes after posting here.
still some issue.
posted on Spring Security section (http://bit.ly/MK778A)
thanks
2+2=5