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

RealmFailedAuthenticationEvent triggered during successful http programmatic login

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 1.20.0.Final
    • HTTP
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: