@Configuration @ConditionalOnClass(value={org.springframework.security.oauth2.common.OAuth2AccessToken.class,org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class}) @Import(value={OAuth2AuthorizationServerConfiguration.class,OAuth2MethodSecurityConfiguration.class,OAuth2ResourceServerConfiguration.class,OAuth2RestOperationsConfiguration.class}) @EnableConfigurationProperties(value=OAuth2ClientProperties.class) public class OAuth2AutoConfiguration extends Object
Auto-configuration
for Spring Security OAuth2.Constructor and Description |
---|
OAuth2AutoConfiguration(OAuth2ClientProperties credentials) |
Modifier and Type | Method and Description |
---|---|
ResourceServerProperties |
resourceServerProperties() |
public OAuth2AutoConfiguration(OAuth2ClientProperties credentials)
@Bean public ResourceServerProperties resourceServerProperties()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.