Azure / azure-storage-cpp

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

Authentication to access azure blob storage #345

Open charanverma opened 4 years ago

charanverma commented 4 years ago

hi, I have application in c++, to access azure blob storage, what is the best way to authenticate the request. Is it possible to use azure AD service and service principal for authentication, if yes, can you please provide documentation.

Jinming-Hu commented 4 years ago

We support SAS authentication, Account key and Azure AD. Check the example of Azure AD authentication here

charanverma commented 4 years ago

@JinmingHu-MSFT how do you generate access token?

Jinming-Hu commented 4 years ago

@charanverma Please see the similar issue https://github.com/Azure/azure-storage-cpp/issues/338