Class ReactiveResourceServerWithActuatorAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.authentication.AbstractReactiveResourceServerAutoConfiguration
-
- org.bremersee.actuator.security.authentication.ReactiveResourceServerWithActuatorAutoConfiguration
-
@ConditionalOnWebApplication(type=REACTIVE) @Conditional(ResourceServerAutoSecurityCondition.class) @ConditionalOnClass({org.springframework.security.config.web.server.ServerHttpSecurity.class,org.springframework.security.authentication.ReactiveAuthenticationManager.class,PasswordFlowProperties.class,org.springframework.boot.actuate.info.Info.class}) @AutoConfigureBefore(ReactiveResourceServerAutoConfiguration.class) @EnableConfigurationProperties({CorsProperties.class,AuthProperties.class}) @Configuration public class ReactiveResourceServerWithActuatorAutoConfiguration extends AbstractReactiveResourceServerAutoConfiguration
The reactive resource server with actuator security auto configuration.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ReactiveResourceServerWithActuatorAutoConfiguration(org.springframework.core.env.Environment environment, CorsProperties corsProperties, AuthProperties securityProperties, org.springframework.beans.factory.ObjectProvider<JsonPathReactiveJwtConverter> jwtConverterProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.security.core.userdetails.ReactiveUserDetailsService> userDetailsServiceProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoderProvider)
Instantiates a new reactive resource server with actuator security auto configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Init.protected org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec
init(org.springframework.security.config.web.server.ServerHttpSecurity http)
Init authorize exchange.org.springframework.security.web.server.SecurityWebFilterChain
resourceServerFilterChain(org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.web.server.ServerHttpSecurity> httpProvider)
Resource server filter chain.-
Methods inherited from class org.bremersee.security.authentication.AbstractReactiveResourceServerAutoConfiguration
resourceServerFilterChain
-
-
-
-
Constructor Detail
-
ReactiveResourceServerWithActuatorAutoConfiguration
public ReactiveResourceServerWithActuatorAutoConfiguration(org.springframework.core.env.Environment environment, CorsProperties corsProperties, AuthProperties securityProperties, org.springframework.beans.factory.ObjectProvider<JsonPathReactiveJwtConverter> jwtConverterProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.security.core.userdetails.ReactiveUserDetailsService> userDetailsServiceProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.security.crypto.password.PasswordEncoder> passwordEncoderProvider)
Instantiates a new reactive resource server with actuator security auto configuration.- Parameters:
environment
- the environmentcorsProperties
- the cors propertiessecurityProperties
- the security propertiesjwtConverterProvider
- the jwt converter provideruserDetailsServiceProvider
- the user details service providerpasswordEncoderProvider
- the password encoder provider
-
-
Method Detail
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
Description copied from class:AbstractReactiveResourceServerAutoConfiguration
Init.- Overrides:
init
in classAbstractReactiveResourceServerAutoConfiguration
-
init
protected org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec init(org.springframework.security.config.web.server.ServerHttpSecurity http)
Description copied from class:AbstractReactiveResourceServerAutoConfiguration
Init authorize exchange.- Specified by:
init
in classAbstractReactiveResourceServerAutoConfiguration
- Parameters:
http
- the http- Returns:
- the authorize exchange spec
-
resourceServerFilterChain
@Bean public org.springframework.security.web.server.SecurityWebFilterChain resourceServerFilterChain(org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.web.server.ServerHttpSecurity> httpProvider)
Resource server filter chain.- Parameters:
httpProvider
- the http provider- Returns:
- the security web filter chain
-
-