@Configuration
@Conditional(value=OAuth2ResourceServerConfiguration.ResourceServerCondition.class)
@ConditionalOnClass(value={org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer.class,SecurityProperties.class})
@ConditionalOnWebApplication
@ConditionalOnBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration.class)
@Import(value=ResourceServerTokenServicesConfiguration.class)
public class OAuth2ResourceServerConfiguration
extends 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
- Author:
- Greg Turnquist, Dave Syer, Madhura Bhave