I wrote a custom login module that integrates with Netegrity Siteminder authentication API
I want the login module to reads the user credential from the request header instead of getting
the user credential from the default login page.
I replace the default login module and added the necessary source to a plugin jar file as instructed
<!-- <login-module /> -->
I expect when I attempt to access the Teamcity server URL the login page would not popup but the
login module would read the request header instead. Unfortunately the login screen is display every time
and only after hitting the submit button does the SiteminderLoginModule module gets called.
My question is how can the login page be bypassed and all authentication occur from the SiteminderLoginModule?
If I type the following URL http://localhost:8081/TeamCity/ it always redirects to http://localhost:8081/TeamCity/login.html
which causes the login.jsp to be loaded. I need to bypass the login page and have the controller read the user Subject
created in the SiteminderLoginModule and redirect the user to the project page.
How can the login page be bypassed? Can a custom controller be written to read the user credential from the Subject created
in the login module? What is the best approach to resolve this issue?