Events
17 Mar, 21 - 21 Mar, 10
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You can authenticate MQTT clients with Microsoft Entra JWT to connect to Event Grid namespace. You can use Azure role-based access control (Azure RBAC) to enable MQTT clients, with Microsoft Entra identity, to publish or subscribe access to specific topic spaces.
Important
You can use the MQTT v5 CONNECT packet to provide the Microsoft Entra JWT token to authenticate your client, and you can use the MQTT v5 AUTH packet to refresh the token.
In CONNECT packet, you can provide required values in the following fields:
Field | Value |
---|---|
Authentication Method | OAUTH2-JWT |
Authentication Data | JWT token |
In AUTH packet, you can provide required values in the following fields:
Field | Value |
---|---|
Authentication Method | OAUTH2-JWT |
Authentication Data | JWT token |
Authentication Reason Code | 25 |
Authenticate Reason Code with value 25 signifies reauthentication.
Note
aud
claim must be set to https://eventgrid.azure.net/
.A client using Microsoft Entra ID based JWT authentication needs to be authorized to communicate with the Event Grid namespace. You can assign the following two built-in roles to provide either publish or subscribe permissions, to clients with Microsoft Entra identities.
You can use these roles to provide permissions at subscription, resource group, Event Grid namespace, or Event Grid topic space scope.
Note
You can follow similar steps to assign the built-in Event Grid TopicSpaces Subscriber role at topic space scope.
Events
17 Mar, 21 - 21 Mar, 10
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Manage authorization by using Microsoft Entra ID - Training
Administer authorization in Microsoft Entra ID.
Certification
Microsoft Certified: Identity and Access Administrator Associate - Certifications
Demonstrate the features of Microsoft Entra ID to modernize identity solutions, implement hybrid solutions, and implement identity governance.