Package io.jmix.securityoauth2.config
Class ResourceServerConfiguration
java.lang.Object
io.jmix.securityoauth2.config.ResourceServerConfiguration
- All Implemented Interfaces:
org.springframework.core.Ordered
@Configuration
public class ResourceServerConfiguration
extends Object
implements org.springframework.core.Ordered
A copy of
ResourceServerConfiguration
that doesn't extend WebSecurityConfigurerAdapter
.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
org.springframework.security.web.SecurityFilterChain
securityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) void
setConfigurers
(List<org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer> configurers) void
setOrder
(int order)
-
Constructor Details
-
ResourceServerConfiguration
public ResourceServerConfiguration()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
setConfigurers
@Autowired(required=false) public void setConfigurers(List<org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer> configurers) - Parameters:
configurers
- the configurers to set
-
securityFilterChain
@Bean("sec_OAuthResourceServerSecurityFilterChain") @Order(250) public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-