|
|
|
|
@ -19,13 +19,16 @@ package org.springframework.boot.security.oauth2.server.resource.autoconfigure.s
@@ -19,13 +19,16 @@ package org.springframework.boot.security.oauth2.server.resource.autoconfigure.s
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration; |
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; |
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties; |
|
|
|
|
import org.springframework.boot.security.autoconfigure.actuate.servlet.ManagementWebSecurityAutoConfiguration; |
|
|
|
|
import org.springframework.boot.security.autoconfigure.servlet.SecurityAutoConfiguration; |
|
|
|
|
import org.springframework.boot.security.autoconfigure.servlet.UserDetailsServiceAutoConfiguration; |
|
|
|
|
import org.springframework.boot.security.oauth2.server.resource.autoconfigure.OAuth2ResourceServerProperties; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Import; |
|
|
|
|
import org.springframework.security.config.web.PathPatternRequestMatcherBuilderFactoryBean; |
|
|
|
|
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -43,4 +46,10 @@ import org.springframework.security.oauth2.server.resource.authentication.Bearer
@@ -43,4 +46,10 @@ import org.springframework.security.oauth2.server.resource.authentication.Bearer
|
|
|
|
|
Oauth2ResourceServerConfiguration.OpaqueTokenConfiguration.class }) |
|
|
|
|
public class OAuth2ResourceServerAutoConfiguration { |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
@ConditionalOnMissingBean(name = "workAroundSecurityDependencyCyclePathPatternRequestMatcherBuilder") |
|
|
|
|
PathPatternRequestMatcherBuilderFactoryBean workAroundSecurityDependencyCyclePathPatternRequestMatcherBuilder() { |
|
|
|
|
return new PathPatternRequestMatcherBuilderFactoryBean(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|