Authenticate via fingerprint or PIN to autofill when the app is locked#413
Authenticate via fingerprint or PIN to autofill when the app is locked#413
Conversation
37f5eeb to
055fd3c
Compare
sashei
left a comment
There was a problem hiding this comment.
drive-by!
I gather you've found a way around the AutofillService requiring both the password list and the authentication callback in the same fill response, but I assume you're looking for feedback on the changes to how the AccountStore / AutolockStore interact with the DataStore -- I like this approach much better than what we had before, but would like to see it live in the DataStore rather than having the Account- and Autolock- stores dispatch their own actions. Happy to do some pairing / discussion on this if you're keen!
| } | ||
|
|
||
| override fun onConnected() { | ||
| // stupidly unlock every time :D |
ab516cc to
f3265da
Compare
…nd if the credentials exist.
This may be better done in the application.
a) making ParsedStructure contain definitive webDomain and packageName (defaulting to the calling activity) b) making PSL a singleton.
…dStructureBuilder tests.
f3265da to
72a58d8
Compare
linuxwolf
left a comment
There was a problem hiding this comment.
Engineering wise, this looks good to me.
- The PSL changes make sense
- Stores reading state from other stores is sensible
A nit on the localizable strings, to better align with designs.
| <!-- This is the error message when autofill is triggered but no domain is detected. This is unlikely. --> | ||
| <string name="autofill_error_no_hostname">Unexpected hostname format</string> | ||
| <!-- This is the prompt when autofill is triggered, Lockbox is unlocked, and no passwords are detected. --> | ||
| <string name="autofill_search_cta">Tap to search</string> |
There was a problem hiding this comment.
UX designs call for this to be "Search Lockbox"
| <string name="convenience_description">Unlock the app with ease using your fingerprint</string> | ||
|
|
||
| <!-- This is the prompt when autofill is triggered, and Lockbox is locked. --> | ||
| <string name="autofill_authenticate_cta">Tap to unlock</string> |
There was a problem hiding this comment.
I suspect @mozilla-lockbox/ux would prefer "Unlock Lockbox"
There was a problem hiding this comment.
UNLOCK YOUR FIRELOCK FOXBOX
Fixes #216
Testing and Review Notes
In the current state, this works for authenticating using PIN (when app does not enter in a weird state, when there are no entries in the list). For authentication using fingerprint, the only reason it is not working (as far as I can see), is the fact that DataStore.State == null. Don't know exactly why, I will try tomorrow to take a look at this.
@jhugman I think you will take over, the code needs a little refactoring..
Screenshots or Videos
(Optional: to clearly demonstrate the feature or fix to help with testing and reviews)
To Do