in src/AzureCacheForRedis.cs [32:51]
public static async Task<ConfigurationOptions> ConfigureForAzureWithSystemAssignedManagedIdentityAsync(this ConfigurationOptions configurationOptions)
=> await ConfigureForAzureAsync(
configurationOptions,
new AzureCacheOptions()).ConfigureAwait(false);
/// <summary>
/// Configures a Redis connection authenticated using a user-assigned managed identity.
/// Throws on failure by default (configurable in the <see cref="ConfigureForAzureAsync"/> method).
/// </summary>
/// <param name="configurationOptions">The configuration to update.</param>
/// <param name="clientId">Client ID or resource ID of the user-assigned managed identity.</param>
/// <exception cref="MsalServiceException">When the token source is not supported or identified incorrectly.</exception>
/// <exception cref="HttpRequestException">Unable to contact the identity service to acquire a token.</exception>
public static async Task<ConfigurationOptions> ConfigureForAzureWithUserAssignedManagedIdentityAsync(this ConfigurationOptions configurationOptions, string clientId)
=> await ConfigureForAzureAsync(
configurationOptions,
new AzureCacheOptions()
{
ClientId = clientId,
}).ConfigureAwait(false);