Skip to Content
0
Former Member
Apr 14, 2008 at 08:49 AM

How to Set UserId in Http Header for SSO?

165 Views

Hello All,

I have a requirement to set the userid into the HTTP Header so that i can use the "Header Variables for User Authentication" module provided by SAP to achieve the SSO .

Could some 1 let me know how can I achieve this? I know abt the HTTPServlet.setheader() method, But i need to set it using my JAVA application. Is there any way to set the HTTP Header using Java. I have already done a lot of googling, but havent got any results.

I am sure that, there must definitely be a way in which we can add the user id into the HTTP header, in all the results, they tell abt adding it using the HTTP Servlet or PHP and so on, but i need to add it from JAVA.(setting REMOTE_USER as "mysapuserid")

I have already added the "HeaderVariableLoginModule" in my login stack in the 2nd position, as per

http://help.sap.com/saphelp_nw04/helpdata/en/8f/ae29411ab3db2be10000000a1550b0/frameset.htm

Any pointers will be helpful,

Meghana

Edited by: Meghana Phadke on Apr 14, 2008 2:49 PM