Class ReactiveActuatorSecurityAutoConfiguration


  • @ConditionalOnWebApplication(type=REACTIVE)
    @Conditional(ActuatorAutoSecurityCondition.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})
    @EnableConfigurationProperties({org.springframework.boot.autoconfigure.security.SecurityProperties.class,AuthProperties.class,ActuatorAuthProperties.class})
    @Configuration
    public class ReactiveActuatorSecurityAutoConfiguration
    extends Object
    The reactive actuator security auto configuration.
    Author:
    Christian Bremer
    • Constructor Detail

      • ReactiveActuatorSecurityAutoConfiguration

        public ReactiveActuatorSecurityAutoConfiguration​(AuthProperties authProperties,
                                                         ActuatorAuthProperties actuatorAuthProperties,
                                                         org.springframework.beans.factory.ObjectProvider<JsonPathReactiveJwtConverter> jsonPathJwtConverterProvider,
                                                         org.springframework.beans.factory.ObjectProvider<WebClientAccessTokenRetriever> tokenRetrieverProvider,
                                                         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 actuator security auto configuration.
        Parameters:
        authProperties - the security properties
        actuatorAuthProperties - the actuator security properties
        jsonPathJwtConverterProvider - the json path jwt converter provider
        tokenRetrieverProvider - the token retriever provider
        userDetailsServiceProvider - the user details service provider
        passwordEncoderProvider - the password encoder provider
    • Method Detail

      • init

        @EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class)
        public void init()
        Init.
      • actuatorFilterChain

        @Bean
        public org.springframework.security.web.server.SecurityWebFilterChain actuatorFilterChain​(org.springframework.beans.factory.ObjectProvider<org.springframework.security.config.web.server.ServerHttpSecurity> httpProvider)
        Actuator filter chain security web filter chain.
        Parameters:
        httpProvider - the http provider
        Returns:
        the security web filter chain