Open Bug 1611700 Opened 4 years ago Updated 3 months ago

[API Request] WebExtension API for password managers to provide credentials

Categories

(Thunderbird :: Add-Ons: Extensions API, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: webextension-api-request)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

There should be an API that allows password managers (like keepass(xc), lastpass, etc.) to provide credentials when they are needed.

Something similar to https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired could work but it has to fire for all kind of credential requests: imap, pop3, smtp, nntp, oauth, http(s), webdav, etc.
It should also be possible for other addons to leverage this API to retrieve credentials.

I created https://github.com/kkapsner/keepassxc-mail for keepassxc which uses an experiment. But I think it would be better if the API would integrate on a deeper level than the UI.

Blocks: webext-tb

With "other addons" I mean something like Provider for Google Calendar

Any decision on this feature?

BTW at the moment my experiment does not work any more since TB 73 as ExtensionSupport.registerWindowListener seems to do nothing now...

Who can decide on this feature?

PS: my experiment now works again in newer TB.

Summary: WebExtension API for password managers to provide credentials → [API Request] WebExtension API for password managers to provide credentials
Whiteboard: webextension-api-request

An update on this would be nice.

It's very helpful to be able to interface with a password manager without having to deal with the idiosyncrasies of "hacks".
See: https://github.com/kkapsner/keepassxc-mail/issues/68

Flags: needinfo?(john)

I am unaware of a Firefox API to interact with password prompts. Asked for more info in the linked issue.

Flags: needinfo?(john)
Severity: normal → S3

I've made a proposal issue for an extensions API for credential management to the web extensions GitHub repository https://github.com/w3c/webextensions/issues/361

For the full benefits Firefox would have to "finish" implementing the credential management API https://bugzilla.mozilla.org/show_bug.cgi?id=1156047 specifically the PasswordCredential type.

You need to log in before you can comment on or make changes to this bug.