OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xacml message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xacml] JSON mapping choices


Hi Ray,

        "Attributes": {
            "Category": "urn:oasis:names:tc:xacml:3.0:attribute-category:resource",
            "Attribute": [{
                "Id": "document-id"
                "AttributeValue" : {
                   "value" : ["123"]
                   "DataType" : "http://www.w3.org/2001/XMLSchema#integer"
                }
            }]
        }


On Tue, Jun 12, 2012 at 2:45 AM, <remon.sinnema@emc.com> wrote:
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

> {
>    "Request": {
>        "Attributes": {
>            "Category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
>            "Attribute": {
>                "Id": "user-role"

Is this a short hand for urn:oasis:names:tc:xacml:2.0:subject:role?


>                 "AttributeValue" : {
>                   "value" : ["manager","administrator"]
>                }

So the default DataType is "http://www.w3.org/2001/XMLSchema#string"?


>            }
>        }
>        "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




--
David Brossard, M.Eng, SCEA, CSTP
VP Product Marketing & Customer Relations
+46(0)760 25 85 75
Axiomatics AB
Skeppsbron 40
S-111 30 Stockholm, Sweden
http://www.linkedin.com/companies/536082
http://www.axiomatics.com
http://twitter.com/axiomatics



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]