Local Authentication (Biometrics) Portal #1275
quexten
started this conversation in
New Portals
Replies: 2 comments 14 replies
-
It seems that on the ui-side, the Gnome team has a relevant mock-up: https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/232 . |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is this about unlocking an app so it can be used? What is expected? Does the application need to acquire the credentials or can we do without them (e.g. set a master password without the application acquiring it?)
What type of message are you thinking of? |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some applications - password managers (1Password, Bitwarden), crypto wallets, secure chat applications need to verify that the user present is actually the logged in user upon opening the app. On other operating systems, there are platform APIs for this that authenticate the user using biometrics or the system password, and provide some kind of secret that can be used for en-/de-cryption.
In un-sandboxed applications, the authentication part can somewhat be achieved by installing polkit policies for the application, or by using something like fprintd directly. For sandboxed applications this is not possible.
My specific use-case is implementing biometric auth in Bitwarden in a more sane way that also supports Flatpaks (and Snap), and especially makes it easier in immutable environments (Fedora Silverblue) (bitwarden/clients#4586, quexten/goldwarden#90), but at least 1Password would also benefit here.
Interactions
There are two basic interactions that are required. These could possibly be just one interface with different options, I'm open to discussion here.
Local Authentication
This would basically be the same as just calling polkit for authentication. In the implementing frontends, this should show the app (maybe with Icon from the .desktop file?) and a message passed by the caller.
Local Authentication with Credentials
This should provide a secret, much like the
org.freedesktop.portal.Secret
portal, but locked behind authentication. This would make it possible to have apps locked by biometrics/local authentication and decrypted only upon authentication.For both of these use-cases, I feel like configurable options for whether to allow password / biometrics makes sense.
Beta Was this translation helpful? Give feedback.
All reactions