# start server
bin/standalone.sh &
# configure security domain with JASPI authentication
bin/jboss-cli.sh -c << EOT
batch
/subsystem=security/security-domain=web-tests:add
/subsystem=security/security-domain=web-tests/authentication=jaspi:add
/subsystem=security/security-domain=web-tests/authentication=jaspi/login-module-stack=lmStack:add
/subsystem=security/security-domain=web-tests/authentication=jaspi/login-module-stack=lmStack/login-module=SimpleUsers:add(code=SimpleUsers,flag=required, module-options=[("user"=>"user")])
/subsystem=security/security-domain=web-tests/authentication=jaspi/auth-module=org.wildfly.extension.undertow.security.jaspi.modules.HTTPSchemeServerAuthModule:add(code=org.wildfly.extension.undertow.security.jaspi.modules.HTTPSchemeServerAuthModule, flag=required, module=org.wildfly.extension.undertow, login-module-stack-ref=lmStack)
run-batch
reload
EOT
# deploy the reproducer
bin/jboss-cli.sh -c "deploy /tmp/secured-webapp.war"
# make GET request to deployed app
curl -i http: