Search in sources :

Example 1 with FacebookConnectionFactory

use of org.springframework.social.facebook.connect.FacebookConnectionFactory in project ORCID-Source by ORCID.

the class SocialConfig method connectionFactoryLocator.

@Bean
public ConnectionFactoryLocator connectionFactoryLocator() {
    logger.info("getting connectionFactoryLocator");
    ConnectionFactoryRegistry registry = new ConnectionFactoryRegistry();
    registry.addConnectionFactory(new FacebookConnectionFactory(fb_key, fb_secret));
    registry.addConnectionFactory(new GoogleConnectionFactory(gg_key, gg_secret));
    return registry;
}
Also used : GoogleConnectionFactory(org.springframework.social.google.connect.GoogleConnectionFactory) FacebookConnectionFactory(org.springframework.social.facebook.connect.FacebookConnectionFactory) ConnectionFactoryRegistry(org.springframework.social.connect.support.ConnectionFactoryRegistry) InitializingBean(org.springframework.beans.factory.InitializingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

InitializingBean (org.springframework.beans.factory.InitializingBean)1 Bean (org.springframework.context.annotation.Bean)1 ConnectionFactoryRegistry (org.springframework.social.connect.support.ConnectionFactoryRegistry)1 FacebookConnectionFactory (org.springframework.social.facebook.connect.FacebookConnectionFactory)1 GoogleConnectionFactory (org.springframework.social.google.connect.GoogleConnectionFactory)1