azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

Failed to store PAT using keyring, az devops cli

Open hima-gadupudi opened this issue 2 years ago • 8 comments

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

hima-gadupudi avatar Mar 30 '23 18:03 hima-gadupudi

Any update on this?

OisinFoley avatar Apr 10 '23 18:04 OisinFoley

I´m facing the same problem, any update?

antonio-rostaing-ntt avatar Jun 07 '23 08:06 antonio-rostaing-ntt

We also face the same, any workarounds?

jedi0606 avatar Jun 15 '23 10:06 jedi0606

Us too, is there a workaround or update?

FabioKaelin avatar Jun 20 '23 06:06 FabioKaelin

same issue here.

DFW1N avatar Jun 21 '23 07:06 DFW1N

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

NiklasReisser avatar Jun 27 '23 16:06 NiklasReisser

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.

thapa808 avatar Mar 10 '24 14:03 thapa808

work around az login --allow-no-subscriptions

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

rohitnaikn avatar May 13 '24 12:05 rohitnaikn