November 2017
Intermediate to advanced
542 pages
14h 24m
English
Spring Security provides support to save provider details in a separate set of database tables, in case we want to save the user in a local data store, but don’t want to include that data in an existing User table:
//src/main/java/com/packtpub/springsecurity/configuration/ SocialDatabasePopulator.java @Component public class SocialDatabasePopulator implements InitializingBean { private final DataSource dataSource; @Autowired public SocialDatabasePopulator(final DataSource dataSource) { this.dataSource = dataSource; } @Override public void afterPropertiesSet() throws Exception { ClassPathResource resource = new ClassPathResource( "org/springframework/social/connect/jdbc/ JdbcUsersConnectionRepository.sql"); ...Read now
Unlock full access