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

Reply via email to