<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">Hi,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">I have two WildFly 8.1.0 instances (A and B) secured by the same custom SecurityDomain.<br></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">Client authenticates on &#39;server A&#39; and performs invocation of Stateless Bean on that server. Then, bean on &#39;server A&#39; performs remote invocation of a Bean on &#39;server B&#39;. So the invocation looks like this: Client -&gt; server A -&gt; server B. All communication is done via http-remoting connection, scoped EJB client context.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">The question is how to propagate client credentials or user session to the server B?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">Is it possible to configure Wildfly server A in the way that context of the logged user is passed from the client further to the server B? Any ideas? Is it possible or just bad idea?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;line-height:19.5px">I&#39;m not sure if some kind of SSO should be applied here. what are your thoughts?</p></div>