• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.8.3, 2.9.1
    • SSO

      Problem:

      Crowd doesn't remove the "Remember me" cookies: seraph.confluence,
      seraph.rememberme.cookie and _atl_bitbucket_remember_me when you logout from applications that are connected to it and using SSO. Given that, if you close the browser and open it again, you are already logged in.

      For JIRA Data Center and Bitbucket Data Center, you have the option to check the "Remember me" option as outlined in the following screenshots:


      So this problem only happens when the Rememer me option is checked.

      However, for Confluence Data Center , the "Remember me" option is hidden:

      When that option is hidden, the "Remember me" token seraph.rememberme.cookie is set by default (value="true"):

                              #if ($action.shouldRememberMeCheckboxBeOmitted())
                                  <input type="hidden" name="os_cookie" value="true"/>
                              #else
                                  #bodytag( "Component" "label='remember.accesskey'" "name='os_cookie'" "value='false'" "theme='aui'" "template='onofflist.vm'") #end
                              #end
      

      This is designed this way because data center relies on that cookie seraph.confluence to distribute the load between the nodes.

      One thing to note is that seraph.confluence cookie is only generated if when you open the browser and login through Confluence. If you login through any other application, that cookie is not generated.

      How to test this:

      Test One:

      • Open Chrome and go to Settings > show advanced settings > clear browsing data and clear everything from the beginning of times
      • Now, open Confluence and login
      • Check your browser's cookies ((Settings > show advanced settings > content settings > All cookies and site data)). The seraph.confluence cookie is set for your domain (localhost, on my tests)
      • Now, login to JIRA
      • Logout from JIRA and close the browser
      • Open the browser again and check your cookies again. The seraph.confluence is still there
      • Open Confluence. Since the seraph.confluence cookie still exists, you are not asked to login to Confluence (not the expected behavior)

      Test Two:

      • Close all tabs and clear your browser's cache: Settings > show advanced settings > clear browsing data and clear everything from the begging of times
      • Login to JIRA
      • Open a new tab and open Confluence, you should be automatically logged in.
      • Check your browser's cookies ((Settings > show advanced settings > content settings > All cookies and site data)). The seraph.confluence cookie is not there
      • Logout from JIRA
      • Close the browser
      • Open the browser again and try to login to Confluence. Since the seraph.confluence cookie doesn't exist, you will be asked as expected to login to Confluence

      Proposed Fix:

      When logging out of applications that are using SSO, all cookies (including the "Remember Me") ones should be cleared as well.

        1. bb_remember_me.png
          bb_remember_me.png
          195 kB
        2. confluence_no_remember_me.png
          confluence_no_remember_me.png
          125 kB
        3. jira_remember_me.png
          jira_remember_me.png
          216 kB

            [CWD-4749] Inconsistent SSO behavior when using Data Center

            SET Analytics Bot made changes -
            UIS Original: 11 New: 9
            SET Analytics Bot made changes -
            Support reference count Original: 8 New: 9
            SET Analytics Bot made changes -
            UIS Original: 13 New: 11
            SET Analytics Bot made changes -
            UIS Original: 11 New: 13
            SET Analytics Bot made changes -
            UIS Original: 9 New: 11
            SET Analytics Bot made changes -
            UIS Original: 11 New: 9
            SET Analytics Bot made changes -
            UIS Original: 0 New: 11
            SET Analytics Bot made changes -
            UIS Original: 2 New: 0
            SET Analytics Bot made changes -
            UIS Original: 4 New: 2
            Pawel Cieszko made changes -
            Status Original: In Progress [ 3 ] New: Long Term Backlog [ 12073 ]

              mradochonski@atlassian.com Marek Radochonski (Inactive)
              cgauterio Clarissa Gauterio (Inactive)
              Affected customers:
              11 This affects my team
              Watchers:
              19 Start watching this issue

                Created:
                Updated: