diff --git a/azureDatabaseUtils/src/main/java/bio/terra/workspace/azureDatabaseUtils/storage/AzureBlobStorage.java b/azureDatabaseUtils/src/main/java/bio/terra/workspace/azureDatabaseUtils/storage/AzureBlobStorage.java index 2f5d62b7e3..5e6028d268 100644 --- a/azureDatabaseUtils/src/main/java/bio/terra/workspace/azureDatabaseUtils/storage/AzureBlobStorage.java +++ b/azureDatabaseUtils/src/main/java/bio/terra/workspace/azureDatabaseUtils/storage/AzureBlobStorage.java @@ -71,12 +71,11 @@ public void streamInputFromBlobStorage( private BlobContainerClient constructBlockBlobClient( String workspaceId, String blobstorageDetails) { - // get workspace blob storage endpoint and token - // (the line below was copied directly from WDS) - // var blobstorageDetails = workspaceManagerDao.getBlobStorageUrl(workspaceId, authToken); - - // the url we get from WSM already contains the token in it, so no need to specify sasToken - // separately + // TODO: determine where blobstorageDetails should come from. + // This implementation is 95% copied from WDS's, in which they call WSM's APIs to retrieve a url + // with an included SAS token. + // The implementation here assumes that this url+token will be passed in by WSM itself when it + // ultimately calls the pgDump function. BlobServiceClient blobServiceClient = new BlobServiceClientBuilder().endpoint(blobstorageDetails).buildClient();