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

KnoxSSO token audience config should trim values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • KnoxSSO
    • None

    Description

      knoxsso.token.audiences can be set to a comma-separated list of values. Those values can end up containing spaces, depending on how the list is configured. For example:

              <param>
                 <name>knoxsso.token.audiences</name>
                 <value>foo,bar, baz</value>
              </param>
      

      With that config, the token seen by the receiving service will see three audiences, "foo", "bar", and " baz". Notice the space in front of baz.

      If the list is parsed and the values are trimmed, it might avoid confusion for services that need to parse that list and match values. Other areas within Knox (such as federation filters) should also trim the values in the list for matching purposes.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            jtstorck Jeff Storck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: