keepassxc-browser icon indicating copy to clipboard operation
keepassxc-browser copied to clipboard

Default credentials for Autofill with multiple available credentials

Open ep0ns opened this issue 2 years ago • 8 comments

There is an autofill setting, when only one entry is available which should be improved to work when multiple logins available

Expected Behavior

Implement intelligent autofill working with multiple logins for the same page.

Current Behavior

Autofill is only working when the option "Autofill when one entry is available" is set and only one entry is available.

Possible Solution

Typically Keepass entries have a history to see when the entry has been used the last time. This information could be used to autofill the login even when multiple logins are available for the same site. In case the history is not available it should be done with A-Z sorting or optimally a "priority or preferred" flag which can be set for the entry which overwrites the history setting.

ep0ns avatar Mar 21 '22 07:03 ep0ns

This would need some custom data history feature to KeePassXC side, and I'm not quite sure how to do that. There should be a separate table for storing each entry with a flag that it has been previously selected. Even if this could be possible to do, entries with multiple URL's could flag more than one entry as "previously selected" when this feature wouldn't work at all, unless the data is stored with the entry and the URL it was being used.

Thinking the complexity of this, I highly doubt it will be implemented.

varjolintu avatar Mar 21 '22 07:03 varjolintu

Ye but it would make the autofill so much more convenient. A simple option would be to create another flag "Autofill with multiple entries (according to entry sort order)" in the settings. When it is set, then autofill uses the sort order of the entry name (not username).

Example: Entry 1) name "google.com - A", user "D" Entry 2) name "google.com - B" user "A"

In this user "D" would be autofilled.

ep0ns avatar Mar 21 '22 07:03 ep0ns

If Auto-Fill is always used with the same credentials for site with multiple credentials, doesn't that make the other credentials unneeded? In this case the most simplest solution would be just disable those other credentials which are no longer used anyway.

varjolintu avatar Mar 21 '22 07:03 varjolintu

In my case I'm working on a page where I need to login multiple times per day. In 90% I use login X but in the other 10% I use login Y or Z. So it would be nice to have autofill set to login X per default without manually choosing it.

ep0ns avatar Mar 21 '22 07:03 ep0ns

Then how would you select login Y or Z if Auto-Fill is always set to X? You would have to disable the Auto-Fill totally every tenth time?

EDIT: What I meant it could not work properly with Auto-Submit enabled.

varjolintu avatar Mar 21 '22 08:03 varjolintu

You can select other entries if you click into the user field or when you click the Keepass XC icon which is displayed next to the user field.

image

ep0ns avatar Mar 21 '22 08:03 ep0ns

The easiest solution for this would be that the extension remembers the entry UUID per site and keeps a list of it. Anything for KeePassXC side would be too much. Maybe an extra option to Site Preferences.

varjolintu avatar Mar 21 '22 09:03 varjolintu

Would love to see this feature! Perhaps a setting/option for "login frequency" that sorts the list based on most used?

I have many logins for indivdual sites, so a sorting feature like this would be greatly appreciated.

Deagan avatar Oct 18 '22 13:10 Deagan