Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
628 stars 241 forks source link

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

Open hima-gadupudi opened 1 year ago

hima-gadupudi commented 1 year ago

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 commented 1 year ago

Any update on this?

antonio-rostaing-ntt commented 1 year ago

I´m facing the same problem, any update?

jedi0606 commented 1 year ago

We also face the same, any workarounds?

FabioKaelin commented 1 year ago

Us too, is there a workaround or update?

DFW1N commented 1 year ago

same issue here.

NiklasReisser commented 1 year ago

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 commented 6 months ago

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 commented 4 months ago

work around az login --allow-no-subscriptions

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