0
I am trying to add a cookie to responsecookies and responseheader. But FormAuthenticationMechanism has endExchange() in the finally block after which I'm not able to set response headers. Is there anyway I can set response headers after endExchange() is called?
finally {
try {
if (outcome == AuthenticationMechanismOutcome.AUTHENTICATED) {
handleRedirectBack(exchange);
exchange.endExchange();
}
retValue = outcome != null ? outcome : AuthenticationMechanismOutcome.NOT_AUTHENTICATED;
}