Aller au contenu principal
Version: Next

NanoMQ auth_req — validate MQTT CONNECT credentials

POST 

/v1/sdk/mqtt/auth/connect

NanoMQ HTTP auth callback for the CONNECT phase. Three user types:

  1. SDK client: username = "sdk:<app_id>:<user_id>", password = "<HMAC user hash>". Validates via ValidateExistingIdentity and caches session in Redis.
  2. Edge gateway: username = "eixam-edge-<node>", password = "<per-node secret>". Validated against bcrypt hash in DB.
  3. Internal bridge: username = "eixam-api-sos-internal", password from MQTT_INTERNAL_PASSWORD env var. Returns HTTP 200 on success, HTTP 401 on deny.

Request

Responses

Allow connection