Java Code Examples for org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore

The following are top voted examples for showing how to use org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Spring-cloud-gather   File: AuthorizationServerConfiguration.java   Source Code and License 5 votes vote down vote up
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
	TokenStore tokenStore = new RedisTokenStore(redisConnectionFactory);
	// @formatter:off
       endpoints.tokenStore(tokenStore)
           .authenticationManager(authenticationManager)
           .userDetailsService(userDetailsService);
       // @formatter:on
}
 
Example 2
Project: OAuth-2.0-Cookbook   File: OAuth2ResourceServer.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    return new RedisTokenStore(connectionFactory);
}
 
Example 3
Project: OAuth-2.0-Cookbook   File: OAuth2AuthorizationServer.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    return new RedisTokenStore(connectionFactory);
}
 
Example 4
Project: OAuth-2.0-Cookbook   File: OAuth2AuthorizationServer.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    RedisTokenStore redis = new RedisTokenStore(connectionFactory);
    return redis;
}
 
Example 5
Project: Spring-OAuth2-Custom   File: OAuth2Configuration.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    return new RedisTokenStore(jedisConnectionFactory);
}
 
Example 6
Project: seldon-core   File: AuthorizationServerConfiguration.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    // return new InMemoryTokenStore();
    return new RedisTokenStore(redisConnectionFactory);
}
 
Example 7
Project: xxproject   File: OAuth2AuthorizationServerConfig.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore() {
    return new RedisTokenStore(redisConnectionFactory);
}
 
Example 8
Project: site   File: SecurityConfig.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore(final RedisConnectionFactory redisConnectionFactory) {
    log.debug("Enabling RedisTokenStore");
    return new RedisTokenStore(redisConnectionFactory);
}
 
Example 9
Project: onetwo   File: Oauth2TokenStoreConfiguration.java   Source Code and License 4 votes vote down vote up
@Bean
public RedisTokenStore redisTokenStore(@Autowired RedisConnectionFactory redisConnectionFactory){
	RedisTokenStore store = new RedisTokenStore(redisConnectionFactory);
	return store;
}
 
Example 10
Project: site   File: SecurityConfig.java   Source Code and License 4 votes vote down vote up
@Bean
public TokenStore tokenStore(final RedisConnectionFactory redisConnectionFactory) {
    log.debug("Enabling RedisTokenStore");
    return new RedisTokenStore(redisConnectionFactory);
}