facebookFilter.setAuthenticationManager(authenticationManager());
facebookFilter.setAuthenticationSuccessHandler(successHandler);
facebookFilter.setAuthenticationFailureHandler(failureHandler);
facebookFilter.setRememberMeServices(tbrms);
RestAuthFilter restFilter = new RestAuthFilter(new Signer());
http.addFilterAfter(restFilter, BasicAuthenticationFilter.class);
http.addFilterAfter(passwordFilter, BasicAuthenticationFilter.class);
http.addFilterAfter(openidFilter, BasicAuthenticationFilter.class);
http.addFilterAfter(facebookFilter, BasicAuthenticationFilter.class);