Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11547

AuthenticationInfoPostProcess redirect failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Authentication
    • None

    Description

      I am working with AEM 6.5, backed by Sling for SAML authentication and am having issues with the postProcess method that is invoked after a user is authenticated. I am attempting to do a redirect, but for some reason that is not working, here is what i have in my postProcessor

      httpServletResponse.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);

      httpServletResponse.setHeader("Location", "https://www.google.com");

      I have also tried

      try {
          httpServletResponse.sendRedirect("https://www.google.com");
      } catch
      (IOException e)

      { e.printStackTrace(); }

      which is also not working.

      Wondering why it seems that sling is blocking the redirect as the client is not being redirected.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Tabs Ben deVries
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: