List of usage examples for org.springframework.security.oauth2.provider.token.store JdbcTokenStore JdbcTokenStore
public JdbcTokenStore(DataSource dataSource)
From source file:org.openmhealth.dsu.configuration.JdbcOAuth2SupportConfiguration.java
/** * @return the store used to persist OAuth2 access and refresh tokens */ @Bean public TokenStore tokenStore() { return new JdbcTokenStore(dataSource); }
From source file:com.iflytek.edu.cloud.frame.spring.TokenStoreFactoryBean.java
@Override public void afterPropertiesSet() throws Exception { if (EnvUtil.redisEnabled()) { JedisPool jedisPool = applicationContext.getBean(JedisPool.class); tokenStore = new RedisTokenStore(jedisPool); LOGGER.info("redistoken"); } else {//from ww w. j a v a 2 s. c o m DataSource dataSource = applicationContext.getBean(DataSource.class); tokenStore = new JdbcTokenStore(dataSource); LOGGER.info("jdbctoken"); } }
From source file:org.shaigor.rest.retro.security.gateway.config.OAuth2PersistenceConfiguration.java
/** * The token store is part of common database * @return JDBC based token store//from w ww .j a va2 s . com */ @Bean public TokenStore tokenStore() { return new JdbcTokenStore(securityDataSource); }
From source file:com.create.application.configuration.OAuth2Configuration.java
@Bean public TokenStore tokenStore(DataSource dataSource) { return new JdbcTokenStore(dataSource); }
From source file:com.companyname.PlatOauth2AuthServerConfig.java
@Bean public TokenStore tokenStore() { logger.info("inside AuthorizationServerConfiguration.tokenStore(...)"); return new JdbcTokenStore(appDataSource); }
From source file:org.appverse.web.framework.backend.security.oauth2.authserver.configuration.jdbcstore.AuthorizationServerWithJDBCStoreConfigurerAdapter.java
@Bean protected TokenStore tokenStore() { return new JdbcTokenStore(dataSource); }