Skip to content

Added getSasToken method in `BlobStore.java`

Aalekh Jain requested to merge getSasToken into master

All Submissions:


  • [YES] I have added an explanation of what changes in this merge do and why we should include it?
  • [NO] I have updated the documentation accordingly.
  • [NO] I have added tests to cover my changes. (will be added)
  • [YES] All new and existing tests passed.
  • [YES] My code follows the code style of this project.
  • [NO] I ran lint checks locally prior to submission.

What is the issue or story related to the change?

Please refer to the linked issue: #2 (closed)

Test coverage:

Tests to be added

Does this introduce a breaking change?

  • [NO]

Pending items

  • Adding UTs for getSasToken method.

Reviewer request

Other information

This method can be used across various services wherever there is a need to interact with the blobs (creating/modifying/reading the blobs) present in the storage container for either

In order to generate sas tokens, we need to provide StorageSharedKeyCredential. This must be done by obtaining the BlobServiceClient by using credentials storageSharedKeyCredential. Refer to this for a sample implementation (done for ingestion service).

Edited by Aalekh Jain

Merge request reports