Property DelegationTokenProvider
DelegationTokenProvider
Gets or sets the delegation token provider delegate.
Declaration
public Func<CancellationToken, Task<string>> DelegationTokenProvider { get; set; }
Property Value
Type | Description |
---|---|
Func<CancellationToken, Task<String>> | The delegation token file path (absolute or relative to current directory). This property is exclusive with both DelegationTokenFile property and providing delegation token directly via CreateWithInstancePrincipalForDelegation(String, String). |
Remarks
This property can only be used only with instance principal. The delegation token allows the instance to assume the privileges of the user for which the token was created and act on behalf of that user.
The delegation token provider delegate is called to obtain the delegation token each time the request signature is renewed.