Package org.openwms.gateway.app
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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final org.slf4j.Loggerprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorsMappings(org.springframework.web.reactive.config.CorsRegistry registry) org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandlerorg.springframework.security.web.server.SecurityWebFilterChainspringSecurityFilterChain(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, waitMethods 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
-
-
Constructor Details
-
ApiGatewaySecurityConfiguration
ApiGatewaySecurityConfiguration()
-
-
Method Details
-
addCorsMappings
public void addCorsMappings(org.springframework.web.reactive.config.CorsRegistry registry) - Specified by:
addCorsMappingsin interfaceorg.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)
-