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

Auto-login not persisting token when AZCOPY_AUTO_LOGIN_TYPE=DEVICE #2361

Open
sean-jost opened this issue Sep 2, 2023 · 3 comments
Open
Assignees
Labels
login Bugs related a login command

Comments

@sean-jost
Copy link

sean-jost commented Sep 2, 2023

Which version of the AzCopy was used?

10.20.1

Which platform are you using? (ex: Windows, Mac, Linux)

Linux

What command did you run?

export AZCOPY_AUTO_LOGIN_TYPE=DEVICE
export AZCOPY_TENANT_ID=tenant id
... multiple azcopy commands

What problem was encountered?

Have to enter code into web browser for every azcopy command encountered a script. Not a usable solution when there many commands.

How can we reproduce the problem in the simplest way?

Should be easy to reproduce. It appears from the code that auto-login disables token persistence altogether.

Have you found a mitigation/solution?

Don't use auto-login, use azcopy login instead, but it's getting removed in 10.22.

Azure CLI persists tokens in ~/.azure folder; could azcopy do the same?

@nakulkar-msft nakulkar-msft added the login Bugs related a login command label Sep 6, 2023
@htpawel
Copy link

htpawel commented Oct 11, 2023

+1337

@david-chaves
Copy link

This error it's algo present Using azcopy version 10.21.1 under windows 10 19044.3086

@gapra-msft
Copy link
Member

Related to this PR #2574

@gapra-msft gapra-msft linked a pull request Feb 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
login Bugs related a login command
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants