Class SecurityGatewayConfiguration
java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.configuration.SecurityGatewayConfiguration
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@Configuration
@EnableWebFlux
public class SecurityGatewayConfiguration
extends Object
implements org.springframework.web.reactive.config.WebFluxConfigurer
Cors configurationfor web flux.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureHttpMessageCodecs(org.springframework.http.codec.ServerCodecConfigurer configurer) (package private) org.springframework.web.cors.reactive.CorsConfigurationSourceorg.springframework.security.web.server.SecurityWebFilterChainsecurityWebFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http) Filter for disabled csrf.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer
addCorsMappings, addFormatters, addResourceHandlers, configureArgumentResolvers, configureContentTypeResolver, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Field Details
-
FRONTEND_LOCALHOST
FRONTEND_LOCALHOST.- See Also:
-
BACKEND_LOCALHOST
BACKEND_LOCALHOST.- See Also:
-
FRONTEND_STAGING
FRONTEND_STAGING.- See Also:
-
FRONTEND_LOCAL
FRONTEND_STAGING.- See Also:
-
-
Constructor Details
-
SecurityGatewayConfiguration
public SecurityGatewayConfiguration()
-
-
Method Details
-
securityWebFilterChain
@Bean public org.springframework.security.web.server.SecurityWebFilterChain securityWebFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http) Filter for disabled csrf.- Parameters:
http- server http security data.- Returns:
- Security web filter chain.
-
corsConfiguration
@Bean org.springframework.web.cors.reactive.CorsConfigurationSource corsConfiguration() -
configureHttpMessageCodecs
public void configureHttpMessageCodecs(org.springframework.http.codec.ServerCodecConfigurer configurer) - Specified by:
configureHttpMessageCodecsin interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-