Java Code Examples for org.springframework.social.connect.web.ProviderSignInUtils

The following examples show how to use org.springframework.social.connect.web.ProviderSignInUtils. These examples are extracted from open source projects. 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 Project: FEBS-Security   Source File: FebsSocialConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public ProviderSignInUtils providerSignInUtils(ConnectionFactoryLocator connectionFactoryLocator){
    return new ProviderSignInUtils(connectionFactoryLocator,getUsersConnectionRepository(connectionFactoryLocator));
}
 
Example 2
@Bean
public ProviderSignInUtils getProviderSignInUtils(ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository usersConnectionRepository) {
    return new ProviderSignInUtils(connectionFactoryLocator, usersConnectionRepository);
}
 
Example 3
Source Project: paascloud-master   Source File: SocialConfig.java    License: Apache License 2.0 3 votes vote down vote up
/**
 * 用来处理注册流程的工具类
 *
 * @param connectionFactoryLocator the connection factory locator
 *
 * @return provider sign in utils
 */
@Bean
public ProviderSignInUtils providerSignInUtils(ConnectionFactoryLocator connectionFactoryLocator) {
	return new ProviderSignInUtils(connectionFactoryLocator,
			getUsersConnectionRepository(connectionFactoryLocator)) {
	};
}
 
Example 4
Source Project: cola   Source File: SocialWebAutoConfiguration.java    License: MIT License 2 votes vote down vote up
/**
 * 处理注册流程的工具类
 *
 * @param factoryLocator
 * @return
 */
@Bean
public ProviderSignInUtils providerSignInUtils(ConnectionFactoryLocator factoryLocator) {
	return new ProviderSignInUtils(factoryLocator, getUsersConnectionRepository(factoryLocator));
}
 
Example 5
Source Project: pre   Source File: SocialConfig.java    License: GNU General Public License v3.0 2 votes vote down vote up
/**
 * 从Session中获取社交账号信息
 * @param connectionFactoryLocator
 * @return
 */
@Bean
public ProviderSignInUtils providerSignInUtils(ConnectionFactoryLocator connectionFactoryLocator) {
    return new ProviderSignInUtils(connectionFactoryLocator, getUsersConnectionRepository(connectionFactoryLocator)) {};
}