Local authentication #2227
tschbc
started this conversation in
New Feature Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose to add local authentication mechanisms to the toolkit.
Purpose
A form of "protection" by asking a user for confirmation by requiring them to enter the correct credentials for their current login.
Expectations
New APIs
As a start, here's what I think we need (subject to change per discussion):
PromptAuthentication
method: the main driver of the functionality. By default, shows an OS built-in prompt to the user to authenticate. Can be configured to prefer a type of authentication (password, PIN, touch, face, etc.).AuthenticationOptions
class: an object containing configurable settings that can be passed toPromptAuthentication
.Type
:Default
AppDefault
Account
Fingerprint
Face
PIN
Pattern
Passkey
I have absolutely missed instances of each type per platform, so this table is not exhaustive, but would ideally include as much as possible/feasible.
Justification
: astring
explaining why the user needs to authenticateany other settings that are valuable or make sense
AuthenticationResult
enum: describes what happened with the authentication attemptExisting implementations
Why bother implementing in the community toolkit?
Beta Was this translation helpful? Give feedback.
All reactions