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)
  • 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 via AntPathRequestMatcher semantics rather than the default MvcRequestMatcher.
      Parameters:
      patterns - the patterns to convert
      Returns:
      RequestMatcher instances specifying how those patterns are matched