Skip to content

Default keyring not working on Windows #121

@msberends

Description

@msberends

Many thanks for this package!

On Windows, I can't seem to retrieve existing keys, although the keyring package does seem to find the Windows Credential Manager. The default keyring is not set and the only keyring available has no name:

library(keyring)
default_backend()$keyring_list()
#>   keyring num_secrets locked
#> 1                  14  FALSE
default_backend()$keyring_default()
#> NULL

The number of 14 is indeed the number of secrets I have under Generic Credentials in the Windows Credential Manager. But list() cannot find any keys:

default_backend()$list()
#> [1] service  username
#> <0 rows> (or 0-length row.names)

Setting keys via the package does work, and then these are also the only elements found with list():

default_backend()$set_with_value("testservice", "user123", "pw123")
default_backend()$list()
#>       service username
#> 1 testservice  user123
default_backend()$keyring_list()
#>   keyring num_secrets locked
#> 1                  15  FALSE

The number of secrets went from 14 to 15. In other words, my existing secrets are not retrievable.

On StackOverflow, somebody had the exact same problem: https://stackoverflow.com/questions/66959772/r-keyring-package-my-keyring-has-disappeared-maybe-what-happened-to-it-and

I'm on keyring 1.3.0 (no code changes have been made since 1.3.0 aside from the pkgdown website) and Windows 10 behind a corporate proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions