Example usage for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationManager setTokenServices

List of usage examples for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationManager setTokenServices

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider.authentication OAuth2AuthenticationManager setTokenServices.

Prototype

public void setTokenServices(ResourceServerTokenServices tokenServices) 

Source Link

Usage

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;
}