azure-sdk-for-go icon indicating copy to clipboard operation
azure-sdk-for-go copied to clipboard

[az(eventhubs|servicebus)] Create New*ClientWithSASKey constructor functions

Open richardpark-msft opened this issue 2 years ago • 1 comments

Both packages have similar requirements and similar authentication. We need to add an overload that allows you to directly pass a SAS key, and not just a connection string.

func New*ClientWithSASKey(fullyQualifiedNamespace string, (other parameters), sasKey string, options *Options)

richardpark-msft avatar Aug 12 '22 02:08 richardpark-msft

(as a note, I went through and did some exploring here. It shouldn't be difficult, but there's some debt as we tried to move away from the older azservicebus to the newer. Will need to be cleaned up in both packages).

richardpark-msft avatar Aug 15 '22 23:08 richardpark-msft