Yes, enable-jacc is set to true on the application-security-domain resource.
Here are the steps I used to enable jacc:
florin@debian:~/bin/wildfly-27.0.1.Final/bin$ ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9990 /] /subsystem=security:write-attribute(name=initialize-jacc, value=false)
Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [("subsystem" => "security")]"
[standalone@localhost:9990 /] /subsystem=elytron/policy=jacc:add(jacc-policy={})
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /] reload
[standalone@localhost:9990 /] /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication,enable-jacc=true)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0212: Duplicate resource [
(\"subsystem\" => \"undertow\"),
(\"application-security-domain\" => \"other\")
]",
"rolled-back" => true
}
[standalone@localhost:9990 /] /subsystem=undertow/application-security-domain=other:write-attribute(name=enable-jacc,value=true)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /] reload
These steps altered standalone-full.xml as follows:
florin@debian:~/bin/wildfly-27.0.1.Final/bin$ diff ../standalone/configuration/standalone-full.xml.orig ../standalone/configuration/standalone-full.xml
354a355,357
> <policy name="jacc">
> <jacc-policy/>
> </policy>
535c538
< <application-security-domain name="other" security-domain="ApplicationDomain"/>
---
> <application-security-domain name="other" security-domain="ApplicationDomain" enable-jacc="true"/>
After enabling jacc, PolicyContext.getHandlerKeys returns [javax.security.auth.Subject.container, org.wildfly.security.auth.server.SecurityIdentity]