org.springframework.social.github.connect.GitHubConnectionFactory Java Examples
The following examples show how to use
org.springframework.social.github.connect.GitHubConnectionFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DatabaseSocialConfigurer.java From Spring-Security-Third-Edition with MIT License | 6 votes |
@Override public void addConnectionFactories(ConnectionFactoryConfigurer config, Environment env) { super.addConnectionFactories(config, env); // Configured through AutoConfiguration: // config.addConnectionFactory(new TwitterConnectionFactory( // env.getProperty("spring.social.twitter.appId"), // env.getProperty("spring.social.twitter.appSecret"))); // config.addConnectionFactory(new FacebookConnectionFactory( // env.getProperty("spring.social.facebook.appId"), // env.getProperty("spring.social.facebook.appSecret"))); // config.addConnectionFactory(new LinkedInConnectionFactory( // env.getProperty("spring.social.linkedin.appId"), // env.getProperty("spring.social.linkedin.appSecret"))); // Adding GitHub Connection with properties from application.yml config.addConnectionFactory(new GitHubConnectionFactory( env.getProperty("spring.social.github.appId"), env.getProperty("spring.social.github.appSecret"))); // Adding Google Connection with properties from application.yml config.addConnectionFactory(new GoogleConnectionFactory( env.getProperty("spring.social.google.appId"), env.getProperty("spring.social.google.appSecret"))); }
Example #2
Source File: SocialConfig.java From blog-social-login-with-spring-social with Apache License 2.0 | 6 votes |
@Override public void addConnectionFactories(ConnectionFactoryConfigurer connectionFactoryConfigurer, Environment environment) { connectionFactoryConfigurer.addConnectionFactory(new FacebookConnectionFactory( environment.getProperty("spring.social.facebook.appId"), environment.getProperty("spring.social.facebook.appSecret"))); connectionFactoryConfigurer.addConnectionFactory(new TwitterConnectionFactory( environment.getProperty("twitter.consumerKey"), environment.getProperty("twitter.consumerSecret"))); connectionFactoryConfigurer.addConnectionFactory(new LinkedInConnectionFactory( environment.getProperty("spring.social.linkedin.appId"), environment.getProperty("spring.social.linkedin.appSecret"))); connectionFactoryConfigurer.addConnectionFactory(new GoogleConnectionFactory( environment.getProperty("spring.social.google.appId"), environment.getProperty("spring.social.google.appSecret"))); connectionFactoryConfigurer.addConnectionFactory(new GitHubConnectionFactory( environment.getProperty("spring.social.github.appId"), environment.getProperty("spring.social.github.appSecret"))); connectionFactoryConfigurer.addConnectionFactory(new LiveConnectionFactory( environment.getProperty("spring.social.live.appId"), environment.getProperty("spring.social.live.appSecret"))); }
Example #3
Source File: CustomSocialAutoConfigurerAdapter.java From codeway_service with GNU General Public License v3.0 | 4 votes |
public ConnectionFactory<?> createConnectionFactory() { return new GitHubConnectionFactory( properties.getAppId(), properties.getAppSecret()); }
Example #4
Source File: CustomSocialAutoConfigurerAdapter.java From codeway_service with GNU General Public License v3.0 | 4 votes |
public ConnectionFactory<?> createConnectionFactory() { return new GitHubConnectionFactory( properties.getAppId(), properties.getAppSecret()); }
Example #5
Source File: GitHubConfiguration.java From oauth2lab with MIT License | 4 votes |
@Override protected ConnectionFactory<?> createConnectionFactory() { return new GitHubConnectionFactory(properties.getAppId(), properties.getAppSecret()); }
Example #6
Source File: GitHubConfiguration.java From OAuth-2.0-Cookbook with MIT License | 4 votes |
@Override protected ConnectionFactory<?> createConnectionFactory() { return new GitHubConnectionFactory(properties.getAppId(), properties.getAppSecret()); }