Open jfernandezsqs opened 1 year ago
Hi @jfernandezsqs Unfortunately the DSC does not support multiple connectors to be whitelisted. See implementation here: https://github.com/International-Data-Spaces-Association/DataspaceConnector/blob/main/src/main/java/io/dataspaceconnector/service/usagecontrol/RuleValidator.java which assumes that each policy must be valid. Thus, for the moment no OR condition is applicable.
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.