Skip to content

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

@surajssd

Description

@surajssd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions