What you send
A new authorize request before the action itself, the same one you send for sign-in:What you check
Two claims in the newid_token:
sub— the same person. Perform the operation only if it is thesubof the signed-in user or, after a confirmation in another channel, asublinked to their account (see Two different channels). Without this check, someone who has taken over the session confirms the operation in their own messaging app.auth_time— a fresh confirmation, the moment the confirmation completed. Freshness is your call: compareauth_timewith the current time and decide whether it fits the window this operation deserves.
Why this works
There is nothing to bypass: the issuer keeps no long-lived session. The only cookie between callback and authorize is single-use and is cleared as soon as the code is issued, so every fresh authorize request asks for confirmation in the channel again.Going stronger: two different channels
One sensitive operation can be confirmed in two different trusted channels — WhatsApp plus email, for instance. To narrow a specific request to one channel, useacr_values:
sub in each channel, so a confirmation in another channel returns a
sub other than the one the user signed in with. Store the sub of every channel linked to the
account and check that the new sub is one of them, as in
Stronger sign-in with a chain of channels. A sub
the account does not hold fails the check, however fresh its auth_time. Check amr as well: it
must name a channel you listed in acr_values, other than the one the user signed in with. The
request goes through the user’s browser, which can drop acr_values, and the new id_token can
then come from the channel the user signed in with.
Enriching the profile along the way
A confirmation is a convenient moment to collect what you are missing: requestscope=email or
phone and the application receives a verified contact during the confirmation itself — no
separate form, no separate verification. The exact claims depend on the channel.
Confirming a specific action

POST /api/transaction/confirmation with a declared action type and its slot values. The person
gets a message in their messaging app that states the action, such as “Approve a payment of 42.00 EUR
to ACME Ltd?”, and confirms it. To accept a confirmation only from the account owner, the backend
sends expected_identities and checks matched_type in the result. The browser is not involved:
the backend gets a token with client credentials and waits for the transaction outcome.

The app shows a QR code, and the person confirms the purchase in Messenger.
samples/dotnet/inproc/step-up sample is ready to run, and the others are on the
Step-up, second factor, human-in-the-loop page. Fields and errors are in
the Server-to-server confirmation API reference.