Reputation: 1178
I have a very basic question on generating SAS Token. As per Azure SDK, http://azure.github.io/azure-storage-android/, we can use generateSharedAccessSignature to generate SAS Token. So, why do we need to use code shown in following pages -- https://learn.microsoft.com/en-us/rest/api/eventhub/generate-sas-token.
Upvotes: 0
Views: 287
Reputation: 730
It's because Microsoft offers their own libraries and SDKs to help you with the integration. That's what the first link is about. Second link shows how you do it yourself with the language of your choice without any specific Azure library dependencies.
You don't need the second link if your language of choice has Azure library that does it for you. E.g. I just implemented the same task with node.js npm module that also contains method generateSharedAccessSignature
and didn't need the second link.
Upvotes: 1
Reputation: 304
Microsoft attempts to provide detailed tutorials and examples for the different integration options. The first link you provided (http://azure.github.io/azure-storage-android/) is specific to android development. If that is what you are doing, then that is a great example.
The examples shown on https://learn.microsoft.com/en-us/rest/api/eventhub/generate-sas-token are focused on the specific tasks. Within there, they include the common languages; 6 implementation languages in the referenced article.
Upvotes: 0