You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ben deVries (Jira)" <ji...@apache.org> on 2022/08/17 19:09:00 UTC

[jira] [Created] (SLING-11547) AuthenticationInfoPostProcess redirect failing

Ben deVries created SLING-11547:
-----------------------------------

             Summary: AuthenticationInfoPostProcess redirect failing
                 Key: SLING-11547
                 URL: https://issues.apache.org/jira/browse/SLING-11547
             Project: Sling
          Issue Type: Bug
          Components: Authentication
            Reporter: Ben deVries


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.{color:#9876aa}SC_TEMPORARY_REDIRECT{color}){color:#cc7832};
{color}httpServletResponse.setHeader({color:#6a8759}"Location"{color}{color:#cc7832}, {color}{color:#6a8759}"https://www.google.com"{color}){color:#cc7832};{color}


I have also tried

{color:#cc7832}try {color}{
    httpServletResponse.sendRedirect({color:#6a8759}"https://www.google.com"{color}){color:#cc7832};
{color}} {color:#cc7832}catch {color}(IOException e) {
e.printStackTrace(){color:#cc7832};
{color}}

which is also not working.

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)