sirAndros / KeePassWinHello

Quick unlock KeePass 2 database using biometrics with Windows Hello
MIT License
302 stars 21 forks source link

fix: don't try to unlock with WinHello when prompted on remote session #75

Closed sirAndros closed 2 years ago

sirAndros commented 2 years ago

don't try to unlock with WinHello when prompted on remote session (fix for #51)

shuffle-c commented 2 years ago

Вот еще кейс - переключение галки персистентного ключа:

Error code: 80090010
   at KeePassWinHello.WinHelloProvider.SECURITY_STATUS.CheckStatus(String name, Int32 ignoreStatus)
   at KeePassWinHello.WinHelloProvider.TryOpenPersistentKey(SafeNCryptKeyHandle& ngcKeyHandle)
   at KeePassWinHello.WinHelloProvider.DeletePersistentKey()
   at KeePassWinHello.WinHelloProvider.ClaimCurrentCacheType(AuthCacheType authCacheType)
   at KeePassWinHello.KeyManager.ClaimCurrentCacheType(AuthCacheType authCacheType)
   at KeePassWinHello.OptionsPanel.SaveSettings(Settings settings)
   at KeePassWinHello.OptionsPanel.OnClosing(Object sender, FormClosingEventArgs e)
   at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
   at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)

А при закрытии еще словил:

KeePassWinHello
---------------------------
Something went wrong. Please report the issue in our Github repository with the following technical info.

KeePassWinHello.EnviromentErrorException: CredDelete
Error code: 490

   at KeePassWinHello.BOOL.ThrowOnError(String debugInfo, Int32[] ignoredErrors)

   at KeePassWinHello.KeyWindowsStorage.Remove(String dbPath)

   at KeePassWinHello.KeyManager.OnDBClosing(Object sender, FileClosingEventArgs e)
---------------------------
OK   
---------------------------