HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse res = (HttpServletResponse) response;
//If a user has been authenticated then the information about that user must be stored
if (auth != null && auth.getPrincipal() instanceof ForceUserPrincipal) {
ForceUserPrincipal user = (ForceUserPrincipal) auth.getPrincipal();
ForceConnectorConfig cc = new ForceConnectorConfig();
cc.setSessionId(user.getSessionId());
SecurityContext sc = (SecurityContext) auth.getDetails();
cc.setServiceEndpoint(sc.getEndPoint());
cc.setSessionRenewer(this);
//The security context holder handles the storage of the security context
ForceSecurityContextHolder.set(sc);