event grid autentication problem

Giampiero Venturini 0 Reputation points
2024-08-06T10:45:47.3033333+00:00

We have the event grid id3MqttEventGrid

We have the business application MQTTINGESTION

The business application MQTTIGESTION has a client secret

The .NET server calls the HTTP API https://login.microsoftonline.com/{azureTenantId}/oauth2/v2.0/token passing the parameters azureClientId and azureClientSecret

Azure correctly responds to the call returning a JWT token

The problem is that using this JWT token the web application running in the browser cannot connect to the MQTT websocket server. The application connects to wss://xxxeventgridxxxx.westeurope-1.ts.eventgrid.azure.net/mqtt, port 443.

It passes the OAUTH2-JWT packet and as a value uses the JWT returned by the call made by the .NET server

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
390 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.