event grid autentication problem
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