Skip to:
Need to switch Undertow to use the ServletAuthenticationCallHandler, which obeys servlet custom error pages. More info here:
With this setup:
Cancelling out of the auth login now shows the custom 401 error page instead of the default Undertow one.
Need to switch Undertow to use the ServletAuthenticationCallHandler, which obeys servlet custom error pages. More info here: