Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine best method for Azure authentication #344

Open
johnbradley opened this issue Feb 17, 2022 · 0 comments
Open

Determine best method for Azure authentication #344

johnbradley opened this issue Feb 17, 2022 · 0 comments

Comments

@johnbradley
Copy link
Collaborator

johnbradley commented Feb 17, 2022

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:

  • Environment variables - Allows a user to authenticate as a service principle or via username/password. Not sure if username/password would work with Duke Auth.
  • Azure CLI - Uses authentication setup by the az login command.
  • InteractiveBrowserCredential - Opens a browser where user logs in via Azure website.
  • DeviceCodeCredential - Prints a URL and a token that the user opens/pastes into a browser.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant