[Pub] Token exchange session request

Create a new token exchange session in things5. A message will be sent via mqtt using the resource token exchange session response

Request Topic and Payload

Topic

things5-production/v1/devices/<device-id>/req/token_exchange_session_req

Payload Representation

{
  "request_id": "87049f68-696f-4be8-a6cc-bf827c04ed0e",
  "type": "qr"
}

The request_id will be returned in the response. It can be used to match the request with the response. Should be random generated.

Payload Parameters

namedescriptionexample
request_idthe request id to be sent back by the device when sending the response
typehow the token exchange session data should be returned. qr returns qr code data and it's the only supported type so far.
things5_hostoptional. If provided the qr code response will contain a url build using things5_host instead of text data. Not supported for now