use of org.springframework.security.oauth2.provider.token.ResourceServerTokenServices in project coffeenet-starter by coffeenet.
the class CoffeeNetApiTokenAccessFilter method oauthAuthenticationManager.
private AuthenticationManager oauthAuthenticationManager(ResourceServerTokenServices tokenServices) {
OAuth2AuthenticationManager oauthAuthenticationManager = new OAuth2AuthenticationManager();
oauthAuthenticationManager.setResourceId(resourceServerProperties.getResourceId());
oauthAuthenticationManager.setTokenServices(tokenServices);
oauthAuthenticationManager.setClientDetailsService(null);
return oauthAuthenticationManager;
}
Aggregations