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

Add option to redirect based on an exception

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: