I found an error in the command that I gave to you. Could try to change the
name of the application-security-domain to "KeycloakDomain", instead of
"other".
If it doesn't work I would prefer to try this out first before opening the
JIRA. But I appreciate if you can at least try the change above first.
On Wed, Apr 3, 2019 at 8:40 AM Ryan Slominski <ryans(a)jlab.org> wrote:
Thanks for the idea. Unfortunately it didn't work. I still
see:
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.security.security-domain.KeycloakDomain"]
I am using only local EJBs. I guess I must stick with the legacy Wildfly
client adapter. Looks like the JIRA to addresss the EJB propagation issue
has been closed. Can we re-open it?
See:
https://issues.jboss.org/browse/KEYCLOAK-5665
------------------------------
*From:* Pedro Igor Silva <psilva(a)redhat.com>
*Sent:* Tuesday, April 2, 2019 9:07 PM
*To:* Ryan Slominski
*Cc:* keycloak-user
*Subject:* Re: [keycloak-user] Wildfly Elytron client adapter - Propagate
security domain to EJB
Hi,
I guess it is a local EJB ? If so, could you try configuring the EJB
subsystem with an application-security-domain as follows:
/subsystem=ejb3/application-security-domain=other:add(security-domain=KeycloakDomain)
Regards.
On Tue, Apr 2, 2019 at 6:14 PM Ryan Slominski <ryans(a)jlab.org> wrote:
Has anyone been able to propagate the Keycloak security domain in Wildfly
Elytron client adapter to EJBs in an application using jboss-ejb3.xml?
Creating a single file that is bundled with the application war seems like
a better solution than importing and apply a JBOSS specific annotation
(@SecurityDomain) to hundreds of EJBs.
I placed the file into WEB-INF with contents:
<?xml version="1.1" encoding="UTF-8"?>
<jboss:ejb-jar
xmlns:jboss="http://www.jboss.com/xml/ns/javaee
<
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jbos...
"
xmlns="http://java.sun.com/xml/ns/javaee
<
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjava.sun...
"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.o...
"
xmlns:s="urn:security"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
<
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jbos...
http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
<
https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jbos...
"
version="3.1" impl-version="2.0">
<assembly-descriptor>
<s:security>
<ejb-name>*</ejb-name>
<s:security-domain>keycloak</s:security-domain>
</s:security>
</assembly-descriptor>
</jboss:ejb-jar>
I also tried label "KeycloakDomain" instead of "keycloak". In either
case
I get the following error when I attempt to deploy the war file:
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.security.security-domain.KeycloakDomain"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"staff.war\".component.StaffFacade.CREATE
is missing [jboss.security.security-domain.KeycloakDomain]",
"jboss.deployment.unit.\"staff.war\".undertow-deployment.UndertowDeploymentInfoService
is missing [jboss.security.security-domain.KeycloakDomain]",
"jboss.deployment.unit.\"staff.war\".component.WorkgroupFacade.CREATE is
missing [jboss.security.security-domain.KeycloakDomain]"
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
<
https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.j...