, , - wildfly 8.0.0. , - , wildfly, .
, , standalone.xml( domain.xml) - , .
:
WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension
:
FixSSOServletExtension
ServletExtension :
deploymentInfo.addFirstAuthenticationMechanism("form", new FixSSOAuthenticationMechanism());
( , )
FixSSOAuthenticationMechanism.authenticate:
exchange.addResponseWrapper(responseListener);
return AuthenticationMechanismOutcome.NOT_ATTEMPTED;
( ChallengeResult (false))
final class ResponseListener implements ConduitWrapper<StreamSinkConduit> {
public StreamSinkConduit wrap(ConduitFactory<StreamSinkConduit> factory, HttpServerExchange exchange) {
Cookie c = exchange.getResponseCookies().get("JSESSIONIDSSO");
if( c!=null ) {
c.setDomain(null);
}
return factory.create();
}
}
.
jboss-deployment-structure.xml
<module name="io.undertow.core" />
<module name="io.undertow.servlet" />
<module name="org.jboss.xnio" />
, , - , , sar ( sar, mbean)