spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.
http://projects.spring.io/spring-social
Apache License 2.0
619 stars 351 forks source link

ProviderSignInUtils API desync with docs #171

Closed jfhs closed 9 years ago

jfhs commented 9 years ago

It seems that ProviderSignInUtils API has changed from static methods to interface, but docs still use old version which made me confused for some time.

If that will help, I solved it in straight forward way (probably not the best) in my SocialConfigurer added

@Autowired
ConnectionFactoryLocator connectionFactoryLocator;

@Bean
public ProviderSignInUtils providerSignInUtils() {
   return new ProviderSignInUtils(connectionFactoryLocator, getUsersConnectionRepository(connectionFactoryLocator));
}

And just AutoWired it in controller where I needed it:

@Autowired
private ProviderSignInUtils signInUtils;
habuma commented 9 years ago

Fixed in latest code. Will be part of next release.