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

Running "Protecting Wildfly Adminstration Console With Keycloak" leads to WFLYCTL0412 (Required services not installed: org.wildfly.security.http-server-mechanism-factory.wildfly-management)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • None
    • None
    • None

    Description

      Following the instuctions Protecting Wildfly Adminstration Console With Keycloak leads to an error in CLI script "protect-wildfly-mgmt-services.cli".

      Execution of the following line:

      /subsystem=elytron/http-authentication-factory=keycloak-mgmt-http-authentication:add(security-domain=KeycloakDomain,http-server-mechanism-factory=wildfly-management,mechanism-configurations=[{mechanism-name=KEYCLOAK,mechanism-realm-configurations=[{realm-name=KeycloakOIDCRealm,realm-mapper=keycloak-oidc-realm-mapper}]}])
      

      Leads to error:

      {
          "outcome" => "failed",
          "failure-description" => {
              "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.http-server-mechanism-factory.wildfly-management"],
              "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.security.http-authentication-factory.keycloak-mgmt-http-authentication is missing [org.wildfly.security.http-server-mechanism-factory.wildfly-management]"]
          },
          "rolled-back" => true
      }
      

      Steps to reproduce:

      1. Download Wildfly 14.0.1.Final and extract to disk
      2. Change to Wildfly directory
      3. curl -L https://downloads.jboss.org/keycloak/4.5.0.Final/adapters/keycloak-oidc/keycloak-wildfly-adapter-dist-4.5.0.Final.tar.gz | tar zx
      4. curl -L https://downloads.jboss.org/keycloak/4.5.0.Final/adapters/saml/keycloak-saml-wildfly-adapter-dist-4.5.0.Final.tar.gz | tar zx
      5. Execute: bin/jboss-cli.sh --file="bin/adapter-elytron-install-offline.cli"
      6. Copy attached "protect-wildfly-mgmt-services.cli" to Wildfly's "bin" directory
      7. Execute: bin/jboss-cli.sh --file="bin/protect-wildfly-mgmt-services.cli"

      Result: Fails with above error.

      Attachments

        Activity

          People

            lvydra Lukas Vydra
            fuinorg Michael Schnell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: