Class OAuth2ResourceWebSecurityConfiguration
java.lang.Object
com.broadleafcommerce.oauth2.resource.security.autoconfiguration.OAuth2ResourceWebSecurityConfiguration
@Configuration
@EnableWebSecurity
@ConditionalOnProperty(name="broadleaf.resource.security.oauth2.enableWebSecurity",
matchIfMissing=true)
public class OAuth2ResourceWebSecurityConfiguration
extends Object
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ResourceWebSecurityConfiguration
(OAuth2ResourceSecurityProperties properties, List<com.broadleafcommerce.resource.security.SecurityEnhancer> configurers) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.web.util.matcher.RequestMatcher[]
asRequestMatchers
(String... patterns) By default, this forces interpretation of the given string patterns as ant patterns, matching viaAntPathRequestMatcher
semantics rather than the defaultMvcRequestMatcher
.protected void
configureDispatcherTypeAuthorization
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.security.web.SecurityFilterChain
oauth2ResourceWebSecurityFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
Constructor Details
-
OAuth2ResourceWebSecurityConfiguration
public OAuth2ResourceWebSecurityConfiguration(OAuth2ResourceSecurityProperties properties, List<com.broadleafcommerce.resource.security.SecurityEnhancer> configurers)
-
-
Method Details
-
oauth2ResourceWebSecurityFilterChain
@Bean @ConditionalOnMissingBean(name="oauth2ResourceWebSecurityFilterChain") @Order(3) public org.springframework.security.web.SecurityFilterChain oauth2ResourceWebSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureDispatcherTypeAuthorization
protected void configureDispatcherTypeAuthorization(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
asRequestMatchers
protected org.springframework.security.web.util.matcher.RequestMatcher[] asRequestMatchers(String... patterns) By default, this forces interpretation of the given string patterns as ant patterns, matching viaAntPathRequestMatcher
semantics rather than the defaultMvcRequestMatcher
.- Parameters:
patterns
- the patterns to convert- Returns:
RequestMatcher
instances specifying how those patterns are matched
-