Open gobaldia opened 7 years ago
In that case apikey is prevaling over the header fiware-service. In some cases apikey unique by a mongo index.
Anyway, in order to check that service and subservice matches with the configuration provided for apikey you should enable Single Configuration Mode. https://github.com/telefonicaid/iotagent-node-lib#configurations-and-subservices
I have the following important issue. I have two Services created as follows:
and
Then I have two devices:
deviceA
(in the service A, with Fiware-Service A) anddeviceB
(in the service B, with Fiware-Service B).Then, if I try to send a measure to
deviceA
with APIKEY=apikeyA and Fiware-Service=B the measure is accepted and processed normally, and viceversa. It seems to header Fiware-Service is ignored. That's a big issue. It caused us a lot of inconveniences.