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

Tool fails on Ubuntu with org.freedesktop.secrets was not provided by any .service files #398

Open
surajssd opened this issue Aug 13, 2024 · 0 comments

Comments

@surajssd
Copy link

I installed azureauth using the deb package that is part of the releases:

$ azureauth --version
0.8.6.0

But it fails with the following error:

$ azureauth ado pat --organization msazure --display-name "NPM Packages" --scope vso.packaging --prompt-hint npm-packages --mode devicecode --output base64
MSAL token cache verification failed.
Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.

MSAL token cache verification failed.
Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.

Device Code Authentication for: AzureAuth: npm-packages
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code AAAAAAAAA to authenticate.
Waiting for DeviceCode authentication. Look for an auth prompt.
Timeout in 14m 39s!
One or more errors occurred. (An exception was encountered while processing libsecret error information during reading in the Storage ex:'Microsoft.Identity.Extensions.InteropException: An error was encountered while reading secret from keyring in the Storage domain:'95' code:'2'
message:'The name org.freedesktop.secrets was not provided by any .service files' .Error code: 2
   at Microsoft.Identity.Client.Extensions.Msal.LinuxKeyringAccessor.Read()'. Error code: 0)
An unexpected error ocurred. Re-run with --verbosity=debug for more info.

I am running this on a VM which does not have any desktop. Can I get a token displayed without having to deal with the keyring?

@surajssd surajssd changed the title Tool fails on Ubuntu Tool fails on Ubuntu with org.freedesktop.secrets was not provided by any .service files Aug 13, 2024
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

1 participant