Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom Login Module

Hi Everyone,

I have several doubts on creating a custom login module.

1. If I wanted to extend my login module from SAP's HeaderVariableLoginModule class, what is the base class I should extend from? Where can I get the package that contains this base class?

2. The HeaderVariableLoginModule is using the REMOTE_USER header variable. Is there a way to use some other headers instead of using REMOTE_USER? I have tried to configure an option called header="myHeader" in the login stack, but the login module keeps reverting to the REMOTE_USER header variable.

3. In my custom login module, I wanted to get the user's login ID from the header. I used the following lines in my code:

((HttpGetterCallback) callbacks[0]).setType(

HttpCallback.HEADER);

((HttpGetterCallback) callbacks[0]).setName("REMOTE_USER");

If my understanding is correct, this should get the user's login ID from the "REMOTE_USER" header. However, the code is not getting any values from the header. I am pretty positive that the header has been injected into the request because SAP's HeaderVariableLoginModule is working with my "REMOTE_USER" header injection.

Any assistance is greatly appreciated. Should there be any need for clarifications, I would be more than happy to provide them.

Thank You.

replied

Voon,

You can check the following links;

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b69f6f89-0a01-0010-1198-ba7fff95a2ec

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/17be8b32-0a01-0010-51bc-8fe5e11d204e

(on slide 63 you have references)

http://help.sap.com/saphelp_nw04s/helpdata/en/68/5ddc40132a8531e10000000a1550b0/content.htm

James

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question