List of usage examples for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationManager setTokenServices
public void setTokenServices(ResourceServerTokenServices tokenServices)
From source file:st.malike.auth.client.security.SecurityConfig.java
@Override @Bean// w ww . j a v a 2 s.c o m public AuthenticationManager authenticationManagerBean() throws Exception { OAuth2AuthenticationManager authenticationManager = new OAuth2AuthenticationManager(); authenticationManager.setTokenServices(tokenService()); return authenticationManager; }
From source file:org.springframework.cloud.dataflow.server.config.security.OAuthSecurityConfiguration.java
@Bean public AuthenticationManager oauthAuthenticationManager() { final OAuth2AuthenticationManager oauthAuthenticationManager = new OAuth2AuthenticationManager(); oauthAuthenticationManager.setTokenServices(tokenServices()); return oauthAuthenticationManager; }