@@ -93,15 +93,11 @@ public class QueueSasBuilder
9393 public string QueueName { get ; set ; }
9494
9595 /// <summary>
96- /// Optional. Beginning in version 2020-02-10, this value will be used for
97- /// the AAD Object ID of a user authorized by the owner of the
98- /// User Delegation Key to perform the action granted by the SAS.
99- /// The Azure Storage service will ensure that the owner of the
100- /// user delegation key has the required permissions before granting access.
101- /// No additional permission check for the user specified in this value will be performed.
102- /// This is only used with generating User Delegation SAS.
96+ /// Optional. Beginning in version 2025-07-05, this value specifies the Entra ID of the user would is authorized to
97+ /// use the resulting SAS URL. The resulting SAS URL must be used in conjunction with an Entra ID token that has been
98+ /// issued to the user specified in this value.
10399 /// </summary>
104- public string PreauthorizedAgentObjectId { get ; set ; }
100+ public string DelegatedUserObjectId { get ; set ; }
105101
106102 /// <summary>
107103 /// Initializes a new instance of the <see cref="QueueSasBuilder"/>
@@ -348,15 +344,8 @@ public QueueSasQueryParameters ToSasQueryParameters(UserDelegationKey userDelega
348344 keyExpiry : userDelegationKey . SignedExpiresOn ,
349345 keyService : userDelegationKey . SignedService ,
350346 keyVersion : userDelegationKey . SignedVersion ,
351- signature : signature ,
352- cacheControl : null , // CacheControl,
353- contentDisposition : null , // ContentDisposition,
354- contentEncoding : null , // ContentEncoding,
355- contentLanguage : null , // ContentLanguage,
356- contentType : null , // ContentType,
357- authorizedAadObjectId : PreauthorizedAgentObjectId ,
358- correlationId : null , //CorrelationId,
359- encryptionScope : null /*EncryptionScope*/ ) ;
347+ delegatedUserObjectId : DelegatedUserObjectId ,
348+ signature : signature ) ;
360349 return p ;
361350 }
362351
@@ -379,16 +368,10 @@ private string ToStringToSign(UserDelegationKey userDelegationKey, string accoun
379368 signedExpiry ,
380369 userDelegationKey . SignedService ,
381370 userDelegationKey . SignedVersion ,
382- PreauthorizedAgentObjectId ,
383- null , // AgentObjectId - enabled only in HNS accounts
384- null , // CorrelationId
385371 null , // SignedKeyDelegatedUserTenantId, will be added in a future release.
386- //null, // SignedDelegatedUserObjectId, will be added in future release.
387- //IPRange.ToString(),
388- //SasExtensions.ToProtocolString(Protocol),
389- //null, // Unknown
390- //null, // Unknown
391- //null, // Unknown
372+ DelegatedUserObjectId ,
373+ IPRange . ToString ( ) ,
374+ SasExtensions . ToProtocolString ( Protocol ) ,
392375 Version ) ;
393376 }
394377
0 commit comments