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

Quickstart http-custom-mechanism: documentation step fails

    XMLWordPrintable

Details

    • Hide
      1. Create a new installation of WildFly (14 will work)
      2. Checkout the quickstart (I was unable to compile 15.x or 'master', so this ticket is technically referencing version 14.x)
      3. Attempt to execute step #3 in the http-custom-mechanism quickstart. This is the step where the configure-security-domain.cli is executed.
      4. Note that the step will not successfully complete. Instead, the following error will be presented:
        The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
        WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
        Step: step-1
        Operation: /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
        Failure: WFLYCTL0369: Required capabilities are not available:
            org.wildfly.security.http-authentication-factory.application-http-authentication; Possible registration points for this capability:
        		/subsystem=elytron/http-authentication-factory=*
        
      Show
      Create a new installation of WildFly (14 will work) Checkout the quickstart (I was unable to compile 15.x or 'master', so this ticket is technically referencing version 14.x) Attempt to execute step #3 in the http-custom-mechanism quickstart. This is the step where the configure-security-domain.cli is executed. Note that the step will not successfully complete. Instead, the following error will be presented: The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed: Step: step-1 Operation: /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication) Failure: WFLYCTL0369: Required capabilities are not available: org.wildfly.security.http-authentication-factory.application-http-authentication; Possible registration points for this capability: /subsystem=elytron/http-authentication-factory=*

    Description

      Step #3, entitled Configure the Application Security Domain has the developer executing the following CLI command:

      $ {jbossHomeName}/bin/jboss-cli.sh --connect --file=configure-security-domain.cli
      

      However, this results in the following error:

      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
      WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
      Step: step-1
      Operation: /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
      Failure: WFLYCTL0369: Required capabilities are not available:
          org.wildfly.security.http-authentication-factory.application-http-authentication; Possible registration points for this capability:
      		/subsystem=elytron/http-authentication-factory=*
      

      I am by no means an expert on this, but in looking at the standalone.xml file, I think that there needs to be a mate for the inserted application-http-authentication. I have attempted to continue without this changes installed by the CLI, but I am unable to execute the webapp even after providing the correct user/pass in the BASIC AUTH.

      I have verified that the same problem-causing syntax exists on the quickstart 'master', although I have been using branch '14.x' because neither 15.x nor 'master' would build when I execute 'mvn clean build'. Finally, the I encounter the problem with fresh installs of WildFly versions 10.1.0 and 14.0.

      Please change change the project if I have categorized the ticket incorrectly.

      Attachments

        Activity

          People

            szaldana Sonia Zaldana (Inactive)
            lrigliders Alan Hantke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: