Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7810

SAML Assertion Cookie persistence - configurable to not persist across browser restarts

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.7
    • JAX-RS
    • None
    • Unknown

    Description

      In AbstractSSOSpHandler -> createCookie ->
      There is specific code to have cookie persist across browser restarts.
      Pasted Below:
      ************
      // Keep the cookie across the browser restarts until it actually expires.
      // Note that the Expires property has been deprecated but apparently is
      // supported better than 'max-age' property by different browsers
      // (Firefox, IE, etc)
      Instant expires = Instant.ofEpochMilli(System.currentTimeMillis() + stateTimeToLive);
      String cookieExpires =
      HttpUtils.getHttpDateFormat().format(Date.from(expires.atZone(ZoneOffset.UTC).toInstant()));
      contextCookie += ";Expires=" + cookieExpires;
      ************

      We are using Apache CXF for web sso to integrate with our IDP and have a security issue with having the cookie persist when browser exits. Is there a configuration or different way to remove cookie when the browser is closed? Not all of our users will use logout to sign-off, they will just close the browser.

      Please let me know.

      Attachments

        1. output.txt
          26 kB
          Ramprasad
        2. cxf-config.xml
          2 kB
          Ramprasad

        Activity

          People

            coheigea Colm O hEigeartaigh
            ranusuri Ramprasad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: