Class ReactiveResourceServerAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.authentication.AbstractReactiveResourceServerAutoConfiguration
-
- org.bremersee.security.authentication.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.
-
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
-
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 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
-
-