Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1210

SSOCookieProvider should detect expired SSO token

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • None
    • KnoxSSO
    • None

    Description

      While proxying a UI that makes XHR (XMLHttpRequest) calls through Knox, if the SSO token expires, that request through Knox will be redirected to the KnoxSSO login page, which will be the response to the request itself.  The UI that receives this response will attempt to parse it and fail, since it is not the expected response; it is the KnoxSSO login page itself.

      When a request is made with a 

      X-Requested-With

      header set to

      XMLHttpRequest

      the SSOCookieProvider should check for SSO token expiry.  If the token has not expired, the request should continue through to the proxied resource.  If the token has expired, rather than redirecting to the KnoxSSO login page, a

      401 Unauthorized

      response should be returned.

      Attachments

        1. KNOX-1210.001.patch
          4 kB
          Sandeep More

        Issue Links

          Activity

            People

              smore Sandeep More
              jtstorck Jeff Storck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: