[
https://issues.apache.org/jira/browse/KNOX-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191322#comment-16191322
]
Larry McCay commented on KNOX-1069:
-----------------------------------
HAHA - thanks, [~coheigea]!
I thought about tagging you in this one and expected you to find it.
Was sort of expecting to see a utility method added though. :)
> KnoxSSO token audience config should trim values
> ------------------------------------------------
>
> Key: KNOX-1069
> URL: https://issues.apache.org/jira/browse/KNOX-1069
> Project: Apache Knox
> Issue Type: Improvement
> Components: KnoxSSO
> Affects Versions: 0.13.0
> Reporter: Jeff Storck
> Assignee: Colm O hEigeartaigh
> Priority: Minor
> Fix For: 0.14.0
>
>
> 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:
> {code:xml}
> <param>
> <name>knoxsso.token.audiences</name>
> <value>foo,bar, baz</value>
> </param>
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)