Failed to store PAT using keyring, az devops cli #25138
Labels
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
CXP Attention
This issue is handled by CXP team.
DevOps
Installation
Milestone
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”.
I have tried the steps outlined below, based on suggestions here and here.
CLI version:
2.44.1
0.25.0
Order of steps (from a fresh install of both Ubuntu 18.04 and Ubuntu 20.04)
sudo apt install python3-pip
python3 -m pip install -U pip
# install latest version of pipls /opt/az
lists apython3.10
directory)sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ keyring~=17.1.1
# keyring package missing by default when booting VM for first timeaz extension add --name azure-devops
Failed to store PAT using keyring
error when trying to login to my org:az devops login --organization https://dev.azure.com/{orgName}
(then paste in PAT when prompted)export AZURE_DEVOPS_EXT_PAT
variable, then run sameaz devops login
commandecho $AZURE_DEVOPS_EXT_PAT | az devops login --organization https://dev.azure.com/{orgName}/
I am out of ideas and would appreciate any suggestions.
Running
python3 --version
in my terminal returnsPython 3.6.9
.For simplicity, I gave the PAT open permissions across the entire Azure DevOps org.
Is there a permission I need to add to the service principal representing Azure DevOps?
Not finding any documentation mentioning this but just an idea i'm investigating.
The text was updated successfully, but these errors were encountered: