Azure / azure-storage-cpp

Microsoft Azure Storage Client Library for C++
http://azure.github.io/azure-storage-cpp
Apache License 2.0
131 stars 147 forks source link

accessing azure blob storage using managed identity #338

Open neelam256 opened 4 years ago

neelam256 commented 4 years ago

I want to access azure blob storage from container, and Container is running under managed identity. Can you please point out some cpp example to access blob storage.

katmsft commented 4 years ago

This SDK currently supports authorizing with OAuth Bearer token, however, there is currently no support on acquiring such token via the SDK. The token should be acquired with a designated Azure Identity library, which unfortunately lacks CPP implementation at the moment.

You can reference the below sample to see how to use the token: https://github.com/Azure/azure-storage-cpp/blob/master/Microsoft.WindowsAzure.Storage/samples/OAuthGettingStarted.cpp

neelam256 commented 4 years ago

@katmsft thanks for response, is it intended to support the acquisition of token via SDK in the future ?

katmsft commented 4 years ago

Yes, Identity SDK is on our Roadmap but unfortunately, that would come with a newer version of the Storage SDK that does not have a similar API signature and dependency list comparing with this one. The new SDK is months away but should have a good shape by the end of the year.

neelam256 commented 4 years ago

@katmsft thank you update, Is there anyway i can track this ?

nilact commented 3 years ago

It is almost a year, any idea when this will be available with CPP Storage SDK?

Jinming-Hu commented 3 years ago

@nilact This sdk has been deprecated in favor of our next generation of storage SDK, which supports managed identity.