Results 1 to 6 of 6

Thread: Spring-security-core and two login pages

Hybrid View

  1. #1

    Unhappy 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. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    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.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3

    Default

    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.

  4. #4
    Join Date
    Mar 2007
    Posts
    561

    Default

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

  5. #5

    Unhappy

    Quote 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.

    =/

  6. #6
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    You can create an AuthenticationEntryPoint that will send the user to two different login pages based upon your given rules.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •