Repository navigation
Adds human approval for agent actions: an AI agent can ask a user to approve
one specific action (OpenID CIBA, poll mode, beta, off by default) and gets
a short-lived token bound to exactly that action. Also makes single-use checks
atomic on DynamoDB and Cassandra/ScyllaDB, fixes a logout CSRF, and removes the
deprecated stdio authorizer mcp subcommand. Read the Upgrade notes if you run
authorizer mcp.
Security
- Single-use checks were not atomic on DynamoDB and Cassandra/ScyllaDB without Redis (#957). On those databases the database memory store's "claim once" was an upsert, so concurrent requests could all succeed. This weakened replay protection for SAML assertion IDs, RFC 7523 client-assertion
jtiand TOTP codes. Claims now use a conditional write (attribute_not_existson DynamoDB,INSERT … IF NOT EXISTSon Cassandra/ScyllaDB). Other databases were already atomic, and Redis deployments are unaffected. - Logout CSRF (#956, low).
GET /logoutskipped the confirmation page for any validly signedid_token_hint, so a page embedding/logout?id_token_hint=<the attacker's own ID token>signed out every visitor. The hint'ssubmust now match the signed-in user; otherwise the confirmation page is shown.
Added
- Human approval for agent actions: OpenID CIBA, poll mode (beta) (#953, #954, #955, #958). Guide: Human Approval for Agent Actions.
- Endpoints:
POST /oauth/bc-authorizestarts a request, naming the user (login_hintorid_token_hint), abinding_message, the API (resource, RFC 8707) and optionalauthorization_details(RFC 9396). The agent polls/oauth/tokenwithgrant_type=urn:openid:params:grant-type:ciba. The user decides onGET/POST /oauth/bc-approve. - Opt-in:
--enable-cibaon the server, plusbackchannel_token_delivery_mode: "poll"on each client (GraphQL, REST and gRPC admin APIs, and the dashboard's Human approval (CIBA) toggle). Only service accounts whose allowed scopes includeopenidqualify. - Reaching the user: an email (new CIBA approval request template) and the
user.approval_requestedwebhook, which carries the approval link. - Approving: only on Authorizer's own page, in the user's own browser session. The sign-in must be recent (
--ciba-step-up-max-age, default 300 s) and not a magic link. A user with no session signs in through the login page and comes back. - What the agent gets: a delegated access token (
act.sub= the agent) bound to that one API, carrying the approvedauthorization_detailsand acibaclaim. It is valid for 5 minutes and can be redeemed once. There is no refresh token, and the token can neither be used at Authorizer itself nor exchanged for an unbound one. - Limits and abuse resistance:
- Per-agent and per-user caps (
--ciba-max-requests-per-user,--ciba-max-requests-per-user-total) and a per-client rate limit. - Deny blocks the agent for an hour; deny and block, for 24 hours.
- Organization-scoped agents can reach only members of their organization.
- Unknown, revoked, blocked or capped users get an identical, never-approvable response, so the endpoint doesn't reveal which users exist.
- Per-agent and per-user caps (
- Other flags:
--ciba-request-ttl(1–600 s, default 300),--ciba-poll-interval(2–60 s, default 5) and--ciba-authorization-details-types. The server needs anhttps--url(http is allowed on a loopback host). Redis is not required on any database. - Observability:
- Audit events
ciba.requested,ciba.approved,ciba.denied,ciba.blocked,ciba.expiredandciba.token_issued; the dashboard's audit filters include them. - Metrics
authorizer_ciba_outcomes_total{client_id,outcome}(alert on the per-agent deny rate) andauthorizer_ciba_time_to_decision_seconds. - Discovery metadata
backchannel_authentication_endpoint,backchannel_token_delivery_modes_supportedand the CIBA grant type.
- Audit events
- Endpoints:
- Release coverage: a CIBA smoke test, and an e2e-playground test of the full approval journey through the real login page, served over TLS.
Changed
- Token exchange (RFC 8693) refuses a subject token that is bound to an approved action (
cibaorauthorization_detailsclaim). - The MCP bridge forwards only the calling request's own
Authorizationheader. The process-wide fallback credential is gone with the stdio subcommand. - Dependency updates: AWS SDK (DynamoDB), go-redis 9.24, modernc SQLite, web app and dashboard packages, CodeQL action (#947–#951).
Removed
- The stdio
authorizer mcpsubcommand, and its flags--mcp-bearerand--mcp-authorizer-url(#959). It was deprecated in 2.4.0. It ran a second copy of every provider and served one user per process, so it could not be deployed. MCP is served atPOST <url>/mcpwith--mcp-enabled. Theauthorizerbinary now has no subcommands.
Upgrade notes
- If you run
authorizer mcp: start the server with--mcp-enabledinstead and point your MCP host at<url>/mcp(see MCP). GET /logoutwith anid_token_hintfor a different user than the one signed in now shows the confirmation page instead of logging out. Relying parties that send their own user's hint are unaffected.- CIBA is off by default. To try it, enable
--enable-ciba, configure SMTP or auser.approval_requestedwebhook, and opt in a service account. - SDKs:
- CIBA helpers ship in authorizer-js 4.2.0 (
requireApproval,checkApprovedAction) and authorizer-py 0.5.0 (require_approval,check_approved_action). Go v2.4.0 and both of those releases addbackchannel_token_delivery_modeto the admin client methods. - Over GraphQL, those client methods need this server. Older SDKs keep working against it.
- CIBA helpers ship in authorizer-js 4.2.0 (