Skip to main content
Version: Mosquitto 2.8

Tokens

2.5
Premium


Application tokens enable accessing Management Center features through the Rest APIs. To get a deeper understanding of Application Topics have a look at our Application Tokens Guide

Application Tokens Overview

The Tokens Overview lists all existing valid tokens. Following a table with a set of tokens:

The fields (columns) of this table represent all the information that Management Center stores about an application token, namely:

  • Name - The name of the token. Must be unique. Used for a human-readable identifier to a token (max 30 characters)
  • Role - Role provided by the token (a role that the one using the token gets)
  • Requested by - Name of the person who created this token
  • Issue Date - Date and time when the token was created
  • Valid Until - Date and time when token will expire
  • Last Used - Date and time when the token was last used
  • Hash - Hash of the token. Used to identify the token when issuing requests to Application Tokens REST API
  • Status - Status of the token, e. i. "Valid" or "Invalid"

Create Application Token

To create a new application token, "New Token" Button in the top left to open the following dialog:

There you can specify the parameters required for the token generation, namely,

  • Token Name (30 characters long at max)
  • Role used for the access to the APIs
  • Valid Until defining the expiry date

After filling in the form and clicking "Create", the token will be generated and shown:

At this stage, please copy the token using the copy button and keep it in a safe place as it will not be stored in the Management Center. You can close the dialog afterward by clicking anywhere outside of it.

info

Don't forget to copy the token after creating it, as you will never see it again.

If everything worked correctly, the new connection should appear on the overview page.

Revoke an Application Token

To remove an application token, navigate to the Application Tokens view using the right menu bar. Find the entry with the token that you want to remove inside the presented table and click on the trash bin icon on the right.