Hi,
my application (ear) contains two war files.
The first war is using FORM Login and the second war is using BASIC Auth.
With WildFly 11 and PicketBox, I was able to configure SSO between these two war application with (standalone.xml):
<subsystem xmlns="urn:jboss:domain:undertow:4.0">
<server name="default-server">
<host name="default-host" alias="localhost">
<single-sign-on http-only="true"/>
I could login with BASIC Auth and was authenticated in the Form Auth Application as well (with a JSESSIONIDSSO Cookie on path "/").
With WildFly 26.1 this does not work out of the box anymore. The sessions between BASIC and FORM auth aren't shared.
But I'm failing to set this up at all... (standalone.xml):
<http-authentication-factory name="example-fs-http-auth" security-domain="fsSD" http-server-mechanism-factory="global">
<mechanism-configuration>
<mechanism mechanism-name="STATEFUL_BASIC">
<mechanism-realm realm-name="RealmUsersRoles"/>
</mechanism>
<mechanism mechanism-name="BASIC">
<mechanism-realm realm-name="RealmUsersRoles"/>
</mechanism>
<mechanism mechanism-name="FORM">
<mechanism-realm realm-name="RealmUsersRoles"/>
</mechanism>
</mechanism-configuration>
</http-authentication-factory>
but activating the STATEFUL_BASIC in web.xml
<login-config>
<auth-method>STATEFUL_BASIC,BASIC,FORM</auth-method>
<realm-name>RealmUsersRoles</realm-name>
</login-config>
results in an exception:
WFLYCTL0186: Services which failed to start: service jboss.deployment.subunit."module-ear-1.0-SNAPSHOT.ear"."com.example-web-basic-1.0-SNAPSHOT.war".undertow-deployment: java.lang.RuntimeException: java.l
ang.IllegalStateException: The required mechanism 'STATEFUL_BASIC' is not available in mechanisms [BASIC, FORM] from the HttpAuthenticationFactory.
Is there some further documentation/example (besides the code on github)?
Has anyone a working setup like this?
Best regards,
Li