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
    Modifier and Type
    Field
    Description
    private static final String
    BACKEND_LOCALHOST.
    private static final String
    FRONTEND_STAGING.
    private static final String
    FRONTEND_LOCALHOST.
    private static final String
    FRONTEND_STAGING.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureHttpMessageCodecs(org.springframework.http.codec.ServerCodecConfigurer configurer)
     
    (package private) org.springframework.web.cors.reactive.CorsConfigurationSource
     
    org.springframework.security.web.server.SecurityWebFilterChain
    securityWebFilterChain(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, wait

    Methods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer

    addCorsMappings, addFormatters, addResourceHandlers, configureArgumentResolvers, configureContentTypeResolver, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
  • Field Details

  • 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:
      configureHttpMessageCodecs in interface org.springframework.web.reactive.config.WebFluxConfigurer