This page provides an overview of all MQTT topics that can be used to retrieve LocalApiToken information within DRIVR. These tokens are generally used for on-device API authentication and generated and downloaded from the cloud using the below topics. The JWKs information provided by DRIVR enables the device to verify token authenticity even if the connection to the cloud is limited or intermittent. For more information please refer to the following guide: Local Api Tokens. PLEASE NOTE: For comprehensive explanations of terms such as Domain
, System
, Component
, Event
, Service
, Characteristic
, and others used in this document, please refer to Terms.
DRIVR MQTT Broker
Returns the Json Web Keys for the domain.
Available only on servers:
Accepts the following message:
The JSON Web Key Set (JWKS) for the domain.
{
"keys": [
{
"e": "AQAB",
"kid": "1",
"kty": "RSA",
"n": "1"
}
]
}
Returns the local api tokens for the provided System
. These tokens can be used by systems which provide a local API to authenticate DRIVR users against the local API.
Available only on servers:
Accepts the following message:
The payload to be processed by DRIVR to authenticate a User
on the local API provided by a system.
[
{
"uuid": "9c4b33e9-f84c-4aaa-ad37-74f0078901a2",
"status": "ACTIVATED",
"createdAt": "2021-08-06T13:13:06.136333+00:00",
"expiresAt": "2021-08-06T13:13:06.136333+00:00",
"notBefore": "2021-08-06T13:13:06.136333+00:00",
"systemUuid": "9c4b33e9-f84c-4aaa-ad37-74f0078901a2",
"roles": [
{
"uuid": "2faa6870-91b0-4b3a-84e8-8bbbd8becbd0",
"name": "System Maintainer"
}
],
"token": "CLOUD-eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9",
"subject": {
"uuid": "60c5ba79-6d1a-4623-99df-3f423d7c7d0c",
"name": "Ada Lovelace",
"type": "USER"
}
}
]