You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have deployed three DSC connectors (one acting as provider with a catalog, offer, representation, artifact, contract and two usage policies rules of Connector Restricted Usage) and the other connectors acting as consumers (connector_B and connector_C).
The rules applied are the Connector Restricted Usage ones (URL https://connector_B and URL https://connector_C):
{"@type":"ids:Permission","@id":"https://connectora:8080/api/rules/492eb8bd-4a66-4be5-bf50-e54228dc347b","ids:description":[{"@value":"Restricted usage only for connector_b","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:constraint":[{"@type":"ids:Constraint","@id":"https://w3id.org/idsa/autogen/constraint/a5b50075-89d5-4940-90ac-9b35a397894b","ids:operator":{"@id":"https://w3id.org/idsa/code/SAME_AS"},"ids:leftOperand":{"@id":"https://w3id.org/idsa/code/SYSTEM"},"ids:rightOperand":{"@value":"https://connector_B","@type":"http://www.w3.org/2001/XMLSchema#anyURI"}}],"ids:action":[{"@id":"https://w3id.org/idsa/code/USE"}],"ids:title":[{"@value":"Restricted usage connector B","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:target":"https://connectora:8080/api/artifacts/bf435743-df13-42fc-bf92-f9fecf45d1a9"}
{"@type":"ids:Permission","@id":"https://connectora:8080/api/rules/58579ab8-33ba-49dd-bf3c-13e2c0ca0b82","ids:description":[{"@value":"Restricted usage only for connector_c","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:constraint":[{"@type":"ids:Constraint","@id":"https://w3id.org/idsa/autogen/constraint/a5b50075-89d5-4940-90ac-9b35a397894b","ids:operator":{"@id":"https://w3id.org/idsa/code/SAME_AS"},"ids:leftOperand":{"@id":"https://w3id.org/idsa/code/SYSTEM"},"ids:rightOperand":{"@value":"https://connector_C","@type":"http://www.w3.org/2001/XMLSchema#anyURI"}}],"ids:action":[{"@id":"https://w3id.org/idsa/code/USE"}],"ids:title":[{"@value":"Restricted usage connector C","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:target":"https://connectora:8080/api/artifacts/bf435743-df13-42fc-bf92-f9fecf45d1a9"}
When I try to stablish the negotiation contract POST /api/ids/contract
curl -X 'POST' \
'https://localhost:8082/api/ids/contract?recipient=https%3A%2F%2Fconnectora%3A8080%2Fapi%2Fids%2Fdata&resourceIds=https%3A%2F%2Fconnectora%3A8080%2Fapi%2Foffers%2F61a33504-a4d0-4989-a767-01db66e374b6&artifactIds=https%3A%2F%2Fconnectora%3A8080%2Fapi%2Fartifacts%2Fbf435743-df13-42fc-bf92-f9fecf45d1a9&download=false' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '[
{"@type":"ids:Permission","@id":"https://connectora:8080/api/rules/492eb8bd-4a66-4be5-bf50-e54228dc347b","ids:description":[{"@value":"Restricted usage only for connector_b","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:constraint":[{"@type":"ids:Constraint","@id":"https://w3id.org/idsa/autogen/constraint/a5b50075-89d5-4940-90ac-9b35a397894b","ids:operator":{"@id":"https://w3id.org/idsa/code/SAME_AS"},"ids:leftOperand":{"@id":"https://w3id.org/idsa/code/SYSTEM"},"ids:rightOperand":{"@value":"https://connector_B","@type":"http://www.w3.org/2001/XMLSchema#anyURI"}}],"ids:action":[{"@id":"https://w3id.org/idsa/code/USE"}],"ids:title":[{"@value":"Restricted usage connector B","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:target":"https://connectora:8080/api/artifacts/bf435743-df13-42fc-bf92-f9fecf45d1a9"},{"@type":"ids:Permission","@id":"https://connectora:8080/api/rules/58579ab8-33ba-49dd-bf3c-13e2c0ca0b82","ids:description":[{"@value":"Restricted usage only for connector_c","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:constraint":[{"@type":"ids:Constraint","@id":"https://w3id.org/idsa/autogen/constraint/a5b50075-89d5-4940-90ac-9b35a397894b","ids:operator":{"@id":"https://w3id.org/idsa/code/SAME_AS"},"ids:leftOperand":{"@id":"https://w3id.org/idsa/code/SYSTEM"},"ids:rightOperand":{"@value":"https://connector_C","@type":"http://www.w3.org/2001/XMLSchema#anyURI"}}],"ids:action":[{"@id":"https://w3id.org/idsa/code/USE"}],"ids:title":[{"@value":"Restricted usage connector C","@type":"http://www.w3.org/2001/XMLSchema#string"}],"ids:target":"https://connectora:8080/api/artifacts/bf435743-df13-42fc-bf92-f9fecf45d1a9"}
]'
Is it possible to stablish a contract agreement with an offer that has a contract containing multiple Connector Restricted Usage rules? This is allowing data access to more than one specific consumer connector using the Resticted Connector Usage policy.
The text was updated successfully, but these errors were encountered:
I have deployed three DSC connectors (one acting as provider with a catalog, offer, representation, artifact, contract and two usage policies rules of Connector Restricted Usage) and the other connectors acting as consumers (connector_B and connector_C).
The rules applied are the Connector Restricted Usage ones (URL https://connector_B and URL https://connector_C):
When I try to stablish the negotiation contract
POST /api/ids/contract
It is obtained the following error:
Is it possible to stablish a contract agreement with an offer that has a contract containing multiple Connector Restricted Usage rules? This is allowing data access to more than one specific consumer connector using the Resticted Connector Usage policy.
The text was updated successfully, but these errors were encountered: