Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Cancellation with libsecret #422

Open
charlag opened this issue Sep 28, 2021 · 0 comments
Open

Cancellation with libsecret #422

charlag opened this issue Sep 28, 2021 · 0 comments

Comments

@charlag
Copy link

charlag commented Sep 28, 2021

Hi! We are using keytar in Tutanota desktop app and we recently came across a use case on Linux with cancelling unlock prompt from GNOME Keyring daemon. When we cancel the prompt Keytar returns null for getPassword(). It does the same when we unlock the keychain but the key is not there. Because of that we can't distinguish whether we should generate a key or not.

We suspect that it does not handle cancellation from libsecret properly (there's a Cancellable argument to secret_password_lookup_sync which is not used).

Are we missing something or is it really not possible to distinguish these cases now? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant