return new SocialAuthenticationProvider(usersConnectionRepository, socialUsersDetailsService(userDetailsService));
}
@Bean
public SocialUserDetailsService socialUsersDetailsService(UserDetailsService userDetailsService) {
return new SimpleSocialUsersDetailService(userDetailsService);
}