Updated on 2024-11-06 GMT+08:00

Overview

Introduction

In addition to the default authentication mode, you can also use the internal functions provided by the platform to flexibly orchestrate authentication modes for devices connecting to the platform.

Application Scenarios

  • Device migration from third-party IoT platforms to IoTDA: You can configure a custom template to be compatible with the original authentication mode. No modification is required on the device side.
  • Native access: Custom templates can support more devices.

Constraints

  1. The device must use TLS and support SNI (Server Name Indication). The SNI must carry the domain name allocated by the platform.
  2. Max. templates: five for a user. Only one template can be enabled at a time.
  3. Max. functions nested: five layers.
  4. Max. content length: 4,000 characters. Chinese character not allowed.
  5. When the device uses secret authentication, the template password function must contain the original secret parameter (iotda::device:secret).
  6. The format of the template authentication parameter username cannot be the same as that of the custom function authentication parameter username. Otherwise, the custom function authentication is used. For example:
    {deviceId}|authorizer-name={authorizer-name}|xxx
  7. As custom authentication templates have higher priority, once you activate a custom authentication template, the platform uses the template instead of the default mode.