@Configuration
@Conditional(value=OAuth2ResourceServerConfiguration.ResourceServerCondition.class)
@ConditionalOnClass(value={org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer.class,org.springframework.boot.autoconfigure.security.SecurityProperties.class})
@ConditionalOnWebApplication
@ConditionalOnBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration.class)
@Import(value=ResourceServerTokenServicesConfiguration.class)
public class OAuth2ResourceServerConfiguration
extends java.lang.Object
Auto-configure a Spring Security OAuth2 resource server. Back off if another
ResourceServerConfigurer
already exists or if resource server not enabled.
- Since:
- 1.3.0