Skip to content

Commit

Permalink
Addressed an issue with token duration usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelsellers committed Oct 30, 2024
1 parent 51452d8 commit 8ea5344
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public string CreateSASUrl(string container, string objectName, int tokenDuratio
BlobContainerName = container,
BlobName = objectName,
Resource = "b",
ExpiresOn = DateTimeOffset.UtcNow.AddHours(1)
ExpiresOn = DateTimeOffset.UtcNow.AddMinutes(tokenDuration)
};
tokenBuilder.SetPermissions(BlobSasPermissions.Read);
return blobClient.GenerateSasUri(tokenBuilder).ToString();
Expand Down

0 comments on commit 8ea5344

Please sign in to comment.