Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-979

No need to re-verify credential once authenticated.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.21.Final
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. add the following lines into standalone.xml

                      <security-domain name="test" cache-type="default">
                          <authentication>
                              <login-module code="Simple" flag="required"/>
                          </authentication>
                      </security-domain>
      

      2. start EAP7 and deploy the attached test.war

      3. access http://localhost:8080/test and log in as guest/guest

      4. access http://localhost:8080/test again. then you will see org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid() is invoked

      Show
      1. add the following lines into standalone.xml <security-domain name= "test" cache-type= " default " > <authentication> <login-module code= "Simple" flag= "required" /> </authentication> </security-domain> 2. start EAP7 and deploy the attached test.war 3. access http://localhost:8080/test and log in as guest/guest 4. access http://localhost:8080/test again. then you will see org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid() is invoked

      Description

      Once a user is authenticated, io.undertow.security.impl.CachedAuthenticatedSessionMechanism.sessionManager stores its session. When accessing another secured web resources, io.undertow.security.impl.CachedAuthenticatedSessionMechanism.runCached() verifies a credential cached in sessionManager. It is unnecessry.

      In EAP6, a creadential is not re-verified. EAP7 should do likewise.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  hisanobu.okuda Hisanobu Okuda
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: