My web application has a login-config such as this:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Some_Realm</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/logerror.jsp</form-error-page>
</form-login-config>
</login-config>
This project is now a part of a group of web apps that use single sign on and there is a common login page in another war file. Is it possible to have the form login page be outside of the current war file? What is the best approach here?
((I have tried adding a redirect in my login.jsp page so that it redirects to the desired login page. If the other app can redirect to my app based on a target url that we pass to the app, will that be a solution? My attempt to do that resulted in an infinite loop for now. Not sure if it is because, my SSO implementation is not yet in place. We are planning implement SSO using cookies/tokens. )