question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az devops login fails to add PAT to Mac OS keychain

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az devops login Extension Name: azure-devops. Version: 0.13.0.

Errors:

Can't store password on keychain
Traceback (most recent call last):
azure-devops/keyring/backends/OS_X.py, ln 36, in set_password
    self.keychain, service, username, password)
azure-devops/keyring/backends/_OS_X_API.py, ln 247, in set_generic_password
    NotFound.raise_for_status(status, "Unable to set password")
azure-devops/keyring/backends/_OS_X_API.py, ln 50, in raise_for_status
    Error.raise_for_status(status, msg)
azure-devops/keyring/backends/_OS_X_API.py, ln 42, in raise_for_status
    raise cls(status, msg)
keyring.backends._OS_X_API.Error: (-25308, 'Unable to set password')

...

azure-devops/keyring/backends/OS_X.py, ln 38, in set_password
    raise PasswordSetError("Can't store password on keychain")
keyring.errors.PasswordSetError: Can't store password on keychain

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az devops login

Expected Behavior

Environment Summary

Darwin-19.2.0-x86_64-i386-64bit
Python 3.7.4
Shell: bash

azure-cli 2.0.74 *

Extensions:
azure-devops 0.13.0

Additional Context

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ishitam8commented, Jan 16, 2020

I am assuming you are unblocked now as you are able to run devops commands. [Since az devops project list worked for you, with fetching PAT from env variable]

We will look into the az devops login error for Mac OS. Hence, keeping this issue open.

1reaction
ishitam8commented, Jan 16, 2020

@OnnoH , If you are storing PAT in environment variables, you don’t need to run “az devops login” command, you can directly run other commands. Could you please verify if you are able to run any other commands?

Also, az cli doesn’t store credentials in keychain. Are you sure you ran “az login” only ? Or was it “az devops login” ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

az devops login errors when logging in using PAT token
Failed to store PAT using keyring; falling back to file storage. You can clear the stored credential by running az devops logout. Refer...
Read more >
az devops login Failed to store PAT using keyring; falling back ...
But when I insert my DEVOPS Personal Access Token, fail with the following error. Failed to store PAT using keyring; falling back to...
Read more >
Sign in with a Personal Access Token (PAT), Azure DevOps CLI
To use a PAT with the Azure DevOps CLI, use one of these options: Use az devops login and be prompted for the...
Read more >
Add certificates to a keychain using Keychain Access on Mac
In the Keychain Access app on your Mac, select either the login or System keychain. · Drag the certificate file onto the Keychain...
Read more >
Abuse and replay of Azure AD refresh token from Microsoft ...
Overview of the sign-in, token cache flow and potential replay attack paths on macOS devices. macOS Keychain items from Microsoft products ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found