-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Auth-Token not forwarded? #553
Comments
The forwarding in Orion-LD is independent of the forwarding mechanism used by Orion. And yes, the HTTP header you mention should of course be included in the forwarded request (that one and more headers). I will try to implement this specific header some time this week. |
github auto-closes issues ... Wait, you may need a docker image to test ... |
Thanks @kzangeli ! I tested the latest image and the scenario described above worked for me! I am impressed by the speed of fixing this issue :-) |
You're in luck! I implemented exactly what you need a few weeks a ago on request from another user. In short, when creating your subscription, you can ask the broker to use any number of extra HTTP headers for the notifications originating from the subscription. Just put the header name and its value in the array notification::receiverInfo (a key-value object) of the subscription. |
Thanks! That sounds exactly like something I need. Just checked it on latest container and looks good for me! |
I am trying to use the X-Auth-Token header with of Orion-LD. I executed the following steps:
POST
/ngsi-ld/v1/entities
endpointPOST
/ngsi-ld/v1/csourceRegistrations/
endpoint to myserverGET
/ngsi-ld/v1/entities/urn:ngsi-ld:object1
endpoint.What I see then is that orion-LD is requesting property1 from myserver, so the request is successfully forwarded. Howerver, when I add the
X-Auth-Token
header to step 3. it is not forwarded to myserver. I tried the same with the orion ngsi-v2 server and the forwarding of theX-Auth-Token
header worked.Can anyone tell me whether this is a known issue?
The text was updated successfully, but these errors were encountered: