Using built-in Password manager's engine

Is it possible to use the built-in Password Manager’s engine (login interception and filling), but save(receive) all the data in(from) my addon. So i just want to change place where credentials are saved(cloud, server, token etc.), but use all other functionality.

Something like this:

  1. PM intercept login credentials as usual.
  2. PM send intercepted data to my addon.
  3. My addon save data

And backward:

  1. PM intercept login form as usual.
  2. PM receive data for this form from my addon
  3. PM fill and submit login form

That might be forbidden. Why do you need to do so? If the user configured encryption for the password manager, you’re breaking the user’s assumption about security. Not sure where credentials are saved, however.

Built-in Passowrd Manager works fine.

  1. I do not need to know what data is stored.
  2. I do not want to write another “cool” password manager.
  3. I just want to change the location where the database is stored (key.db, key3.db, signons.sqlite and logins.json). And not through symlinks on mapped network(webdav …) drive, but by my addon where i can choose location.

So addon will be just transport layer between PM and database.

Is it possible?

Here are two addons that do something similar. They move the storage of passwords into the KDE Wallet -

https://addons.mozilla.org/en-US/firefox/addon/masterpassword-firefox/

https://addons.mozilla.org/en-US/firefox/addon/kde5-wallet-password-integrati/

So yes it’s possible :slightly_smiling:

Try implementing nsILoginManagerStorage then :grin:

Thank you, that’s what I need.

Here’s another addon that integrates the password manager with the operating systems -

https://addons.mozilla.org/en-US/firefox/addon/mozilla-gnome-keyring/