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

Failed to store PAT using keyring, az devops cli #1349

Open
hima-gadupudi opened this issue Mar 30, 2023 · 8 comments
Open

Failed to store PAT using keyring, az devops cli #1349

hima-gadupudi opened this issue Mar 30, 2023 · 8 comments

Comments

@hima-gadupudi
Copy link

I’m trying to authenticate toward my Azure DevOps organisation using a personal access token, but keep getting met with the “Failed to store PAT using keyring, falling back to file storage”.

Cli version
azure-cli 2.46.0

Steps performed to login to https://dev.azure.com/{orgName}

cat pattoken.txt | az devops login --organization https://dev.azure.com/msazure
image

export azure_devops=$(cat pattoken.txt)
echo $azure_devops | az devops login --organization https://dev.azure.com/msazure

to store PAT using keyring; falling back to file storage.
You can clear the stored credential by running az devops logout.
Refer https://aka.ms/azure-devops-cli-auth to know more on sign in with PAT.

image

@OisinFoley
Copy link

Any update on this?

@antonio-rostaing-ntt
Copy link

I´m facing the same problem, any update?

@jedi0606
Copy link

We also face the same, any workarounds?

@FabioKaelin
Copy link

Us too, is there a workaround or update?

@DFW1N
Copy link

DFW1N commented Jun 21, 2023

same issue here.

@NiklasReisser
Copy link

A workaround is mentioned in #1272

slightly adjusted, this still seems to work, at least on my desk...

Obviously this is not a real fix...

sudo apt-get install --yes python3-pip
sudo pip3 install --target /opt/az/lib/python3.10/site-packages/ --upgrade pip
sudo pip3 install --target /opt/az/lib/python3.10/site-packages/ --upgrade keyring

@thapa808
Copy link

It is a warning only...under the hood it has authenticated via PAT.
After "az devops configure" if you run "az repos list" it will work.

@rohitnaikn
Copy link

work around
az login --allow-no-subscriptions

login using the GUI
then you must be logged in the console

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

9 participants