Is it possible to send customized body and auth headers on the proxy on transfer-06-consumer-pull-http sample? #112
-
Hi, I have a question in regards of the transfer-06-consumer-pull-http sample. After the recent update I see that you can specify on the HttpAddress object the proxyBody, proxyQuery etc elements which will further customize the query send to the original data provider. On the end of the README you note that it is possible to add a proxyPath without being specified on the HttpAddress, so it is customizable when the request is done. Is it possbile to do the same with the proxyBody, proxyMethod and proxyQuery? Additionally, in the case the basuUrl is protected by Basic Auth, is it possible to specify the Auth header that will be passed on the original server? There is already the Authorization header, but if I get it correctly, this is used by EDC internally and never passed to the remote data server. Thank you very much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Thanks for your contribution 🔥 We will take a look asap 🚀 |
Beta Was this translation helpful? Give feedback.
-
Same question here. |
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been open for 14 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
Hi, the For authentication, in the |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @ndr-brt, I ended up to this conclusion as well, but forgot to update the ticket. This is the request I used to create the asset:
I am not sure how I could use the vault. Is there any documentation you could point me to? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Hi, the
proxy
properties in theHttpData
DataAddress
are booleans that, when set totrue
will permit to have the body, method and query from the consumer request to be proxied to the provider data source.For authentication, in the
DataAddress
you can set theauthKey
(header name) and theauthCode
(the token value). You can have it stored in the vault, in that case you need to usesecretName
instead as the key with which the secret is stored in the vault.