-
Notifications
You must be signed in to change notification settings - Fork 20
Description
When operating in multi-tenant scenarios SAS Tokens for Blob Storage Containers might already exist and be used instead of full account access with storage keys. We have a scenario where we'd like to use this plugin, but we cannot provide storage credentials to blob storage, but we do have a SAS Token for a specific container where the plugin can storage the blob (such a token-to-container setup exists for each tenant).
Currently, when you pass StorageCredentials(TokenCredential) to AzureStorageAttachmentConfiguration it will just result in the following error
System.Exception: Invalid configuration: .WithBlobSasUri() requires account shared key and cannot be used with service/container Shared Access Signature.
at Microsoft.Azure.ServiceBus.AzureStorageAttachmentConfigurationExtensions.WithBlobSasUri(AzureStorageAttachmentConfiguration azureStorageAttachmentConfiguration, String messagePropertyToIdentifySasUri, Nullable`1 sasTokenValidationTime)
We'd be happy to submit a pull request for adding this capability if its something you think would be valuable to include in the library. So submitting this feature request to support existing SAS tokens end to end for this plugin to see if could be added.
I realize that the same type of SAS Uri cannot be generated when using a SAS Token, but think its an okay tradeoff in this type of scenario. But let me know what you think.
Thanks!