Offline approvals
ReadyThe phone needs no network. A terminal of the relying party shows a QR code made for one phone and signed by the deployment. The phone checks it, shows the exact request, verifies the user with a face or fingerprint, and answers with an 8-digit code typed at the terminal or a QR code the terminal reads. Both are cryptographically bound to the exact request: an answer made for one request is refused for any other, even one that differs by a single character. The deployment checks the answer, and the relying party receives the result as it receives an online approval.
Who this is for: teams whose users approve at a terminal where phones may have no signal: a branch counter, a shop floor, a vault, a plant behind shielded walls, an aircraft. The online ceremony is described in The ceremony.
Where it is used#
Wherever a screen can show a QR code and a person stands in front of it. That screen is often not a computer.
Online banking
A payment, a new payee or a new limit approved on the bank’s web page: the page shows the QR code, the customer approves on the phone and holds the answer QR code up to the laptop camera. The answer is specific to the amount and the payee, and a change to either invalidates it.
Branch counters
A withdrawal or a change to an account, approved at the cashier’s screen on the customer’s own phone, which needs no signal inside the branch.
ATMs
Cash without a card: the ATM shows the QR code, the customer approves the amount on the phone and shows the answer QR code to the ATM’s reader. The phone needs no data plan, at home or abroad.
Payment terminals
A refund, a void or a till override approved on the terminal’s screen and PIN pad, in a basement shop or a store behind thick walls.
Vehicles and fleets
An engine start, a cargo-door release or a change of route, approved on the dashboard display. The vehicle reaches the fleet’s servers over its own link; the driver’s phone needs none.
Machines and control panels
A setpoint change, an interlock bypass or a software load, approved on the machine’s own panel in a hall where phones get no signal.
Vaults, safes and cabinets
A vault, an evidence locker or a medication cabinet opened by approving the request shown on its panel, underground or behind concrete.
Kiosks and lockers
A parcel collected, a check-in completed or equipment released at a kiosk. Its camera reads the phone’s QR answer, so nothing is typed.
Aircraft, ships and remote sites
A maintenance release in a hangar, a permit to work on an offshore platform, a change on a ship’s bridge, where the crew’s phones are out of coverage.
Sites with no internet at all
A plant, a mine or a vessel runs its own deployment on its own network. The server, the relying party and the terminals never touch the internet, and the phones need no signal once they have enrolled over the site’s own network.
A screen that shows one QR code; a keypad, a camera, or both; a link from the terminal to the relying party; and a person at the terminal, which is the setting offline approval is made for. On a public web page, the relay risk described under Where it fits applies.
How it works#
The relying party and the deployment stay online. Only the phone is cut off, so the request reaches it in one QR code, and the answer leaves it as a second QR code or a code the user types.
The relying party asks for an offline challenge
It calls IssueAuthChallenge in the offline answer mode, with the request text, as for an online approval, up to 160 bytes instead of 256. The deployment returns one QR code for each of the user’s phones that are set up for offline use, at most 3. With 2 or more, the terminal shows a picker by phone name and model.
The phone scans the terminal’s QR code
With the authenticator app’s own scanner. The phone checks the deployment’s signature before it shows anything. A code made for another phone, or altered in any way, is refused.
The phone shows the exact request
The relying party’s name and the whole request text, as the online approval screen shows them. The user approves or declines, and either choice is confirmed with a face or fingerprint.
The phone shows the answer
After an approval: an 8-digit code and a QR code, shown together, both bound to the request just approved. After a decline: the QR code only. Beside both, a notice says they are only for the terminal that showed the request.
The terminal takes the answer
The user types the code, or the terminal reads the QR code. The relying party submits it with SubmitOfflineAnswer; the deployment checks it and ends the challenge APPROVED, DENIED or REJECTED.
History catches up
When the phone is next online, the finished challenge appears in its history, and in the history of the user’s other phones, as online approvals do.
Two forms of answer#
After an approval the phone shows both, each computed from the exact request; after a decline, the QR code only. The relying party uses the form its terminal can take.
- The QR code is signed by the phone’s hardware key (ES256). The deployment verifies the signature, so the answer provably came from that phone and from no other. A decline travels only this way.
- The 8-digit code comes from a secret that the phone and the deployment share for that one challenge (HPKE, RFC 9180, with OCRA, RFC 6287). The deployment stores only a keyed digest of the code, and discards the secret before the challenge is returned. A guessed code succeeds about once in 100 million tries.
- One answer per challenge. A wrong answer of either form ends the challenge REJECTED, and the terminal asks for a new one. A code or a QR code is accepted at most once.
A SHA-256 hash of the request text is an input to both answers: the code is computed over it, and the QR answer’s signature covers it. Neither can be moved to another request, or to another challenge for the same request: an answer made for one is refused for any other, and an answer made offline is refused online.
What the terminal needs#
- A screen that shows one static QR code, and a keypad, a QR reader, or both. A laptop camera counts as a reader.
- Where a device has a keypad and a text-only display, one-time codes (TOTP) remain the method.
- A challenge lasts 120 seconds unless the request names another lifetime, from 30 to 300 seconds.
- The relying party takes an answer only in the terminal session that asked for the challenge. The challenge identifier is in the QR code and is not secret, so a page that takes it and an answer from any browser lets anyone end, or guess at, another user’s challenge.
- Nothing else from the deployer: the deployment makes one QR-signing key for each phone and keeps it sealed, as it keeps one-time-code secrets. No certificate or key of the deployer’s own is involved.
What the phone needs#
- The app sets up offline use when the phone is enrolled. It makes one more key in the phone’s secure hardware, usable only right after a face or fingerprint check, with no passcode fallback.
- The setup is all or nothing. A phone that cannot hold such a key is enrolled without offline use and keeps every online factor.
- A phone that loses the key is enrolled again to answer offline. On both iPhone and Android, a change of the enrolled fingerprints or face ends the key, and the phone is enrolled again.
What stays online#
- Location and number matching need a connection. A request for an offline challenge that asks for either is refused.
- Post-quantum signatures. An ML-DSA-65 signature is 3,309 bytes, more than one QR code that a fixed reader can decode. Nothing offline is post-quantum: the terminal’s QR code is signed with Ed25519, the code comes from a P-256 key agreement, and the QR answer is signed with ES256 alone. Online approvals keep both signatures.
- Evidence for a third party. The signed QR answer is checked by the deployment. A typed code proves the answer to the deployment, but leaves no signature that anyone else can check.
Where it fits#
Offline approval is meant for a terminal at which the relying party believes the user to be present.
- It is not immune to phishing. A fake page that relays the terminal’s QR code, and the answer back, can pass on an approval that the user gave. The exact request on the phone, and the notice beside every answer, are the guard.
- A typed code can be guessed. Each guess needs a new challenge and succeeds about once in 100 million tries, but no count of failures blocks it. A relying party bound to a limit on failed attempts, such as a bank under the payment-authentication rules, or one that offers offline approval on a public page, takes the QR answer only at its terminals.
- Anyone who can type at the terminal, or show it a QR code, can end the user’s challenge there. Each such attempt makes the user start a new challenge, which spends one of the user’s challenges (see Limits); an empty limit refills by itself, and the relying party can clear it.
- The QR codes are not secret. The terminal’s code carries a phone identifier and the request text in plain view, and no user identifier; it is accepted by one phone only. The picker shows phone names and models to whoever stands at the terminal, so a relying party shows it only after it has identified the user.