Hello Cedric,
When an InfoMap completes with success=false, this indicates that further client interaction is required. The Authentication Service generates a page which is intended for the client. Whatever headers and content you put on this page is returned to the client with WebSEAL forwarding it in its role as Reverse Proxy.
When an InfoMap completes with success=true, this indicates that authentication is complete. You don't get to return a page to the client. The Authentication Service generates a response (with EAI headers) which is intended for WebSEAL. The EAI headers are consumed by WebSEAL to generate an authenticated session. WebSEAL will then build its own response for the client. For a browser client this will likely be a 302 redirect to the target resource. For a REST client, this will likely be a JSON object indicating successful authentication.
One trick I have seen to get more control over the final EAI response is to NOT end your authentication policy with success=true but, instead, to return success=false and then to build the required EAI response using a template page. If you have your own EAI response page you can set headers to tell WebSEAL to stream the response back to the client rather than invoking its own redirect/response function.
The header you need is:
am-eai-flags: stream
(header name needs to match what is configured in WebSEAL configuration).
Some more information on this here:
https://philipnye.com/2014/12/18/isam-for-web-webseal-stream-eai-authentication-response-to-browser/Regards... Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
------------------------------