Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A device must create a private/public key pair. The private key is only left local on the device, while the public key is uploaded to the ClearBlade IoT Enterprise system’s device record.

See Creating key pairs to create the key pair.

To authenticate, the device will construct a JSON Web Token (JWT) based on the private key and present that on the MQTT authentication or REST endpoint’s connect packet. The JWT is used in place of the standard ClearBlade auth token.

...

Client type

Client ID

Username field

Password field

New ClearBlade client via JWT

Anything

-unused-

JWT token with sk, uid, and ut claims

Each time the client sends an MQTT message (including PINGREQ), the ClearBlade MQTT Broker checks the exp. If the current time is later than exp + 10m then the client will disconnected. The 10 minutes is to allow for time skew between client and server.

The

View file
namegenerateJWT.py
Python file shows an example of generating a JWT for the MQTT client’s password.

...