microsoft / backfill

A JavaScript caching library for reducing build time
MIT License
157 stars 31 forks source link

Add `credential` support to AzureBlobCacheStorage #510

Closed altinokdarici closed 12 months ago

altinokdarici commented 12 months ago

Issue: Currently, passing connection string with a SAS token is the only way to configure 'Azure Blob'. However, I need to support interactive login in cloudpack.

The workaround is to use InteractiveBrowserClient and generate a SAS token out of it. Although this method works fine, there are lots of limitations such as there is no way use refresh token or persistence option.

Fix: Adding ability to pass Credential object. This way, I can set up InteractiveBrowserClient and take full advantage of azure/identity