You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/mqtt-client-custom-jwt.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.subservice: mqtt
11
11
12
12
# Custom JWT authentication and authorization to publish or subscribe to MQTT messages
13
13
14
-
You can authenticate MQTT clients with Custom JWT to connect to the Event Grid namespace. You can embed and validate custom claims in the JWT token to authorize publish or subscribe permissions to your Event Grid topic spaces.
14
+
You can authenticate MQTT clients with Custom JWT to connect to the Event Grid namespace. You can embed and validate custom claims in the JWT to authorize publish or subscribe permissions to your Event Grid topic spaces.
15
15
16
16
> [!IMPORTANT]
17
17
> - This feature is supported only when using the MQTT v5 protocol version.
@@ -22,7 +22,7 @@ You can authenticate MQTT clients with Custom JWT to connect to the Event Grid n
22
22
<aname='authentication-using-azure-ad-jwt'></a>
23
23
24
24
## Authentication using Custom JWT
25
-
You can use the MQTT v5 CONNECT packet to provide the Custom JWT token to authenticate your client and the MQTT v5 AUTH packet to refresh the token.
25
+
You can use the MQTT v5 CONNECT packet to provide the Custom JWT to authenticate your client and the MQTT v5 AUTH packet to refresh the token.
26
26
27
27
> [!IMPORTANT]
28
28
> - If you don't set the CONNECT packet's authentication method to CUSTOM-JWT, you receive an 'invalid issuer' error—even if all other configurations are correct.
@@ -32,14 +32,14 @@ In the CONNECT packet, you can provide the required values in the following fiel
32
32
|Field | Value |
33
33
|---------|---------|
34
34
|Authentication Method | CUSTOM-JWT |
35
-
|Authentication Data | JWT token |
35
+
|Authentication Data | JWT |
36
36
37
37
In the AUTH packet, you can provide the required values in the following fields:
38
38
39
39
|Field | Value |
40
40
|---------|---------|
41
41
| Authentication Method | CUSTOM-JWT |
42
-
| Authentication Data | JWT token |
42
+
| Authentication Data | JWT |
43
43
| Authentication Reason Code | 25 |
44
44
45
45
Authenticate Reason Code with value 25 signifies reauthentication.
0 commit comments