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.
What it builds on
The scenario needs no new protocol: a sign-in on the work computer gives identity, a QR code on site gives presence. Both steps are ordinary confirmation transactions, which Veriqa already knows how to run. A QR code can sit on several surfaces, and they are not equally hard:What you build yourself
A printer or a screen is not a Veriqa channel: channels are tied to a person and answer “who”, not “where”. So your server puts the place QR code on the surface and runs both steps:- Identity. The person signs in on the work computer with an ordinary authorize request, and
the application receives their
sub, withamrnaming the channel in which they confirmed the sign-in. - Pick the surface from the session. Choose the surface based on where the session is open: the browser’s office network or a workstation your application knows. A session outside the office gets no surface and never passes the presence check. The Veriqa sign-in has already completed by then, so start the session or let it reach protected resources only after the presence check passes. If you pick the surface based on who signed in, the place confirms the person, not the session: with a forwarded sign-in the person scans the QR code in their own office, and the session stays with the attacker.
- The place QR code. To check presence, the server creates a
server-side confirmation transaction,
POST /api/transaction/confirmation, with an action type whose message names the room, and puts thechannel_entry.qrimage from the response on the surface.allowed_channel_typesnarrows the transaction to the channel the person signed in with. Veriqa adds nothing of its own to the wording of a confirmation, so end each step of the wording with advice to decline a request the person did not make, as the templates show. - Matching against the signed-in person. The person scans the code and confirms in the
messaging app, and the server waits for
confirmedfromGET /api/transaction/{id}/result. The entry point in the QR code works like a bearer token, so presence counts only after the match: passexpected_identitieswhen creating the transaction and checkmatched_type, or exchange the transaction for anid_tokenand compare itssubwith the person signed in on the computer. - Starting from a button in the messaging app. You can start the place check right after the
sign-in with the
Menupost-completion action: a “Confirm the place” link item with{handle}in its URL (Menu and Redirect). The server exchanges the handle (POST /api/link-handle/redeem) and learns thesubof the signed-in person, and a client with thechannelscope also getschannel_typeandchannel_user_id. The handle names the person, not the session, and the response does not say which browser the sign-in opened in. So pick the surface from this person’s session in your application, as in the step above, and count presence only for that session. A session outside the office gets no surface. The server then creates a confirmation withexpected_identitiesset fromchannel_user_id, as in thesamples/dotnet/inproc/step-upsample, and puts its QR code on that surface.matched_typein the result shows that the signed-in person is the one who scanned it. - A short lifetime and rotation.
ttl_secondssets the transaction lifetime, from 60 to 1800 seconds. A transaction is confirmed only once, so after a confirmation or onceresponse_valid_untilpasses, the server shows a new QR code.
Place and BCP 247
RFC 10027 (BCP 247) advises including proximity among the selected mitigations “if possible” (§2, item 5, SHOULD) and names four ways to establish it: physical connectivity, wireless, a shared network and geolocation (§6.1.1). The place factor is none of them: it checks that the phone is near the place surface, not near the sign-in device. It is a compensating control for the risk assessment the RFC requires before deployment (§2, item 1). The attack the RFC counters with proximity relies on sending codes to people in different places, and a QR code on a sheet from the office printer or on a meeting-room panel cannot be delivered remotely or sent to a thousand recipients. A separate upside unrelated to security: where policy forbids radio, and Bluetooth and Wi-Fi are switched off, a whole class of competing proximity factors is unavailable. A cross-device passkey, which the RFC calls “the best protection” (§6.2.4), confirms device proximity specifically over BLE. A paper or on-screen QR code needs no radio at all. For every BCP 247 mitigation and its status in Veriqa, see Veriqa, BCP 247 and the threat model.What to keep in mind
- Against a colleague in the same room the place factor does not protect at all — they are already inside. The factor is exactly as strong as the control over physical access.
- Printing adds risks of its own. A sheet outlives the session, it can be forgotten in a shared tray, and a personalized onboarding sheet is a long-lived linking secret that a short lifetime does not cure. Without one-time tokens and the invalidation of the remaining QR codes on first use, such a scenario is not safe.
- A QR code on a permanent screen is visible to everyone in the room and to cameras. It can therefore only ever be a marker of place and never a secret: short lifetime, rotation, and possession of it alone grants nothing.