Hi Juan Pablo Vadell,

Thank you for reporting this. It needs to be fixed. I have created a git
issue[1] to track and fix this.

[1] - https://github.com/wso2/product-is/issues/3918

Thanks,
Senthalan

On Fri, Nov 2, 2018 at 6:34 PM Juan Pablo Vadell <[email protected]>
wrote:

> Hi,
>
> Anyone could give me some help on this?
>
> Thanks,
>
> Juan Pablo Vadell | *VATROX*
>
>
>
> On Mon, Oct 8, 2018 at 12:24 PM Juan Pablo Vadell <[email protected]>
> wrote:
>
>> Hi,
>>
>> Anyone could give me somo help on this?
>>
>> Thanks,
>>
>> Juan Pablo Vadell | *VATROX*
>>
>>
>>
>> On Fri, Sep 14, 2018 at 12:12 AM Juan Pablo Vadell <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> I can't user Array values on Attributes in a XACML.
>>>
>>> This works.
>>> {
>>>     "Request": {
>>>         "AccessSubject": {
>>>             "Attribute": [
>>>                 {
>>>                     "AttributeId":
>>> "urn:oasis:names:tc:xacml:1.0:subject:subject-id",
>>>                     *"Value": "pdp-user"*
>>>                 }
>>>             ]
>>>         },
>>>         "Action": {
>>>             "Attribute": []
>>>         },
>>>         "Resource": {
>>>             "Attribute": [
>>>                 {
>>>                     "AttributeId": "resource-id",
>>>                     *"Value": "helloWorld"*
>>>                 }
>>>             ]
>>>         },
>>>         "Environment": {
>>>             "Attribute": []
>>>         }
>>>     }
>>> }
>>>
>>> Response:
>>> {
>>>     "Response": [
>>>         {
>>>             "Decision": "Permit",
>>>             "Status": {
>>>                 "StatusCode": {
>>>                     "Value": "urn:oasis:names:tc:xacml:1.0:status:ok"
>>>                 }
>>>             }
>>>         }
>>>     ]
>>> }
>>>
>>> This doesn't work.
>>>
>>> {
>>>     "Request": {
>>>         "AccessSubject": {
>>>             "Attribute": [
>>>                 {
>>>                     "AttributeId":
>>> "urn:oasis:names:tc:xacml:1.0:subject:subject-id",
>>>                     *"Value": ["pdp-user"]*
>>>                 }
>>>             ]
>>>         },
>>>         "Action": {
>>>             "Attribute": []
>>>         },
>>>         "Resource": {
>>>             "Attribute": [
>>>                 {
>>>                     "AttributeId": "resource-id",
>>>                     *"Value": ["helloWorld"]*
>>>                 }
>>>             ]
>>>         },
>>>         "Environment": {
>>>             "Attribute": []
>>>         }
>>>     }
>>> }
>>>
>>> Response:
>>> {
>>>     "code": 40020,
>>>     "message": "Request Parse Exception."
>>> }
>>>
>>> There is a way to fix this?
>>>
>>> Thank you,
>>>
>>> Juan Pablo Vadell | *VATROX*
>>> *CTO*
>>>
>>>
>>> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Senthalan Kanagalingam*
*Software Engineer - WSO2 Inc.*
*Mobile : +94 (0) 77 18 77 466*
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to