Class ApiGatewaySecurityConfiguration

java.lang.Object
org.openwms.gateway.app.ApiGatewaySecurityConfiguration
All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer

@Configuration @EnableWebFluxSecurity class ApiGatewaySecurityConfiguration extends Object implements org.springframework.web.reactive.config.WebFluxConfigurer
A ApiGatewaySecurityConfiguration.
Author:
Heiko Scherrer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private static final org.slf4j.Logger
     
    private String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCorsMappings(org.springframework.web.reactive.config.CorsRegistry registry)
     
    org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandler
     
    org.springframework.security.web.server.SecurityWebFilterChain
    springSecurityFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http)
     

    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

    addErrorResponseInterceptors, addFormatters, addResourceHandlers, configureArgumentResolvers, configureBlockingExecution, configureContentTypeResolver, configureHttpMessageCodecs, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
  • Field Details

    • BOOT_LOGGER

      private static final org.slf4j.Logger BOOT_LOGGER
    • basicAuthEnabled

      @Value("${owms.security.basic-auth}") private boolean basicAuthEnabled
    • logoutSuccessUrl

      @Value("${owms.security.logout-success-url}") private String logoutSuccessUrl
  • Constructor Details

    • ApiGatewaySecurityConfiguration

      ApiGatewaySecurityConfiguration()
  • Method Details

    • addCorsMappings

      public void addCorsMappings(org.springframework.web.reactive.config.CorsRegistry registry)
      Specified by:
      addCorsMappings in interface org.springframework.web.reactive.config.WebFluxConfigurer
    • springSecurityFilterChain

      @Bean public org.springframework.security.web.server.SecurityWebFilterChain springSecurityFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http)
    • logoutSuccessHandler

      public org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandler logoutSuccessHandler(String uri)