List of usage examples for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationManager OAuth2AuthenticationManager
OAuth2AuthenticationManager
From source file:st.malike.auth.client.security.SecurityConfig.java
@Override @Bean/*from w ww . j a v a2s .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; }