Support this kind of configuration when defining redirection points:
{code :java } SecurityConfigurationBuilder builder = event.getBuilder();
builder .http() .forPath("/basicProtectedUri/*") .authenticateWith() .basic() .redirectTo("/customErrorPage.html") .whenException(CustomExceptionThrower.CustomException.class); {code}
In this case, a redirect url can be define based on a specifyc exception type.
|