Elffuss BraidHub

kikocis/EDC public

main · 1.6 KiBRenderedRawPermalink
1# Http Dynamic EDR receiver
2
3This extension is similar to the [HTTP EDR receiver](../transfer-pull-http-receiver). The difference is that the URL is not configured
4at startup time, but instead the callback url is provided to the consumer connector when initiating a transfer request
5by passing a custom property in the transfer request payload e.g. The URL will be stored in the transfer process
6and will be used by the consumer connector to dispatch the EDR
7
8```json
9{
10 "@context": {
11 "@vocab": "https://w3id.org/edc/v0.0.1/ns/"
12 },
13 "@type": "TransferRequest",
14 "protocol": "dataspace-protocol-http",
15 "assetId": "test-document",
16 "contractId": "1:8147d6d6-9734-4821-b93d-2832ea7892e4",
17 "dataDestination": {
18 "@type": "DataAddress",
19 "type": "HttpProxy"
20 },
21 "counterPartyAddress": "http://localhost:8282/api/v1/ids/data",
22 "connectorId": "consumer",
23 "privateProperties": {
24 "receiverHttpEndpoint" : "http://localhost:9999"
25 }
26}
27```
28
29## Configuration
30
31| Parameter name | Description | Mandatory | Default value |
32|---------------------------------------|-------------------------------------------------------------|-----------|---------------|
33| `edc.receiver.http.dynamic.endpoint` | The fallbacke endpoint when the URL is missing from the TP. | false | null |
34| `edc.receiver.http.dynamic.auth-key` | The header name that will be sent with the EDR request. | false | null |
35| `edc.receiver.http.dynamic.auth-code` | The header value that will be sent with the EDR request. | false | null |