swarm-ui: linking a matrix account starts on the password login and warns before a pasted token
The form's credential choice now starts on 'log in with a password', listed first, with a note that the swarm's own login gives the account a device of its own. Choosing 'paste a token' shows a warning: a token from Element or another client belongs to a device that is already logged in, so the agent cannot use its encryption keys and the account will not decrypt encrypted rooms.
This commit is contained in:
parent
ecea98c950
commit
f276ee342c
1 changed files with 21 additions and 4 deletions
|
|
@ -870,8 +870,13 @@ it carries an **own account** badge. The card requests the list again when
|
|||
a link dialog closes.
|
||||
|
||||
- **link a matrix account** — `PUT /api/hives/{hive}/agents/{agent}/matrix-accounts/{account}`,
|
||||
either a pasted bearer token or a user id + password that
|
||||
swarm-controller logs in with, storing the token it gets back.
|
||||
either a user id + password that swarm-controller logs in with, storing the
|
||||
token it gets back, or a pasted bearer token. The form starts on the password
|
||||
login: the account gets a device of its own, and the form notes that an
|
||||
operator who also logs in to it appears to the agent as a second device. Choosing
|
||||
**paste a token** shows a warning: a token from Element or another client
|
||||
belongs to a device that's already logged in, so the agent can't use that
|
||||
device's encryption keys and the account won't decrypt encrypted rooms.
|
||||
- **link a forge account** — `PUT /api/hives/{hive}/agents/{agent}/forge-accounts/{label}`
|
||||
with a forge URL and an access token, stored at
|
||||
`swarm/agents/<agent>/forge/<label>`. The agent's
|
||||
|
|
|
|||
Loading…
Reference in a new issue