Skip to content

Commit

Permalink
Blob: Create InteractiveAuthTokenDirectory if needed (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfederm authored Oct 14, 2024
1 parent b3d05dc commit fafd36e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fafd36e

Please sign in to comment.