Announcement Announcement Module
Collapse
No announcement yet.
custom login controller in sparklr2 example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • custom login controller in sparklr2 example

    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
    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?

    Comment


    • #3
      you're probably right. i was reading this and figured it would have to work for my case too

      Comment


      • #4
        That looks 100% relevant. But the @RequestMapping for the LoginController is /login (to render the form) not /login.do. Compare the config in sparklr2:

        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" />
        (There's no controller because the login-page is /login.jsp.)

        Comment


        • #5
          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

          Comment

          Working...
          X