We tried adding a default security domain for undertow and also adjusting the jboss-web file, without success.
We still get the same undertow error about securityContext being unavailable.
Here are the values we tried:
-- standalone.xml --
<subsystem xmlns="urn:jboss:domain:logging:8.0">
[...]
<logger category="org.wildfly.security" use-parent-handlers="true">
<level name="DEBUG"/>
</logger>
[...]
</subsystem>
<subsystem xmlns="urn:jboss:domain:ejb3:9.0">
[...]
<application-security-domains>
<application-security-domain name="other" security-domain="mySD" enable-jacc="true"/>
</application-security-domains>
[...]
</subsystem>
<subsystem xmlns="urn:wildfly:elytron:15.1" final-providers="combined-providers" disallowed-providers="OracleUcrypto">
[...[
<security-domains>
[...]
<security-domain name="mySD" default-realm="myRealm" permission-mapper="default-permission-mapper">
<realm name="myRealm"/>
</security-domain>
</security-domains>
<security-realms>
<identity-realm name="local" identity="$local"/>
<properties-realm name="ApplicationRealm">
<users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
<groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</properties-realm>
[...]
<jaas-realm name="myRealm" entry="testElytron" module="resources.logibec">
<file path="C:\Development\Quarantine_Servers\wildfly-26.0.1.Final-frontend\modules\system\layers\base\resources\logibec\main\JAAS-login-modules.conf"/>
</jaas-realm>
</security-realms>
[...]
<http>
[...]
<http-authentication-factory name="example-loginconfig-http-auth" security-domain="mySD" http-server-mechanism-factory="global">
<mechanism-configuration>
<mechanism mechanism-name="FORM">
<mechanism-realm realm-name="TestMechanismRealm"/>
</mechanism>
</mechanism-configuration>
</http-authentication-factory>
<provider-http-server-mechanism-factory name="global"/>
</http>
[...]
</subsystem>
<subsystem xmlns="urn:jboss:domain:undertow:12.0">
[...]
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" ssl-context="LocalhostSslContext" enable-http2="true"/>
<host name="default-host" alias="localhost">
[...]
<single-sign-on path="/" http-only="true" secure="false"/>
</host>
</server>
[...]
<application-security-domains>
<application-security-domain name="other" http-authentication-factory="example-loginconfig-http-auth" enable-jaspi="false" integrated-jaspi="false">