Thank you so much for looking into my problem. I am building a bootable-jar with wildfly-jar-maven-plugin. I run the adapter-elytron-install-saml.cli during the build using the plugin's cli-session handler. I am building the jar with a custom feature-pack which includes my application plus a custom keycloak-saml layer. I get the following error at run-time:
Caused by: java.lang.RuntimeException: Legacy WildFly security layer is no longer supported by the Keycloak WildFly adapter
at org.keycloak.keycloak-...@21.0.0//org.keycloak.subsystem.adapter.saml.extension.KeycloakDependencyProcessorWildFly.addPlatformSpecificModules(KeycloakDependencyProcessorWildFly.java:42)
at org.keycloak.keycloak-...@21.0.0//org.keycloak.subsystem.adapter.saml.extension.KeycloakDependencyProcessor.deploy(KeycloakDependencyProcessor.java:68)
at org.jboss...@18.1.0.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
I will try to throw together a sample app to reproduce the issue.
Thanks again