Generate a SAS token for Azure Service Bus using environment variables.
npm install insomnia-plugin-service-bus-sas-token-generatorAuthorization header with a SAS token based on your environment variables, allowing you to send messages directly to Azure Service Bus without manually crafting the token.
json
{
"serviceBusNamespace": "spsbusns1128",
"serviceBusKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"serviceBusPolicyName": "SendPolicy",
"topicName": "test", // or use "queueName",
"ExpireTimeInSeconds": 3600 // optional
}
`
Note: The ExpireTimeInSeconds environment variable is optional. If not provided, it defaults to 3600 seconds, which represents 1 hour.
How to Use
Install the plugin from the Insomnia Plugin Hub.
In your POST request to the topic or queue endpoint, use the tag Generate SAS Token in the Authorization` header.