Announcement Announcement Module
Collapse
No announcement yet.
Spring roo login page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      Validate at file:

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

      You have in last intercept url position:

      <intercept-url access="isAuthenticated()" pattern="/**"/>

      Comment


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

        Comment


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

          Thanx

          Comment


          • #6
            Error 404...
            The page dont exist.

            Comment


            • #7
              login has multiple redirect...

              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

              Comment


              • #8
                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...

                Comment

                Working...
                X