Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Asking a person before acting

The photo book is laid out and costs $58, under your limit, and the printer wants your yes before an agent spends your money. This lesson works out which actions deserve a person's approval, what that approval must be tied to, how you can give it from your phone while the assistant works elsewhere, and how to keep approvals meaningful.

An order that needs a yes

The layout is finished. The book has 32 pages and costs $58 including shipping, just under your limit. Should the assistant simply place the order? You set the limit, so arguably it should. But spending money is the kind of action you may want to see before it happens, and the printer agrees. Its policy for orders placed by agents is that each one needs the customer's explicit approval. You, meanwhile, are on a train.

Most of an agent's actions do not need anyone's approval. Reading the album, choosing photos and laying out a draft are easy to redo and affect nobody else. The actions that deserve a person's yes are the ones that cost money, cannot easily be undone, or reach other people: paying, sharing, deleting, and sending messages.

The service that owns the action is the one that should require approval, because it is the one that can enforce the requirement. If the assistant only promised to ask first, the promise would be one more instruction it could be talked out of. The printer refuses orders from agents that do not carry an approval, so the question is settled no matter what the assistant decides.

Approval and a narrow grant do different jobs. The grant from Delegating authority to an agent says what the assistant could do at most: one order up to $60. Approval confirms one particular action within that limit, at the moment it happens.

What an approval must bind

The weakest kind of approval is a message in the assistant's chat: "Shall I go ahead?" and you reply "yes". What did you approve? The assistant wrote the description, so you saw only what it chose to show you. And the printer has only the assistant's word that you agreed.

A meaningful approval has three properties. It is shown by the party that will enforce it, here the printer's own authorization server, not in text the agent composed. It is specific: the item, the amount, where it ships. And it produces authority for exactly that action, once, for a short time. The printer saved the finished layout as draft book-7730, and in the printer's app on your phone, the request to order it looks like this:

printer.example
Approve an order placed by assistant.example?

  Photo book "Lisbon trip", 32 pages, hardcover
  Draft book-7730
  $58.00 including shipping
  Ship to: your saved home address

  Code shown by the assistant: TRAM-42

[Approve]   [Decline]

All domains, credentials, and tokens in these examples are fictional. The code at the bottom is the binding message from Binding the authentication to the request. The assistant shows the same code in its chat, so you can confirm that the request on your phone is the one your assistant started and not some other request that arrived at the same moment.

Authority for one action, once, also decides what the assistant does when something goes wrong. Suppose the printer creates the order, and then your train enters a tunnel and its reply never reaches the assistant. From where the assistant sits, the order may or may not exist. Sending it again is the one thing it must not do: the token covered one order, so a second attempt would need you to approve again, and if the first one went through you would pay for two books. The assistant records the order as unresolved and asks the printer about something with a name that cannot change, the approved draft book-7730. The token cannot place another order, but the printer lets it read the status of the one order it was approved for, and nothing else:

GET /orders?draft=book-7730 HTTP/1.1
Host: orders.printer.example
Authorization: Bearer demo-order-token

HTTP/1.1 200 OK
Content-Type: application/json

{"order": "ord-5531", "draft": "book-7730", "status": "placed", "total": "58.00"}

The order is there, so the assistant tells you it went through and carries on. Asking costs nothing, because a lookup changes nothing. An answer that no order exists for book-7730 would be less certain than it looks, because the first request may still be in progress and finish just after the lookup, as Keeping systems in sync found for provisioning. The assistant would keep the order unresolved and ask again about the same draft a little later. Only once the printer confirms that the attempt finished without creating an order would trying again, with a new approval from you, be the right move.

Try it: is this approval enough?

Simulation. These approval requests are made up. Checking an answer happens in your browser and sends nothing.

Your phone shows this request from the printer. Is approving it enough for the assistant to place the $58.00 order? 1 of 5
printer.example
Allow assistant.example to place orders for you
without asking you again?

  Up to $60.00 per order

[Approve]   [Decline]

Enable JavaScript to check an answer here, or open the explanation below.

Show the answer and why

No. It approves every future order, not this one. A meaningful approval produces authority for exactly one action. This one would let the assistant keep ordering without asking you again.

The assistant asks in its own chat window. Is your reply enough for the printer to accept the order? 2 of 5
Assistant: I found a lovely 32-page book for $58.00.
Reply YES and I will order it.

Enable JavaScript to check an answer here, or open the explanation below.

Show the answer and why

No. The printer cannot see or verify your reply. The approval should be shown and recorded by the party that will enforce it, here the printer's authorization server.

Your phone shows this request. Is approving it enough? 3 of 5
printer.example
Approve an order placed by assistant.example?

  Photo book "Lisbon trip", 32 pages
  Code shown by the assistant: TRAM-42

[Approve]   [Decline]

Enable JavaScript to check an answer here, or open the explanation below.

Show the answer and why

No. It leaves out the amount and the shipping address. An order approval should state what you are paying and where the book is going, so a changed price or address cannot ride on your yes.

Your phone shows this request, and the assistant's chat shows the code TRAM-42. Is approving it enough? 4 of 5
printer.example
Approve an order placed by assistant.example?

  Photo book "Lisbon trip", 32 pages, hardcover
  $58.00 including shipping
  Ship to: your saved home address

  Code shown by the assistant: TRAM-42

[Approve]   [Decline]

Enable JavaScript to check an answer here, or open the explanation below.

Show the answer and why

Yes. It is from the printer, names the order and amount, and the code matches. This request has everything an approval needs, and the token issued afterwards covers this order only.

Your phone shows this request, but the assistant's chat shows the code TRAM-42. What should you do? 5 of 5
printer.example
Approve an order placed by assistant.example?

  Photo book "Lisbon trip", 32 pages, hardcover
  $58.00 including shipping
  Ship to: 14 Dock Lane, Unit 9

  Code shown by the assistant: QUAY-17

[Approve]   [Decline]

Enable JavaScript to check an answer here, or open the explanation below.

Show the answer and why

Decline it and report it to the printer. A binding message that does not match means this is not the request your assistant started. Here someone is trying to have the book shipped to them.

Approving away from the screen

You are not at a browser, so the printer cannot send you through an ordinary redirect. Instead, the assistant asks the printer's authorization server directly, over a back channel, to get your approval for this order. The authorization details are shown unencoded here so they are readable:

POST /bc-authorize HTTP/1.1
Host: auth.printer.example
Content-Type: application/x-www-form-urlencoded

client_id=assistant
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&client_assertion=demo-signed-client-assertion
&scope=openid
&login_hint=cust-1182
&binding_message=TRAM-42
&authorization_details=[{"type":"photo_book_order","actions":["create"],"draft":"book-7730","amount":{"currency":"USD","value":"58.00"}}]

The authorization server first checks the request against the limit you already granted, so a request for more than $60 would be refused without disturbing you. It answers with an identifier for the pending request, then notifies you in the printer's app, where you confirm it is you and approve. Meanwhile, the assistant asks the token endpoint every few seconds whether the request has been decided, and is told authorization_pending until you answer. When you approve, it receives an access token for this order only: draft book-7730, at $58.00. The printer's order API accepts the order with that token and would refuse any other.

This is the OpenID Connect Client-Initiated Backchannel Authentication, CIBA, that Following a CIBA exchange walked through, here in the poll mode from Poll, ping, and push modes. For agents it fills a real gap: the agent works where you are not, and you approve where you are.

The assistant asks over a back channel, you approve on your phone, and the token the assistant receives is good for one order at one price.

When approvals stop meaning anything

Suppose the assistant asked for approval at every step: each photo the selection agent chose, each page it laid out. By the tenth request you would be approving without reading, in the same way that repeated sign-in prompts wear people down in Codes, links, and approval prompts.

Approvals stay meaningful when they are rare and specific. Ask only for consequential actions. Show the details that matter and nothing else. Make declining as easy as approving. Limit how many approval requests one agent can send in a short time. And treat an approval request you did not expect as a warning sign, worth reporting rather than dismissing.

Stepping up for the approval

An approval proves something only if the person approving is really you. Anyone holding your unlocked phone could press Approve. For a $58 photo book, the printer may accept a recent sign-in in its app. For a larger amount, it can ask for fresh and stronger authentication before the approval counts, such as a passkey with your fingerprint or PIN, the way Authentication policy and SSO asked for it before sensitive actions.

The token the assistant receives can record how you authenticated when you approved, with the claims from What a token can say about sign-in. The printer's order API reads them and checks that the approval met its policy before it charges you, so a yes from an unlocked phone in someone else's hand does not pay for a large order.

Check your understanding

Try these questions before moving on. If an answer isn't right, use the feedback and try again.

Your phone shows "Allow the assistant to complete your request?" Why is that a weak approval? 1 of 3

Choose one answer.

You approved draft book-7730 at $58.00. The assistant then uses the token it received to order draft book-7731, a different book that also costs $58.00. What should happen? 2 of 3

Choose one answer.

The printer creates your approved order for draft book-7730, but its reply never reaches the assistant. What should the assistant do next? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity