Handling Internal Server Error When OAuth Issuer Is Not Available in WebFluxSecurity
I cannot customize the default “500 internal server error” response body in case the issuer (Keycloak) for my reactive Spring resource server is unavailable. I want to add a custom JSON response, but, for example, the usual @ExceptionHandler
does not work because the authentication won’t pass.