@ConditionalOnProperty(value="genie.security.oauth2.enabled")
@Configuration
@EnableResourceServer
public class OAuth2Config
extends org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
https://youtu.be/MLfL1NpwUC4?t=1h7m55s
When enabled by default is given Order(3) which comes from within EnableResourceServer.
| Constructor and Description |
|---|
OAuth2Config() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer resources) |
public void configure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer resources)
throws java.lang.Exception
configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerconfigure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapterjava.lang.Exceptionpublic void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws java.lang.Exception
configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerconfigure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapterjava.lang.Exception