Skip to main content

Module signins

Module signins 

Source
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§

ProfileOwner
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
fill for the sign-in find_shared finds: the use is the agent’s, logged under actor.
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 owner that answers s, 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.profile of 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 id types: (origin, user name, password, label), if it is a sign-in profile holds 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 v names 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 profile holds 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 Vaults agent may use: what an agent’s own Browser signin chooses from. A sign-in in a Vault it may not use is one that is not there. own_uid is 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 (named name) 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. owner is 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 (its browser:identity) keeps sign-ins under; None for 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
refused for the sign-in owner was 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 site names the page origin origin: 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 s already holds a sign-in for username: Some(true) with this very password, Some(false) with another, None for none.
unshared_for
Whether the entry id is a login agent may use, saved for one of origins and not shared with the agent whose uid is uid: what the agent is told to ask for with Vault share (A8).
vault_for
The Vault profile (personal or profile:<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).