Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21323

http-custom-mechanism is accepting the req with invalid password

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Quickstarts
    • None
    • ---
    • ---

      When a wrong password is in use, even if the Authentication verification callback returns false, the logic of the custom mechanism continue instead of returning. In case of a valid Authorization group, the reply is considered complete.

      We can see in the documentation that a wrong password (hard coded to `password`) is in use.

      A return seems missing there: https://github.com/wildfly/quickstart/blob/main/http-custom-mechanism/custom-module/src/main/java/org/jboss/as/quickstart/http_custom_mechanism/CustomHeaderHttpAuthenticationMechanism.java#L100

              emartins@redhat.com Eduardo Martins
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: