Skip to content

Commit b56710b

Browse files
authored
Fixed User Delegation SAS string to sign for STG 98 (Azure#49509)
1 parent b537ee4 commit b56710b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

sdk/storage/Azure.Storage.Blobs/src/Sas/BlobSasBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ private string ToStringToSign(UserDelegationKey userDelegationKey, string accoun
509509
PreauthorizedAgentObjectId,
510510
null, // AgentObjectId - enabled only in HNS accounts
511511
CorrelationId,
512+
null, // SignedKeyDelegatedUserTenantId, will be added in a future release.
513+
null, // SignedDelegatedUserObjectId, will be added in future release.
512514
IPRange.ToString(),
513515
SasExtensions.ToProtocolString(Protocol),
514516
Version,

sdk/storage/Azure.Storage.Blobs/tests/BlobSasBuilderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ private string BuildIdentitySignature(bool includeBlob, bool includeSnapshot, st
663663
null,
664664
null,
665665
null,
666+
null, // SignedKeyDelegatedUserTenantId, will be added in a future release.
667+
null, // SignedDelegatedUserObjectId, will be added in future release.
666668
constants.Sas.IPRange.ToString(),
667669
SasExtensions.ToProtocolString(constants.Sas.Protocol),
668670
SasQueryParametersInternals.DefaultSasVersionInternal,

sdk/storage/Azure.Storage.Files.DataLake/src/Sas/DataLakeSasBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ private string ToStringToSign(UserDelegationKey userDelegationKey, string accoun
529529
PreauthorizedAgentObjectId,
530530
AgentObjectId,
531531
CorrelationId,
532+
null, // SignedKeyDelegatedUserTenantId, will be added in a future release.
533+
null, // SignedDelegatedUserObjectId, will be added in future release.
532534
IPRange.ToString(),
533535
SasExtensions.ToProtocolString(Protocol),
534536
Version,

0 commit comments

Comments
 (0)