NanoMQ auth_req — validate MQTT CONNECT credentials
POST/v1/sdk/mqtt/auth/connect
NanoMQ HTTP auth callback for the CONNECT phase. Three user types:
- SDK client:
username = "sdk:<app_id>:<user_id>",password = "<HMAC user hash>". Validates viaValidateExistingIdentityand caches session in Redis. - Edge gateway:
username = "eixam-edge-<node>",password = "<per-node secret>". Validated against bcrypt hash in DB. - Internal bridge:
username = "eixam-api-sos-internal",passwordfromMQTT_INTERNAL_PASSWORDenv var. Returns HTTP 200 on success, HTTP 401 on deny.
Request
Responses
- 200
- 401
Allow connection
Deny connection