[jboss-jira] [JBoss JIRA] (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)
Michael Schnell (Jira)
issues at jboss.org
Fri Nov 2 11:02:00 EDT 2018
Michael Schnell created ELY-1705:
------------------------------------
Summary: Running "Protecting Wildfly Adminstration Console With Keycloak" leads to WFLYCTL0412 (Required services not installed: org.wildfly.security.http-server-mechanism-factory.wildfly-management)
Key: ELY-1705
URL: https://issues.jboss.org/browse/ELY-1705
Project: WildFly Elytron
Issue Type: Feature Request
Environment: * wildfly-14.0.1.Final
* keycloak-oidc/keycloak-wildfly-adapter-dist-4.5.0.Final.tar.gz
* keycloak-saml-wildfly-adapter-dist-4.5.0.Final.tar.gz | tar zx
* Attached "protect-wildfly-mgmt-services.cli"
Reporter: Michael Schnell
Assignee: Darran Lofthouse
Attachments: protect-wildfly-mgmt-services.cli
Following the instuctions [Protecting Wildfly Adminstration Console With Keycloak|https://docs.jboss.org/author/display/WFLY/Protecting+Wildfly+Adminstration+Console+With+Keycloak] leads to an error in CLI script "protect-wildfly-mgmt-services.cli".
Execution of the following line:
{quote}
/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}]}])
{quote}
Leads to error:
{code:json}
{
"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
}
{code}
Steps to reproduce:
1. Download [Wildfly 14.0.1.Final|http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.zip] 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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list