Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2377

RealmFailedAuthenticationEvent triggered during successful http programmatic login

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.7.0.Alpha2
    • 1.20.0.Final
    • HTTP
    • None

      After successful authentication during a call to HttpServletRequest.login(username,password) the SecurityRealm receives a 

      org.wildfly.security.auth.server.event.RealmFailedAuthenticationEvent

      This appears to be due to org.wildfly.security.http.HttpAuthenticator.login not calling succeed() on the ServerAuthenticationContext.

      adding 

      authenticationContext.succeed();

      to the login method prior to returning the authorizedIdentity appears to fix the problem.

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: