From fafd36edd948251e34dd1715a50443f2e0ce6f56 Mon Sep 17 00:00:00 2001 From: David Federman Date: Mon, 14 Oct 2024 10:47:37 -0700 Subject: [PATCH] Blob: Create InteractiveAuthTokenDirectory if needed (#91) --- src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs b/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs index e8f59cc..e801107 100644 --- a/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs +++ b/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs @@ -112,6 +112,10 @@ private static IAzureStorageCredentials CreateAzureStorageCredentials(AzureBlobS throw new InvalidOperationException($"{nameof(AzureBlobStoragePluginSettings.BlobUri)} is required when using {nameof(AzureBlobStoragePluginSettings.CredentialsType)}={settings.CredentialsType}"); } + // InteractiveClientStorageCredentials expects the directory to exist. + // TODO: Remove after the bug fix makes it into BXL. + Directory.CreateDirectory(settings.InteractiveAuthTokenDirectory); + return new InteractiveClientStorageCredentials(settings.InteractiveAuthTokenDirectory, settings.BlobUri, cancellationToken); } case AzureStorageCredentialsType.ConnectionString: