Expand description
Sign-ins a browser profile keeps (spec SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md
§9): login entries whose profile field names the profile whose tabs may
use them, personal or profile:<id>. A login without a site belongs to no
profile. HTTP Basic/Digest sign-ins are such entries with a realm (and
proxy for a proxy’s), moved here from the keychain once (§5.4, §9.3).
Structs§
- Profile
Owner - The agent whose own browser profile a tab is in, as the Vault knows it: the name its Vaults list it by (
names: its slug and its id) and its permanent uid. - Space
- Where an HTTP sign-in is used: the profile, the origin (a proxy’s, for a proxy), and the realm the site names.
Constants§
- FROM_
KEYCHAIN - On a sign-in moved from the keychain: no record says which profile used it.
- PERSONAL
- PROFILE
- PROXY
- REALM
- REFUSED
- On a sign-in the site turned down right after it was filled: not offered again until a new password is saved for it.
- SIGNED_
IN - The action an HTTP sign-in’s use is logged as.
Functions§
- counts
- How many sign-ins each named profile holds, by profile id.
- fields_
of - fill
- The user name and password for
s, once the person approved their use: logged as a sign-in, the password never. - fill_
shared fillfor the sign-infind_sharedfinds: the use is the agent’s, logged underactor.- find
- The sign-in a tab is offered for
s: the newest that may be ([offered]). Returns it and its user name. - find_
shared - The HTTP-prompt sign-in the person shared with
ownerthat answerss, and its user name: the newest that may be offered ([offered]), in a Vault the agent may use, whatever profile it is saved for (spec A4, A5, A11). Only in the agent’s own profile:s.profileof any other profile finds none. Only a login that answers a prompt (super::shares::answers_prompt): a form login shared with the agent is never given to a prompt. - for_
fill - What a fill of entry
idtypes:(origin, user name, password, label), if it is a sign-inprofileholds for one of the frame origins the page shows a form for. Anything else is refused: a sign-in never goes to another site or another profile’s tab. - is_
profile - Whether
vnames a profile a sign-in can belong to. - mask
us***@example.com/ab***: enough for a person to know which saved sign-in is meant, not enough to be useful if it is shown or logged wrong. Keeps at most the first 2 characters.- move_
from_ keychain - Moves the HTTP sign-ins the keychain holds into the Vault, once: each goes to Personal, tagged for the person to check, and its keychain copy is then deleted. Only the ones the old store noted can be found (the keychain can’t be listed). One the keychain can’t read now stays for the next start. Returns how many moved.
- offered_
for - The sign-ins
profileholds for exactly these frame origins that may be offered ([offered]), newest first:(entry id, origin, user name). HTTP sign-ins (with a realm or for a proxy) go through the browser’s own prompt, not a form. - offered_
for_ agent offered_for, limited to the sign-ins in Vaultsagentmay use: what an agent’s ownBrowsersigninchooses from. A sign-in in a Vault it may not use is one that is not there.own_uidis the agent’s permanent uid when the tab is in the agent’s own browser profile: the logins shared with it are offered there too, and in no other tab (A4, A5). (The key button the person presses lists every sign-in.)- profile_
deleted - Profile
id(namedname) is being deleted: its sign-ins move to Personal, tagged with where they came from, or are deleted with it (§9.4). Returns how many there were.owneris the agent (by permanent uid) whose own profile it is: the logins shared with that agent, and the “Always” it holds, end with the profile, so the profile made for it next starts with none (A9). - profile_
for_ tab - The profile a tab browsing as
identity(itsbrowser:identity) keeps sign-ins under;Nonefor Incognito, which never saves one (§9.1). - refused
- The site turned down the sign-in filled for
s: it is kept, since it may be the person’s only copy, but not offered again until a new password is saved. - refused_
shared refusedfor the sign-inownerwas given through a share (find_shared): the same password is out of date in every profile that uses it.- same_
site - Whether a login’s saved
sitenames the page originorigin: the one comparison every matcher of a login to a page uses (a form fill, an HTTP prompt, a share, a sign-up), so they cannot disagree. It compares origins, not strings: scheme, host in any case and port (the scheme’s default when absent) must be the same; a trailing slash, a path, a query or user information in either is ignored, and none of them widens a match to another host, port or scheme. - save
- Keeps the user name and password the person typed for
s. The same user’s entry gets the new password (the old one kept as a version); another user gets an entry of its own. Returns the entry’s id. - saved_
as - Whether
salready holds a sign-in forusername:Some(true)with this very password,Some(false)with another,Nonefor none. - unshared_
for - Whether the entry
idis a loginagentmay use, saved for one oforiginsand not shared with the agent whose uid isuid: what the agent is told to ask for withVaultshare(A8). - vault_
for - The Vault
profile(personalorprofile:<id>) keeps its sign-ins in and offers them from: the person’s choice in the Vault pane, or Personal, also when the chosen Vault is gone (§5.3).