exceptionHandling
Allows configuring exception handling.
Example:
@Configuration
@EnableWebFluxSecurity
class SecurityConfig {
@Bean
fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http {
exceptionHandling {
authenticationEntryPoint = RedirectServerAuthenticationEntryPoint("/auth")
}
}
}
}Content copied to clipboard
Parameters
exceptionHandlingConfiguration
custom configuration to apply to exception handling