|
|
|
@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
import org.springframework.context.annotation.Primary; |
|
|
|
|
import org.springframework.security.oauth2.provider.ClientDetailsService; |
|
|
|
|
import org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter; |
|
|
|
|
import org.springframework.security.oauth2.provider.token.DefaultTokenServices; |
|
|
|
@ -70,6 +71,7 @@ public class JWTTokenStoreConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
@Primary |
|
|
|
|
public DefaultTokenServices tokenServices(TokenStore tokenStore, JwtAccessTokenConverter tokenEnhancer, ClientDetailsService clientDetailsService) { |
|
|
|
|
DefaultTokenServices tokenServices = new DefaultTokenServices(); |
|
|
|
|
tokenServices.setTokenStore(tokenStore); |
|
|
|
|