Try the demo

Use cases

Connect an account you already have

A person signed in to a site links their approvals to the account they already have. Their agent then books in that account, and no one else's approvals reach it.

The person signs

Link your approvals to your account at fernway.example

Kind of approval
Sign up and sign in
Who decides
A traveller with a Fernway account
Service
Fernway, a train booking site
Level
L1
Capability
aby:link
State
Implemented and tested, not shown on the demo

A traveller has had a Fernway account for years, with a rail card and saved journeys. They want their agent to book trains in that account, not in a new, empty one. Fernway must be sure that the person approving is the account holder.

What happens

  1. Signed in on Fernway as usual, the traveller opens the account page and chooses to connect an agent. Fernway shows a short code.
  2. The traveller gives the code to their agent, which sends it to Fernway's link route. Fernway creates the approval and the traveller signs "Link your approvals to your account at fernway.example" with a passkey.
  3. Fernway verifies the grant and stores the pair it carries, the home node and the traveller's id for Fernway, against the signed-in account.
  4. From then on, Fernway names the traveller in each approval it creates. A booking from the agent passes only if the person who signed is the linked one.

What cannot happen

  • Someone else's approval opens the account. A grant matches a linked account only when the home node and the id both match. Any other is refused as human_not_linked.
  • The code is reused. The link approval is single use, and Fernway creates it only for the account that is signed in.
  • A serious action skips the link. A service must link before it accepts actions that are hard to undo or that spend money, and for anything several users share.

Undoing it

The link is Fernway's own record of whose approvals belong to the account, so Fernway removes it, for example from the account page. The link never approves anything by itself: every booking still needs its own approval, which the traveller can refuse, or revoke in their wallet.

Next caseRead and write, ask before deleting