r-lib / keyring

:closed_lock_with_key: Access the system credential store from R
https://keyring.r-lib.org/
Other
196 stars 28 forks source link

keyring error (macOS Keychain) #133

Open 13479776 opened 1 year ago

13479776 commented 1 year ago

Hi guys,

I used the keyring in mac OS, but when i restart the R, the error was happened, i don't know what happened?

Best, hees

key_set_with_value("R-test-service", "donaldduck", password = "secret") Error in b_macos_set_with_value(self, private, service, username, password, : keyring error (macOS Keychain), cannot set password: The user name or passphrase you entered is not correct.

gaborcsardi commented 1 year ago

Can you give more details? macOS version? keyring version? What does keyring::keyring_is_locked() say?

13479776 commented 1 year ago

Hi gaborcsardi,

I use the MacOS high sierra and keyring version 1.3.1, the error was produced, when my R was restarted. Best, hees

key_set_with_value("R-test-service", "donaldduck", password = "secret") Error in b_macos_set_with_value(self, private, service, username, password, : keyring error (macOS Keychain), cannot set password: The user name or passphrase you entered is not correct. keyring_is_locked(keyring = NULL) [1] FALSE

keyring_is_locked() [1] FALSE

13479776 commented 1 year ago

Hi, gaborcsardi,

I found the keyring request the login password of my Mac PC. When i input the login password of my Mac PC, the error was missing. Is that normal? did Keyring need the login password of my Mac PC?

Best wishes, hees

Error: key_set_with_value("R-test-service", "donaldduck", password = "secret") Error in b_macos_set_with_value(self, private, service, username, password, : keyring error (macOS Keychain), cannot set password: The user name or passphrase you entered is not correct.