I am trying to generate access Azure Service Bus Resftul APIs using SAS. My understanding is I need to generate an authorization
header with something like the following:-
SharedAccessSignature sig=<sig>&
se=<epochexpirydate>&skn=RootManageSharedAccessKey&
sr=<urlToQueue>
Using postman I try to launch a request to https://service-bus-namespace.servicebus.windows.net/queuename
I generate the signature of my SAS using the url from sr
& \n
& epoch-time
encrypted to SHA256 using an online sha256 generator.
However I am always getting 401 SubCode:40103 Invalid authorization token signature. Hoping someone could give me assistance so I can get messages from the queue.
example:
SharedAccessSignature sig=ab5c0a1b42b96af5ef9cbc85c7088651e9ebf8785d1eeffe6c4955be2c70ca2b&se=7270650090&skn=MyAccessKey&sr=https%3A%2F%2Fnamespace.servicebus.windows.net%2Fqueuename
/n
insr & /n & epoch-time
to\n
? – Gaurav Mantrisr
? – Gaurav Mantri