Skip to main content

Module signin_notice

Module signin_notice 

Source
Expand description

The sign-in link as a notice on the machine the person is using (spec SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md ยง4.4, D6). An agent that started a sign-in on another machine (identity.signin.start) asks its own srv to put the link in front of the person: here if a window of this AgentMux is focused, else on the LAN peer that reports one. The notice is a persistent toast with an Open action; the credentials stay on the machine that is signing in, and only the link travels.

Structsยง

SigninLinkEvent
The identity:signinlink event: show this link as a notice.
SigninNoticeRequest ๐Ÿ”’

Functionsยง

allowed_hosts ๐Ÿ”’
Where a providerโ€™s sign-in page may be: an Open action opens a link a remote machine named, so only the providerโ€™s own https pages (and their subdomains) are accepted.
clean_code ๐Ÿ”’
A one-time code fit for a toast: letters, digits and dashes, short.
clean_machine ๐Ÿ”’
A machine name fit for a toast: printable, short.
handle_agent_signin_notice ๐Ÿ”’
POST /api/v1/agent/identity/signin/notice: backs Identity signin with a host, once the other machine has returned the link.
link_allowed ๐Ÿ”’
route ๐Ÿ”’
Put the link in front of the person: on this machine when a window here is focused, else on the first LAN peer that has one focused and lets this agent ask (an approved install), else here. Returns the machine that got it.
show_local ๐Ÿ”’
Show the link as a notice on this machine.
window_focused ๐Ÿ”’
Whether a window of this AgentMux is focused now.