Examples of OAuth2AuthenticationManager


Examples of org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationManager

      .exceptionHandling().accessDeniedHandler(accessDeniedHandler);
    // @formatter:on
  }

  private AuthenticationManager oauthAuthenticationManager(HttpSecurity http) {
    OAuth2AuthenticationManager oauthAuthenticationManager = new OAuth2AuthenticationManager();
    if (authenticationManager != null) {
      if (authenticationManager instanceof OAuth2AuthenticationManager) {
        oauthAuthenticationManager = (OAuth2AuthenticationManager) authenticationManager;
      }
      else {
        return authenticationManager;
      }
    }
    oauthAuthenticationManager.setResourceId(resourceId);
    oauthAuthenticationManager.setTokenServices(resourceTokenServices(http));
    oauthAuthenticationManager.setClientDetailsService(clientDetails());
    return oauthAuthenticationManager;
  }
View Full Code Here

Examples of org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationManager

            .addFilterBefore(clientCredentialsTokenEndpointFilter, BasicAuthenticationFilter.class);

    }

    private AuthenticationManager oauthAuthenticationManager(HttpSecurity http) {
        OAuth2AuthenticationManager oauthAuthenticationManager = new OAuth2AuthenticationManager();
        oauthAuthenticationManager.setResourceId(resourceId);
        oauthAuthenticationManager
                .setTokenServices(resourceTokenServices(http));
        return oauthAuthenticationManager;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.