Class ReactiveResourceServerAutoConfiguration


  • @ConditionalOnWebApplication(type=REACTIVE)
    @Conditional(ResourceServerAutoSecurityCondition.class)
    @ConditionalOnClass({org.springframework.security.config.web.server.ServerHttpSecurity.class,org.springframework.security.authentication.ReactiveAuthenticationManager.class,org.bremersee.security.authentication.PasswordFlowProperties.class})
    @ConditionalOnMissingBean(type="org.bremersee.actuator.security.authentication.ReactiveResourceServerWithActuatorAutoConfiguration")
    @EnableConfigurationProperties({CorsProperties.class,AuthProperties.class})
    @Configuration
    public class ReactiveResourceServerAutoConfiguration
    extends AbstractReactiveResourceServerAutoConfiguration
    The reactive resource server security auto configuration.
    Author:
    Christian Bremer
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveResourceServerAutoConfiguration​(org.springframework.core.env.Environment environment, CorsProperties corsProperties, AuthProperties securityProperties, org.springframework.beans.factory.ObjectProvider<org.bremersee.security.authentication.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 security auto configuration.
    • Constructor Detail

      • ReactiveResourceServerAutoConfiguration

        public ReactiveResourceServerAutoConfiguration​(org.springframework.core.env.Environment environment,
                                                       CorsProperties corsProperties,
                                                       AuthProperties securityProperties,
                                                       org.springframework.beans.factory.ObjectProvider<org.bremersee.security.authentication.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 security auto configuration.
        Parameters:
        environment - the environment
        corsProperties - the cors properties
        securityProperties - the security properties
        jwtConverterProvider - the jwt converter provider
        userDetailsServiceProvider - the user details service provider
        passwordEncoderProvider - the password encoder provider
    • Method Detail

      • 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