IoT Hub
IoT Hub Documentation
Documentation > Security > Basic MQTT Credentials
Getting Started
Guides API FAQ

Basic MQTT authentication

MQTT Based Authentication is available for devices that connect using MQTT. Once the device is created in IoT Hub, the default access token is generated. You may change the credential type if your device profile is configured to use mqtt transport type. In order to connect the device to a server using Basic MQTT credentials, the client must specify the client id and/or username and password.

There are three options available:

  • Authentication based on Client ID only. For this purpose, you should populate only Client ID in the credentials form below. MQTT Clients will be able to connect with any username or password if they specify correct Client ID;

  • Authentication based on Username and Password. For this purpose, you should populate only Username and Password in the credentials form below. MQTT Clients will be able to connect with any client ID if they specify correct Username and Password. Password is optional;

  • Authentication based on Client ID, Username and Password. For this option, you should populate Client ID, Username and Password. MQTT Clients will be able to connect if they specify correct combination of Client ID, Username and Password;

  • MQTT Clients will be able to connect with any username or password if they specify correct Client ID.
  • MQTT Clients will be able to connect with any client ID if they specify correct Username and Password.
  • Password is optional
  • MQTT Clients will be able to connect if they specify correct combination of Client ID, Username and Password