Hi,
we have got a little problem with obligations and attributeAssignment.
the following rule is deployed on the PDP :
<PolicySet xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os" PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:only-one-applicable" PolicySetId="Default">
<Target/>
<Policy RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.1:rule-combining-algorithm:ordered-permit-overrides" Version="1.0" PolicyId="24">
<Target/>
<Rule Effect="Deny" RuleId="AdminRule">
<Target/>
</Rule>
<Obligations>
<Obligation FulfillOn="Deny" ObligationId="urn:oasis:names:tc:xacml:2.0:example:obligation:text">
<AttributeAssignment AttributeId="urn:oasis:names:tc:xacml:2.0:example:attribute:text" DataType="http://www.w3.org/2001/XMLSchema#string">Proposer utilisateur de changer ses permissions acces via une page interaction</AttributeAssignment>
</Obligation>
</Obligations>
</Policy>
<Obligations/>
</PolicySet>
and when we evaluate the following request :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<soapenv:Header/>
<soapenv:Body>
<urn:Request>
<urn:Subject>
<urn:Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" DataType="http://www.w3.org/2001/XMLSchema#anyURI">
<urn:AttributeValue>chronopost</urn:AttributeValue>
</urn:Attribute>
</urn:Subject>
<urn:Resource>
<urn:Attribute AttributeId="xacml:2.0:interop:example:resource:owner-id" DataType="http://www.w3.org/2001/XMLSchema#string">
<urn:AttributeValue>pascal</urn:AttributeValue>
</urn:Attribute>
<urn:Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-location" DataType="http://www.w3.org/2001/XMLSchema#string">
<urn:AttributeValue>PersonalRichProfile</urn:AttributeValue>
</urn:Attribute>
<urn:Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string">
<urn:AttributeValue>lastname</urn:AttributeValue>
</urn:Attribute>
<urn:Attribute AttributeId="urn:oasis:names:tc:xacml:2.0:resource:target-namespace" DataType="http://www.w3.org/2001/XMLSchema#string">
<urn:AttributeValue>FR</urn:AttributeValue>
</urn:Attribute>
</urn:Resource>
<urn:Action>
<urn:Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string">
<urn:AttributeValue>Read</urn:AttributeValue>
</urn:Attribute>
</urn:Action>
<urn:Environment/>
</urn:Request>
</soapenv:Body>
</soapenv:Envelope>
the response retrun the obligation but not the AttributeAssignment :
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Response xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os" xmlns:ns2="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
<Result ResourceId="lastname">
<Decision>Deny</Decision>
<Status>
<StatusCode Value="urn:oasis:names:tc:xacml:1.0:status:ok"/>
<StatusDetail/>
</Status>
<ns2:Obligations>
<ns2:Obligation FulfillOn="Deny" ObligationId="urn:oasis:names:tc:xacml:2.0:example:obligation:text"/>
</ns2:Obligations>
</Result>
</Response>
</soap:Body>
</soap:Envelope>
Is this normal ? Is AttributeAssignment manage by the pdp ? or is it a bug in our side ?
I ask these questions because it seems that AttributeAssignments are not manage in the PAP.
Best regards,
Erwan