Results 1 to 8 of 8

Thread: Spring roo login page

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    17

    Default Spring roo login page

    Hi,

    I am a beginner in spring roo and i want to create a login page for the application. Can someone please give a step by step guide to create a login.

    Than you in advance.

  2. #2
    Join Date
    Apr 2012
    Posts
    17

    Default

    I somehow managed to do this. But when i start the application it automatically goes to the homepage instead of the login page. Is there a way to direct the application to login page automatically withput explicitly typing the url???

  3. #3
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    162

    Default

    Validate at file:

    src/main/resources/META-INF/spring/applicationContext-security.xml

    You have in last intercept url position:

    <intercept-url access="isAuthenticated()" pattern="/**"/>
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

  4. #4
    Join Date
    Apr 2012
    Posts
    17

    Default

    Hi mmartinez,

    Thanx for replying. I changed the applicationContext-security.xml file. Now it gives an error saying "The webpage at http://localhost:8080/asm/login has resulted in too many redirects."
    can you think of any reason?

    thanx

  5. #5
    Join Date
    Apr 2012
    Posts
    17

    Default

    got it sorted out. Anyway thanx alot for your help. I got the job done.

    Thanx

  6. #6
    Join Date
    Aug 2011
    Location
    Seville (Spain)
    Posts
    22

    Default

    Error 404...
    The page dont exist.

  7. #7
    Join Date
    Nov 2012
    Posts
    4

    Default login has multiple redirect...

    Quote Originally Posted by pathfinder92 View Post
    got it sorted out. Anyway thanx alot for your help. I got the job done.

    Thanx

    Can you just explain the steps that you followed to remove the "login has many redirect " problem... If you could help that will be a great help for me as abeginner

  8. #8
    Join Date
    Nov 2012
    Posts
    4

    Default

    Got it...chaged the applicationcontextsecurity.xml as follows
    ...................
    <http auto-config="true" use-expressions="true">
    <form-login login-processing-url="/resources/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t" />
    <logout logout-url="/resources/j_spring_security_logout" />
    <!-- Configure these elements to secure URIs in your application -->
    <intercept-url pattern="/choices/**" access="hasRole('ROLE_ADMIN')" />
    <intercept-url pattern="/authsources/**" access="isAuthenticated()" />
    <intercept-url pattern="/login/**" access="permitAll" />
    <intercept-url pattern="/**" access="isAuthenticated()" />

    </http>
    ...........................


    This made the sense for me...

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
  •