1 Reply Latest reply on Feb 19, 2009 2:22 PM by sidydrum.inscriptionlardi-divers.yahoo.fr

    Http headers propagation

    sidydrum.inscriptionlardi-divers.yahoo.fr

      Hi,


      I configured a simple seam application. It works fine.


      I access it from another server passing http headers in the request.
      And I also configured JOSSO to protect the seam app and deal with SSO in the infrastructure.
      But I can't figure out how to pass the http headers down to the seam application.


      Beware that the josso (on tomcat) and seam app (on jboss) are not on the same server. So I can't put the data in a session object. I really have to forward it to the seam app through the http header!? No ? But the redirect JOSSO makes creates a new request and thus drops the http headers. Is there a simple trick to avoid this kind of problem ? using a reverse proxy ? how ? or what else ?


      Thanks,
      Chris.

        • 1. Re: Http headers propagation
          sidydrum.inscriptionlardi-divers.yahoo.fr

          Hi Chris,


          There is a config section in the josso-agent-config.xml file



          <!--
                                  <security-context-propagation>


                                      <agent:security-context-propagation-config


                                          binding="HTTP_HEADERS"


                                          userPlaceHolder="currentLoginName"


                                          rolesPlaceHolder="currentUserRoles"/>


                                  </security-context-propagation>


                                  -->




          Try uncommenting it. This might solve your problem.


          Bye,
          Chris