keybase / go-keychain

Golang keychain package for iOS and macOS
MIT License
573 stars 120 forks source link

WIP: Added support for biometrics (Touch ID/Face ID) #107

Open alexw23 opened 6 months ago

alexw23 commented 6 months ago

First draft at tested and working TouchID support.

Still need to write unit tests and add some more config options for SetAccessControl (i.e kSecAttrAccessibleWhenUnlockedThisDeviceOnly) is currently hard coded. Ideally this should just reference the value from SetAccessible (if any).

Also getting the following error which is hard to fix right now. Any ideas would be great.

./keychain.go:28:69: note: passing argument to parameter 'context' here
cgo-gcc-prolog:53:41: warning: incompatible pointer types passing 'struct LAContext *' to parameter of type 'LAContext *' [-Wincompatible-pointer-types]

Currently the only way to use this is within a MacOS app (with developer ID, code sign etc). It's beyond the scope of this project as it would more so be the consumers of this project that would be using it. Once I add a PR for aws-vault I will come back and link to those instructions.

ihiteshgupta commented 2 months ago

Why this PR is not approved or reviewed?

LionelP7 commented 1 month ago

I think there still is big interest in this... Why is it stale? 😞