View as Markdown

Mandate · Concept

CIBA and RAR

CIBA (OpenID Connect Client-Initiated Backchannel Authentication) is the standard way for an OAuth client to ask a person, out of band, to approve what it wants. Rich Authorization Requests (RAR, RFC 9396) is the standard way to say exactly what that is, in authorization_details. Provenance implements CIBA core poll and ping modes with RAR, so any client that already speaks them can ask your people to approve an exact action.

When to use it

  • Your identity or platform team wires agent approvals through OAuth rather than an SDK.
  • An agent platform already has a CIBA client and needs a person to approve a payment, a change or a message.
  • You want the approval bound to the exact action, under your versioned policy, with a signed receipt, from a standard flow.

How it works

  1. The client asks. It authenticates with private_key_jwt or client_secret_basic, names the person with a hint, and describes each action as a provenance_action detail.
  2. The policy decides. Each action goes through the same path as an intent token and a verify: the account's policy reads the detail's amount, action type and counterparty. It's approved at once, sent to the person, or denied.
  3. The person approves. The approval reaches the hinted person through their delivery channels, shows the description, amount, counterparty and the client's binding message, and records how they approved.
  4. The client polls, or in ping mode waits for our notification and then polls once. Once approved, the token endpoint returns an intent token bound to the action and the detail, each detail's receipt id, and an id token for the approver.
  1. CIBA request
    hint + authorization_details
  2. Verify path
    policy, approval, ledger
  3. Tokens
    intent token, receipts, id token

Every decision is an ordinary row in the decision ledger, with the OAuth client's id. Its receipt says decided_via: "ciba", and the console's Decisions page filters by OAuth client.

RAR on the authorization code flow

On /authorize, a person's own assistant can send authorization_details as well (connect your own assistant). The consent screen lists what it asks to do, and its access tokens carry the details as approved. An assistant that sends none gets tokens without them.

Key terms

TermMeaning
OAuth clientA confidential client of your account (Developers → OAuth clients), with its keys or secret, allowed scopes, detail types and delivery modes
auth_req_idThe id of one backchannel request; the client polls with it and it works once
provenance_actionThe one RAR type: action_type, description, and optionally amount, currency, counterparty, payload_hash, mandate_id, run_id
Pairwise subThe id token's subject: stable for a person at one client, unrelated at any other
binding_messageUp to 64 characters the person sees, so they can match the request to the app that sent it

What stays the same

The person approves the exact action, with the same passkey or biometric rules your policy sets. Approval routing, quiet hours, escalation and delivery are the ones the account already has. The access token is an ordinary intent token, so merchants and services verify it the way they verify any other.