-
1. Re: GateIn CustomMembershipLoginModule Changes
kien_nguyen Sep 30, 2011 6:52 AM (in response to meghaattcs)JAAS of Application Server controls flow of Login process. When user access protected servlets, JAAS will enable login flow for authentication.
My question is can I not add/modify anything to this class CustomMembershipLoginModule ?
By default, GateIn doesn't use CustomMembershipLoginModule. What you can do in CustomMembershipLoginModule? it depends where you inserted this module in Login flow of JAAS.
When your login fail with wrong username/password, JAAS redirect page to error login page. In GateIn, it's /errorlogin servlet and configured in portal.war/WEB-INF/web.xml:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>gatein-domain</realm-name>
<form-login-config>
<form-login-page>/initiatelogin</form-login-page>
<form-error-page>/errorlogin</form-error-page>
</form-login-config>
</login-config>