Announcement Announcement Module
Collapse
No announcement yet.
Spring-security-core and two login pages Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring-security-core and two login pages

    Is there any way to have two login pages (in grails) that each one redirects to a specified default url?

    admin/login -> redirect to /admin/dashboard
    user/login -> redirect to /user/dashboard

    Thanks!

  • #2
    This answer on Stack Overflow should help. It may not provide the exact answer you are looking for, but it should give you enough information to get what you need.

    Comment


    • #3
      Thanks Rob, I've found a similar solution in Grails user list, but the real problem is that I need two different login pages, the layout and some rules are different from each one.

      Comment


      • #4
        Since Spring 3.1 you can have multiple <http/> elements. Here you can define different form-login elements for different patterns.

        Comment


        • #5
          Originally posted by spgmx View Post
          Since Spring 3.1 you can have multiple <http/> elements. Here you can define different form-login elements for different patterns.
          Hi spgmx, thank you! I think that this is the solution, but I believe I'll need to wait until it is implemented by spring-security-core grails plugin.

          =/

          Comment


          • #6
            You can create an AuthenticationEntryPoint that will send the user to two different login pages based upon your given rules.

            Comment

            Working...
            X