Skip to main content
A sign-in that needs confirmation not in one trusted channel but in several: it is confirmed first in, say, Telegram and then over email, and there is no partial success.
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 with acr_values, as in Going stronger: two different channels. Your application does the rest:
  • Linking channels. One person has a separate sub in each channel, and Veriqa does not link them. Store the sub of 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 second acr_values=channel:email, each with its own state, nonce and 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: the sub is linked to the same account; amr names the channel you requested, and that channel has not yet confirmed the current chain; auth_time falls 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_values of 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_types names a single channel and expected_identities names the account owner; matched_type in the result shows that the owner confirmed.

What to keep in mind

An attacker needs control over two independent channels instead of one: a stolen session in a single messaging app is no longer enough. The most useful pair is a messaging app and email — the two channels least likely to fail together. This is a recommendation: which channels go into the chain is up to your application.
A chain is not strict multi-factor authentication. Both confirmations are of the same nature: possession of a channel plus trust in that channel’s platform. Two messaging apps on one phone are lost together with the phone; a SIM swap can affect several at once.
A chain also does not make sign-in phishing-resistant and adds no cryptographic barrier between the browser and the phone. It increases the number of independent confirmations, not the strength of the binding between them.

What not to confuse with a chain

An attribute obtained inside a channel is not another link. When a user shares their phone number with one tap in a messaging app and the platform itself confirms the number, the chain still has the same number of channels: this is enrichment of the identity, not an additional confirmation. Its value is that a verified number arrives without sending, paying for or waiting on an SMS code.