I am using TS671+ LS30. I want to develop a login mechanism that authenticates against external site.
I followed these steps to implement above use case
Step1: Created a Login component in Sitepublisher. This component displays Username, password, domain name and Login (submit) button
Step2: On click of login button calling following jsp page in login component
document.forms[0].action="
http://externalserver:8080/testdir/loginValidate.jsp";
Added controller in contentxml section
Step 3. Createda testloginpage and added this compopnent to testlogin page
Step 4: Configured default.site to have login required and specified login page
Step 5. Submitted default.site, testlogin page to production ( LS runtime system)
Step 6. Started the site and on login page supplied all input paramers.
Step 7: If login is success then calling below url in external jsp page
response.sendRedirect("http://lsruntimeserver/MyExpSite/TestLogin.page?submit=true&componentID=1206555795934&iwPreActions=TestLogin;");
Here is the controller code
-----------------------------------------
public class TestLogin
{
private Log mLogger = LogFactory.getLog(this.getClass());
public ForwardAction loginToSite(RequestContext context)
{
mLogger.debug("***********BEGIN**TestLogin *login********" );
return new URLRedirectForwardAction(context, "http://www.interwoven.com");
}
}
Expected behavior: My understanding is that above URL should invoke TestLogin controller.
Actual behavior: TestLogin controller is not getting invoked. I really don’t know why controller is not getting executed. Please help.
Thx.