Veriqa already provides the mechanisms this scenario needs; you implement the logic on top of them
on your side, in whatever way suits you — see What you build yourself.
We are working on making it simpler to implement in the product.
How it is designed
- A linked identity — several channel identities of one person are joined into one record, and its stable identifier serves as the user’s identifier for the application. The order of confirmations does not affect it, and adding or losing a channel later does not turn the user into someone else.
- The “K of N” policy — the application requires confirmation from K of the N linked channels. A chain of two is the special case where K and N are both two.
- Linking and recovery — how channels enter the set and what happens when one of them is lost.
- The application switches the chain on — for sensitive actions and step-up rather than for ordinary sign-in, because a chain adds friction by definition. Applications that do not use it see no change.
What you build yourself
Each link of the chain is an ordinary authorize request narrowed to one channel withacr_values, as in
Going stronger: two different channels.
Your application does the rest:
- Linking channels. One person has a separate
subin each channel, and Veriqa does not link them. Store thesubof every linked channel with the account: the account’s identifier becomes the stable identifier of the set. A new channel is linked by an authorize request from a user who is already signed in, or from your server without a sign-in — see Sign-in and channel linking in one action. - Links one after another. The first request carries
acr_values=channel:telegram, the secondacr_values=channel:email, each with its ownstate,nonceand PKCE. The issuer keeps no long-lived session, so every request asks for confirmation in the channel again. - Checking each link. In the link’s
id_token, check three things: thesubis linked to the same account;amrnames the channel you requested, and that channel has not yet confirmed the current chain;auth_timefalls within your freshness window. - No partial success. Keep the confirmed links on your server and open the session, or allow the action, only after the last one. If a chain is not completed in the allotted time, start it over.
- The “K of N” policy. In the
acr_valuesof the next link, list the linked channels that have not confirmed yet, separated by spaces, and the user picks one of them. The chain is complete once K different channels have confirmed the sign-in. - Recovery. What happens when a channel is lost is up to your application: for example, with N greater than K, the user completes the chain with the remaining channels and links a new channel in place of the lost one. The general flow is described on the Account recovery page.
- A chain for a specific action. When the person has to see what they are confirming, such as
the amount and payee of a payment, each link is a server-side
action confirmation transaction. In each one,
allowed_channel_typesnames a single channel andexpected_identitiesnames the account owner;matched_typein the result shows that the owner confirmed.