org.springframework.social.config.annotation.SocialConfigurer Java Examples

The following examples show how to use org.springframework.social.config.annotation.SocialConfigurer. 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: SocialConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
@SuppressWarnings("SpringJavaAutowiringInspection")
public SocialConfigurer socialConfigurerAdapter(final DataSource dataSource) {
    // https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
    return new DatabaseSocialConfigurer(dataSource);
}
 
Example #2
Source File: SocialConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
@SuppressWarnings("SpringJavaAutowiringInspection")
public SocialConfigurer socialConfigurerAdapter(final DataSource dataSource) {
    // https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
    return new DatabaseSocialConfigurer(dataSource);
}
 
Example #3
Source File: SocialConfiguration.java    From lemonaid with MIT License 4 votes vote down vote up
@Bean
public SocialConfigurer socialConfigurerAdapter(DataSource dataSource) {
    return new DatabaseSocialConfigurer(dataSource);
}
 
Example #4
Source File: SocialConfig.java    From Spring-Security-Third-Edition with MIT License 2 votes vote down vote up
/**
 * Defines callback methods to customize Java-based configuration enabled by {@code @EnableWebMvc}.
 * {@code @EnableWebMvc}-annotated classes may implement this interface or
 * extend {@link SocialConfigurerAdapter}, which provides some default configuration.
 * In this initialization we are configuring the {@link SocialConfigurer} to use our local
 * database to store OAuth provider details for a given user.
 */
@Bean
public SocialConfigurer socialConfigurerAdapter(final DataSource dataSource) {
    // https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
    return new DatabaseSocialConfigurer(dataSource);
}