cablelabs / lpwanserver

LPWAN Provisioning & Management Server
https://lpwanserver.com
Apache License 2.0
37 stars 11 forks source link

TTN Integration Requirements #288

Closed rhythnic closed 5 years ago

rhythnic commented 5 years ago

I can't find any TTN API documentation for managing integrations. It can be done through the console, and I can look at the network tab to see the console.thethingsnetwork API calls being made, but I don't know if I'll be able to hit that API. I'm using it for now, but I won't know if it works until testing.

Adding an integration requires specifying the application's accessKey as well as an authorization header value. LPWAN Server doesn't allow configuration at the App-Network level, so far as I know. There is only Network configuration and App-NetworkType configuration. We could use a standard Authrorization value header, but we'd need to get the accessKey from the user. I'm not sure the best way to do that, without first changing the models and the UI to allow for App-Network configuration.

The accessKey is actually used to authenticate downlink messages for HTTP integrations, but it's required when creating an HTTP integration through the console. There's a chance that when I get into testing, using the token will work as well.

rhythnic commented 5 years ago

Access key is available in the app payload, but I wasn't able to manage integrations. I can't use the console API, and there is nothing in the account or handler APIs for managing integrations.

rhythnic commented 5 years ago

I think instead of using an HTTP integration with TTN, LPWAN Server could use the MQTT server to send an receive messages.