k4cg / matomat-service

Matomat as a Service (MaaS)
MIT License
5 stars 2 forks source link

Add support for simple authenticated MQTT brokers #20

Closed winterMate closed 5 years ago

winterMate commented 5 years ago

Add support for simple authenticated MQTT brokers using username and password

winterMate commented 5 years ago

First draft of implementation now in feature/issue-20 branch

noqqe commented 5 years ago

Hi,

2019/01/10 07:46:45 MaaS server started at 0.0.0.0:8443
2019/01/10 07:47:08 POST /v0/auth/login AuthLoginPost 226.305007ms
2019/01/10 07:47:15 POST /v0/auth/login AuthLoginPost 142.920275ms
2019/01/10 07:47:16 PUT /v0/items/1/consume ItemsItemidConsumePut 231.801726ms
2019/01/10 07:47:16 GET /v0/items/1 ItemsItemidGet 904.339µs
panic: close of closed channel
maas.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

the server crashes when im getting an Item

winterMate commented 5 years ago

Fixed with PR23