Custom Login Module
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:
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.
James Lorenzana replied
You can check the following links;
(on slide 63 you have references)