azure-service-bus-dotnet icon indicating copy to clipboard operation
azure-service-bus-dotnet copied to clipboard

Generating Temporal SAS Tokens

Open mikermesh opened this issue 7 years ago • 3 comments

With the 2.0 library, is it possible to pass in an existing KeyName and Key to generate temporal SAS tokens to be used for management operations. I've read through the issues related to SAS Tokens (#185, #332, #335, #358) but it is unclear whether this functionality has been added.

mikermesh avatar Oct 26 '17 13:10 mikermesh

@mikermesh The client currently only exposes how "to use SASToken". Generating SASToken is a pending work item that needs to be done. Almost entire code is already present and just needs some refactoring to expose it. When time permits, we would try to work on it. If you are blocked on it, you could raise a PR with the changes. I could help you with the changes if required. Most of the code required is present in SharedAccessSignatureTokenProvider class

nemakam avatar Oct 26 '17 18:10 nemakam

Should this enhancement be closed out? Temporal SAS tokens appears to be supported and functional now. Note there are bugs in the code, but I think that should be handled as bugs, not as notes on an enhancement request.

DavidBerg-MSFT avatar Jun 26 '18 18:06 DavidBerg-MSFT

@DavidBerg-MSFT If you already have a SAS token, we do accept it. But this library still doesn't expose generating a SASToken. That's why this is an enhancement issue which is still open.

nemakam avatar Jun 26 '18 21:06 nemakam