-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick unlock with apple watch not working #7695
Comments
Same on MacBook Pro 2019 16' Intel |
Need to test this one again |
Pretty sure we are missing kSecAccessControlOr Our access control settings should be:
I think in its current setup you need to present BOTH the watch and biometric |
I don't see this feature at all on my MacBook (Retina, 12-inch, 2017) macOS 12.4 (21F79) |
Just tested it, adding
|
Will be made for 2.7.2 release |
Wait a sec, I am confused, we already have kSecAccessControlOr in the code since the original commit: keepassxc/src/touchid/TouchID.mm Lines 102 to 105 in dab6d94
|
You are right. I think the real culprit is this line here: this feature requires macOS My initial test worked because I targeted my own OS version with The download page also states |
That makes perfect sense @phoerious see above |
Is there any way around this? People get angry every time we bump the release target, particularly within a patch release. |
I don't think there is in this case because the watch flag api is strongly guarded by a 10.15 minimum on apple's side. |
Just checked: removing the following compiler check allows targeting But I'm not that familiar with the macOS-specific build implications: I can only test it on a newer OS ( A cleaner solution would probably be to use something like |
That check was put in to appease the "build on every outdated macos possible" crowd. I'm all on favor of nuking it. |
Well, there is no need in nuking it right away :) It can be worked around with some CMake magic, which in turn can make the whole module a bit cleaner. |
Wouldn't mind a pr for that then |
I started working on the PR and found out that there is another problem with the current TouchID implementation. Even after changing the I could try to fix this issue by refactoring the whole TouchID implementation (adding some internal states, runtime checks and some other stuff), but this won't be a small PR we discussed earlier. I hope that's OK with you folks :) |
If you're going to refactor TouchID, keep in mind interface compatibility with the Windows Hello code. There were plans to abstract them to a common interface. (See #3337) |
Should fix keepassxreboot#7695: TouchID and Apple Watch support is now detected both at compile time and runtime
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
Fixes keepassxreboot#7695 - Properly set compile flags based on availability of watch unlock in the API.
Fixes keepassxreboot#7695 - Properly set compile flags based on availability of watch unlock in the API.
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
This works like charm in 2.7.3 but not in 2.7.4, same problem as in issue description. Downgrading to 2.7.3 fixed it again. Diffing 2.7.4 against 2.7.3, only a small change in TouchID.h but I am not an expert to judge. Appreciate some input! Thanks. |
There is no reason it wouldn't work in both |
I've seen the exact same behavior, described with the Apple Watch, on 2.7.6 with macOS 14.2.1. I've never unlocked the database using the watch before. Since 2 weeks I use external monitors only and the lid is closed. Therefore, I was suddenly prompted to unlock with the watch, but the watch doesn't show any prompt... Is this really already fixed? |
Did you setup your watch to act as an authenticator for you? |
@consvs since I updated, this works again with no issues. I am using 2.7.6 at the moment. On 2.7.3, and unlike @droidmonkey stated above, this unfortunately does not work. Not an issue anymore since this changed afterwards. |
@ifnotak Unfortunately I can't trigger unlocking with the watch anymore. Does this only trigger if the lid is closed or can I force to support TouchID and watch at the same time? (like when I have to unlock the security settings in macOS and I can use either TouchID or the watch) |
Yeah, I did that and using the watch since years for unlocking my mac. |
@consvs the watch is triggered with any kind of authentication that triggers TouchID even if the lid is open. Only when it's closed and TouchID is disconnected, the watch is the only option. Does it not work only for KeePassXC or for all authentications with a TouchID? |
This has never worked for me....the first time I discovered this functionality in KeepassXC was within the last two weeks, when I used the Macbook with the lid closed. I'm using the watch to unlock the OS and several functions since years, without problems. But KeePaasXC didn't trigger the watch to unlock ever before, with no version. |
Overview
I am not able to use the quick unlock feature with an apple watch (support introduced in KeepassXC 2.7.0)
I am using a MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports, Intel version) with OSX Monterey 12.3 and an Apple Watch Series 7 with watchOS 8.5, both with the same apple id.
Note that I am able to login into my mac with the apple watch and to unlock other applications (e.g., bitwarden).
Steps to Reproduce
Expected Behavior
After clicking "Unlock Database", I should receive a prompt/notification on the apple watch to unlock the database.
Actual Behavior
Context
KeePassXC - Version 2.7.0
Revision: d7a9ef4
Qt 5.15.2
Debugging mode is disabled.
Operating system: macOS 12.3
CPU architecture: x86_64
Kernel: darwin 21.4.0
Enabled extensions:
Cryptographic libraries:
Operating System: macOS
The text was updated successfully, but these errors were encountered: