Skip to content

Grant Management: allow a subject-proof caller to query/revoke another client's grant for the same user #889

Open

Description

@ilja-radusch

Grant Management lets only the client that owns a grant query or delete it (GET/DELETE /grants/{grant_id}). With #883 moving the spec toward final, one gap we hit in deployment may be worth a decision, even if the answer is "out of scope, use an extension".

Case. A user signs in to a web application (client A) and has also authorized other clients (B, C) for the same resources, for example AI agents connected over MCP, or a bank's own app next to third-party apps. Users expect client A to list those connections and offer "disconnect" for each. Client A is not the owner of B's grant, so Grant Management gives it no way to read or revoke it. An admin-level API is too broad for this.

Proposal (running code). A "subject-proof caller": client A presents an access token that the AS issued to client A for the same user. The AS checks that the token is valid and not revoked, that its client_id is the authenticated caller, and that it names the same user as the target grant. Client A may then read that grant's metadata or revoke exactly that grant. Public clients are excluded by default, because a leaked token of a public client is its own valid proof.

We specified this for RFC 7662 introspection and RFC 7009 revocation in an individual draft, and implemented both:

Questions for the WG:

  1. Should Grant Management allow a non-owner caller under rules like these, or leave it to an extension?
  2. If an extension: would it be acceptable for DELETE /grants/{grant_id} to accept a subject_proof_token, so that one mechanism covers Grant Management, introspection and revocation?

Activity

  1. jogu commented on Dec 2, 2026

    @jogu
    Contributor

    Discussed on today's WG call - we weren't too sure on how widely applicable this is, so it might be appropriate to leave to it to an extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions