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
Weird error on login - 'dict' object cannot be interpreted as an integer #2800
Comments
Updated the post, when I set |
Related to #2760 (comment). |
Hi, I could reproduce this... A last note: the file .azure/accessTokens.json holds the credentials in clear, that is how it is supposed to be? I mean, it has just read permissions for my user, but seems to be a security risk. The Azure CLI uses this to re-validate the session or something? Thank you! |
@msleal, @colemickens, I am fixing this bug. Do apologize for the inconvenience.
We cache the SP secret, because the token issued for SP carries no refresh token. It is not reasonable for CLI to prompt you for creds every one hour, and actually it is not even possible as the token can expire in the middle of the command session. |
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
CLI Version: What version of the CLI and modules are installed? (Use
az --version
)OS Version: What OS and version are you using?
Arch Linux, up to date
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
zsh
Description
If I
rm -rf ~/.azure
first, it goes away. Maybe a bug in merging stuff together?Also, weird though, since my script setsI wasn't properly exporting it, when I do, I avoid this issue since each script run gets its own config directory.AZURE_CONFIG_DIR
to a temp dir, so it should be like new every time...The text was updated successfully, but these errors were encountered: