Is there a way to transfer M2X-KEY in the body? 03.23.2016 01:18 PM
I am using a cellular modem AT interface that does not allow me to customize the HTTP header. As a result I am unable to add the M2X-KEY. Therefore I am wondering if there exists an alternative way to set the M2X-KEY or even to disable it.
Re: Is there a way to transfer M2X-KEY in the body? 03.23.2016 01:59 PM
Unfortunately, the only way to authenticate with the HTTP API is by passing the API Key on the request headers. Authentication cannot be disabled because it would imply that any user out there has access to your devices.
Can you share more data about the platform you are using? Perhaps one of our client libraries can help you?
We also have an MQTT gateway that uses another kind of authentication.
Re: Is there a way to transfer M2X-KEY in the body? 03.23.2016 02:17 PM
I am using the SARA cellular modem from u-blox. Since I am using a small but low power MCU and only need to transfer a couple of bytes of data I intend to use the integrated TCP/IP stack of the cellular modem. On the manual p. 537 you can see the options I have to send a HTTP request. My understanding is that there is no way to modify the header:
Re: Is there a way to transfer M2X-KEY in the body? 04.08.2016 06:53 AM
Judging from the board's manual, it seems indeed that there is no way of modifying/adding headers. The board supports only basic authentication (which in fact is a header) but no way of customizing anything else.
Unfortunately, we don't currently support oher authentication mechanisms than the `X-M2X-KEY` or `Authorization: Bearer` so I'm afraid there is no workaround for your board as of right now.
Please confirm that you want to flag this content as inappropriate.
Please confirm that you want to delete this content.