|
|
@ -25,6 +25,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
|
|
|
|
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
|
|
|
|
|
|
|
|
import org.springframework.security.oauth2.jwt.JwtDecoder;
|
|
|
|
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
|
|
|
|
import org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -37,7 +38,8 @@ import org.springframework.security.oauth2.server.resource.BearerTokenAuthentica
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@AutoConfigureBefore(ReactiveSecurityAutoConfiguration.class)
|
|
|
|
@AutoConfigureBefore(ReactiveSecurityAutoConfiguration.class)
|
|
|
|
@EnableConfigurationProperties(OAuth2ResourceServerProperties.class)
|
|
|
|
@EnableConfigurationProperties(OAuth2ResourceServerProperties.class)
|
|
|
|
@ConditionalOnClass({ EnableWebFluxSecurity.class, BearerTokenAuthenticationToken.class })
|
|
|
|
@ConditionalOnClass({ EnableWebFluxSecurity.class, BearerTokenAuthenticationToken.class,
|
|
|
|
|
|
|
|
JwtDecoder.class })
|
|
|
|
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
|
|
|
|
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
|
|
|
|
@Import({ ReactiveOAuth2ResourceServerJwkConfiguration.class,
|
|
|
|
@Import({ ReactiveOAuth2ResourceServerJwkConfiguration.class,
|
|
|
|
ReactiveOAuth2ResourceServerWebSecurityConfiguration.class })
|
|
|
|
ReactiveOAuth2ResourceServerWebSecurityConfiguration.class })
|
|
|
|