[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xacml] JSON mapping choices
David,
From: xacml@lists.oasis-open.org [mailto:xacml@lists.oasis-open.org] On Behalf Of David Brossard
Sent: Tuesday, June 12, 2012 5:07 AM
To: Danny Thorpe
Cc: xacml@lists.oasis-open.org
Subject: Re: [xacml] JSON mapping choices
Is this a short hand for urn:oasis:names:tc:xacml:2.0:subject:role?
> {
> "Request": {
> "Attributes": {
> "Category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
> "Attribute": {
> "Id": "user-role"
So the default DataType is "http://www.w3.org/2001/XMLSchema#string"?
> "AttributeValue" : {
> "value" : ["manager","administrator"]
> }
> }
> }
> "Attributes": {
I don't think this is valid JSON. You should use arrays to wrap multiple objects:
{
"Request": [
{
"Category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject","Attributes": [
{
"Id": "user-role",
"AttributeValue" : {},
"value" : ["manager","administrator"]
}
}
{
"Category": ...,
"Attributes": [
...
]
}
]
}
Thanks,
Ray
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]