use of org.simbasecurity.common.filter.action.RequestActionFactory in project simba-os by cegeka.
the class LoginController method handleRequest.
@Override
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
RequestData requestData = RequestUtil.createRequestData(request, resolveSimbaWebURL(request));
AuthenticationFilterService.Iface authenticationFilterService = GlobalContext.locate(AuthenticationFilterService.Iface.class, "authenticationFilterService");
ActionDescriptor actionDescriptor = authenticationFilterService.processRequest(requestData, "credentialChain");
if (actionDescriptor.getSsoToken() != null) {
makeSimbaSSOCookieForCORS(response, actionDescriptor);
}
RequestActionFactory actionFactory = new RequestActionFactory(request, response);
actionFactory.execute(actionDescriptor);
return null;
}
use of org.simbasecurity.common.filter.action.RequestActionFactory in project simba-os by cegeka.
the class ChangePasswordController method handleRequest.
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
RequestData requestData = RequestUtil.createRequestData(request, resolveSimbaWebURL(request));
ChainContextImpl context = new ChainContextImpl(requestData, sessionService.getSession(requestData.getSsoToken()), configurationService, loginMappingService);
credentialChain.execute(context);
ActionDescriptor actionDescriptor = context.getActionDescriptor();
RequestActionFactory actionFactory = new RequestActionFactory(request, response);
actionFactory.execute(actionDescriptor);
return null;
}
Aggregations