Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5352

session.tokenkey value randomly generated with quotes causing login issues to applications

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 3.3.6, 3.4.5
    • 3.3.0, 3.4.0
    • None
    • None

      Issue Summary

      session.tokenkey value sometimes generated with quotes. This can impact the SSO experience by unexpectedly overwriting cookies

      Environment

      • Crowd 3.3.3
      • Confluence any version

      Steps to Reproduce

      1. Connect Confluence and Crowd with SSO
      2. Login to Confluence as Crowd users
      3. Go to Browser Console, to check the session cookies generated

      Expected Results

      Session.tokenkey (or crowd.token_key) value will not have quotes

      Actual Results

      Session.tokenkey (or crowd.token_key) values will have quotes when an equal(=) sign exist in the token

      Looking into the HAR file, the token with quotes will have 1 pair of quotes being escaped that look something like this:

                    "name": "crowd.token_key",
                    "value": "\"xxxxxxxxxxxxxxxxx=\"",
      

      Notes

      • This issue not seen without SSO
      • This issue does not exists in Crowd version 3.2.5

      Workaround

      • As the Token is being generated randomly, the affected user can try to Log Out and re-Log In again to get a new token generated.
      • There are still chances that after re-logging the user still get another token with an equal(=) symbol in it and hitting into the same issue

            [CWD-5352] session.tokenkey value randomly generated with quotes causing login issues to applications

            Monique Khairuliana (Inactive) made changes -
            Epic Link Original: CWD-4704 [ 600140 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 3092712 ] New: JAC Bug Workflow v3 [ 3365579 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            GaryM added a comment -

            Hershan, It seemed to depend on the length of the username . Our test show 21-chars don't generate an '=', but 20-chars long does, 19-chars does.
            I think from memory it went something like NO, NO, YES for 19,20,21 as a username length and repeats that pattern.

            GaryM added a comment - Hershan, It seemed to depend on the length of the username . Our test show 21-chars don't generate an '=', but 20-chars long does, 19-chars does. I think from memory it went something like NO, NO, YES for 19,20,21 as a username length and repeats that pattern.

             using Crowd 3.1.2 over HTTPS, but I don't see above given token pattern in cookies. DO you know why is that? 

            Heshan Manamperi added a comment -  using Crowd 3.1.2 over HTTPS, but I don't see above given token pattern in cookies. DO you know why is that? 
            SET Analytics Bot made changes -
            UIS Original: 241 New: 262

            Confirming that 3.4.5 has resolved this issue for us - thanks for the fix team Crowd!

            Craig Castle-Mead added a comment - Confirming that 3.4.5 has resolved this issue for us - thanks for the fix team Crowd!
            Mareusz (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            Bugfix Automation Bot made changes -
            Support reference count Original: 12 New: 13
            Robert Chang made changes -
            Description Original: h3. Issue Summary

            session.tokenkey value sometimes generated with quotes
            h3. Environment
             * Crowd 3.3.3
             * Confluence any version

            h3. Steps to Reproduce
             # Connect Confluence and Crowd with SSO
             # Login to Confluence as Crowd users
             # Go to Browser Console, to check the session cookies generated

            h3. Expected Results

            Session.tokenkey (or crowd.token_key) value will not have quotes
            h3. Actual Results

            Session.tokenkey (or crowd.token_key) values will have quotes when an _equal_(=) sign exist in the token
             !tokenkey.png|thumbnail!
             (i) Looking into the HAR file, the token with quotes will have 1 pair of quotes being _escaped_ that look something like this:
            {code:java}
                          "name": "crowd.token_key",
                          "value": "\"xxxxxxxxxxxxxxxxx=\"",
            {code}
            h3. Notes
             * This issue not seen without SSO
             * This issue does not exists in Crowd version 3.2.5

            h3. Workaround
             * As the Token is being generated randomly, the affected user can try to *Log Out* and *re-Log In* again to get a new token generated.
             * (!) There are still chances that after re-logging the user still get another token with an _equal_(=) symbol in it and hitting into the same issue
            New: h3. Issue Summary

            session.tokenkey value sometimes generated with quotes. This can impact the SSO experience by unexpectedly overwriting cookies

            h3. Environment
             * Crowd 3.3.3
             * Confluence any version

            h3. Steps to Reproduce
             # Connect Confluence and Crowd with SSO
             # Login to Confluence as Crowd users
             # Go to Browser Console, to check the session cookies generated

            h3. Expected Results

            Session.tokenkey (or crowd.token_key) value will not have quotes
            h3. Actual Results

            Session.tokenkey (or crowd.token_key) values will have quotes when an _equal_(=) sign exist in the token
             !tokenkey.png|thumbnail!
             (i) Looking into the HAR file, the token with quotes will have 1 pair of quotes being _escaped_ that look something like this:
            {code:java}
                          "name": "crowd.token_key",
                          "value": "\"xxxxxxxxxxxxxxxxx=\"",
            {code}
            h3. Notes
             * This issue not seen without SSO
             * This issue does not exists in Crowd version 3.2.5

            h3. Workaround
             * As the Token is being generated randomly, the affected user can try to *Log Out* and *re-Log In* again to get a new token generated.
             * (!) There are still chances that after re-logging the user still get another token with an _equal_(=) symbol in it and hitting into the same issue
            SET Analytics Bot made changes -
            UIS Original: 201 New: 241

              mmakowski Mareusz (Inactive)
              mkhairuliana Monique Khairuliana (Inactive)
              Affected customers:
              11 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: