Duke-GCB / DukeDSClient

Command line program to allow uploading, downloading, and managing projects in the duke-data-service.
MIT License
5 stars 6 forks source link

Determine best method for Azure authentication #344

Open johnbradley opened 2 years ago

johnbradley commented 2 years ago

For Azure backend support we will need to authenticate with various Azure API endpoints via the Azure python SDK. We also want to have support for using the azcopy command line tool to upload and download efficiently.

Azure python SDK

For authenticating with Azure python SDK there is a DefaultAzureCredential. This provides many options to authenticate but many are focused on running with a VM on Azure. Options that work in a non-Azure VM context:

azcopy

Users can authenticate via two high level options:

There is a azcopy login command that allows a user to login via a web browser. There are also environment variables that can be set to authenticate with azcopy.