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

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

Introduction

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

Prototype

OAuth2AuthenticationManager

Source Link

Usage

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