Skip to content

Commit 8ea5344

Browse files
Addressed an issue with token duration usage.
1 parent 51452d8 commit 8ea5344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNetCore.Utilities.CloudStorage/AzureCloudStorageProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public string CreateSASUrl(string container, string objectName, int tokenDuratio
372372
BlobContainerName = container,
373373
BlobName = objectName,
374374
Resource = "b",
375-
ExpiresOn = DateTimeOffset.UtcNow.AddHours(1)
375+
ExpiresOn = DateTimeOffset.UtcNow.AddMinutes(tokenDuration)
376376
};
377377
tokenBuilder.SetPermissions(BlobSasPermissions.Read);
378378
return blobClient.GenerateSasUri(tokenBuilder).ToString();

0 commit comments

Comments
 (0)