05-06-2011 11:17 AM
05-27-2011 10:55 AM
Hi,
I'm trying to customize the Share login to show messages in a prompt basing on password policies from ldap server.
I made a custom LDAPAuthenticationComponentImpl (here I check the policies), and if I login in Share, I know it ends on my custom class (so the authentication of Share is on Explorer??), but I can't see the way to communicate from there to Share. I thought on session variable, but I can't use FacesContext.
I try to take a look to the loginform on Share login, but I can't find where is the action or webscript called "share/page/dologin".
So basically, is there any way to relate a flag on Explorer to Share? Where is the "share/page/dologin" implementation?
Maybe I approach this thing completely wrong since my quite short experience on Share. Any advice would be appreciate.
Thanks in advanced,
Ana
package gov.phila.city;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.extensions.surf.UserFactory;
import org.springframework.extensions.surf.mvc.LoginController;
import org.springframework.web.servlet.ModelAndView;
public class MyLoginController extends LoginController {
@Override
public ModelAndView handleRequestInternal(HttpServletRequest arg0,
HttpServletResponse arg1) throws Exception
{
System.out.println("MyLoginController");
return super.handleRequestInternal(arg0, arg1);
}
@Override
public void setUserFactory(UserFactory userFactory) {
System.out.println("setUserFactory");
super.setUserFactory(userFactory);
}
}
12-08-2013 08:26 AM
UserFactory userFactory = FrameworkUtil.getServiceRegistry().getUserFactory();
, like I have in an older bit of code, but Eclipse tells me this is now a deprecated way of doing it.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.