Skip to main content
Version: ⭐ 26.10

Authentication tokens

There are several types of authentication tokens:

  • API tokens: used to authenticate requests made to the Centreon API, allowing external tools or scripts to interact with the platform programmatically.
  • CMA tokens: used to secure communication between the CMA agent and the poller β€” the agent includes it in its requests, and the monitoring engine checks that it's present and valid before accepting the connection.
  • Poller tokens: used to authenticate a poller when registering it to a central server, in PullWSS mode. It ensures that only authorized pollers can connect and send data to the central server.

On the Administration > Authentication tokens page, you can filter the list of tokens by various criteria, including by type.

Who can create authentication tokens?​

Users who can access the Administration > Authentication tokens page can create tokens for themselves.

Administrators, as well as users with the Manage API tokens permission in action ACLs, can also:

  • see the list of tokens created by other users.
  • create tokens for other users, and disable or delete them.

Creating an authentication token​

  1. Go to Administration > Authentication Tokens.
  2. Click Add. A pop-up window appears.
  3. Fill in the required fields, select the type of token you want, then click Generate new token. A Token field appears in the window. You can click the eye icon to display the token if you want.
  4. Copy the token using the Copy button to the right of the field.
    • API tokens: Store the token carefully, as you will not be able to display it a second time.
    • CMA tokens can be displayed again at any time.
  5. Click Close.

Managing authentication tokens​

The list of tokens shows the status of each token in the far left column (enabled, valid but disabled, expired).

Administrators and users with the Manage API tokens permission can:

  • Disable a valid authentication token using the Enabled/Disabled switch to the right of the line. The token can still be reenabled later.
  • Delete a token using the Delete button.