Using the built in Webhook feature of generating an Azure SAS token on-the-fly (https://docs.particle.io/guide/tools-and-features/webhooks/#azure_sas_token) work fine in combination with Azure Event Hub.
Used with an Azure IoT Hub it responds with error “IOT hub does not correspond to host name”
The endpoint url structure and hostname differs between the two types:
IoT Hub : https://xxxxxx.azure-devices.net/devices/mydevice/messages/events
Event Hub: https://xxxxxx.servicebus.windows.net/myeventhub/messages
One idea is that the problem has something to do with how the webhook sas token function parses the URL getting the scope needed.
Or could there be any other issue causing the problem?
Also, it would much appreciated if anybody from particle could describe how the Azure SAS token function works, especially related to extracting the scope from the URL.