noodlefrenzy / node-amqp10

amqp10 is a promise-based, AMQP 1.0 compliant node.js client
MIT License
134 stars 56 forks source link

Allow for pass through of DescribedType body in service bus policy, for SAS token sending as AMQPval #356

Open tony-gutierrez opened 6 years ago

tony-gutierrez commented 6 years ago

When using SAS tokens with an Azure Service Bus, it is necessary to send the token to $cbs as an AQMPval type body. The current policy encoder prevents this.

Add example for sas token sending to service bus.


This change is Reviewable

tony-gutierrez commented 6 years ago

Just realized the pass through may not be needed as you could just do: client.createSender('$cbs', {'encoder':null})

Let me know if the pass through of DescribedType in the policy is not desired and ill remove that change and just update the example.