[ 
https://issues.apache.org/jira/browse/KNOX-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16295237#comment-16295237
 ] 

Larry McCay commented on KNOX-1002:
-----------------------------------

Hi [~csomaati] - to be honest, I don't know that this is really needed.
Can you articulate a usecase where we need multiple values for the same key?

I've never quite understood why anyone would file a JIRA for not being able to 
separate values with the delimiter used to separate the pairs.
I also agree that it isn't clear whether the problem is not being able to have 
commas in the value or whether it is desired to have multiple values for the 
same key.

Again, we need an actual usecase for what this param is intended for - that 
being, the ability to provide token session clients with hints that they can 
use when interacting with services through a JWTProvider protected topology.

> Knox Token Service Client data with comma separated list of values for a key 
> should be handled
> ----------------------------------------------------------------------------------------------
>
>                 Key: KNOX-1002
>                 URL: https://issues.apache.org/jira/browse/KNOX-1002
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: J.Andreina
>             Fix For: 0.15.0
>
>
> If in case in client data , a key has got list of comma separated values, 
> then only the first value in the list is considered in the response.
> Should be able to  differentiate between commas within values and comma used 
> as delimiter for key value pair. When used escape character for comma within 
> values list is also not working.
>  
> For example
> Configured a comma separated list of value for a key as below
> {code}
>             <name>knox.token.client.data</name>
>             <value>key1=value1,value2,value3,key2=value4</value>
>  {code}
> *Response is as follows:*
> {"access_token":"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJndWVzdCIsImF1ZCI6InRva2VuYmFzZWQiLCJpc3MiOiJLTk9YU1NPIiwiZXhwIjo1MTUwMzU1MTA1Mn0.bpGoIsVTp2sgF74kyQYRRNAW9wW-nhg5_A3N40Zfb1FuK5apED-PDNfZBroMQ9wLy80egPWMqPbTVFa9vrdZ2RJgNdOfnlaE-Ey-qr7khRZQAaeb42aGUjGxnUAipZvoRbp48lWH-w3wOTq5qV6EBu0cczxqw0rxD2zZTmsk2oQ",{color:red}"key1":"value1","key2":"value4"{color},"target_url":"https://$KNOX_HOST:$KNOX_PORT/gateway/tokenbased","token_type":"Bearer
>  ","expires_in":51503551052130}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to