Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-709

Add option to redirect based on an exception

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.7.1.Final
    • PLINK_2.7.0.Final
    • HTTP_SECURITY
    • None

      Support this kind of configuration when defining redirection points:

      SecurityConfigurationBuilder builder = event.getBuilder();
      
      builder
          .http()
              .forPath("/basicProtectedUri/*")
                  .authenticateWith()
                      .basic()
                  .redirectTo("/customErrorPage.html")
                      .whenException(CustomExceptionThrower.CustomException.class);
      

      In this case, a redirect url can be define based on a specifyc exception type.

              psilva@redhat.com Pedro Igor Craveiro
              psilva@redhat.com Pedro Igor Craveiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: