Skip to content

Accept authorization_details at the authorization endpoint #6914

Open

Description

@jhrozek

Part of #6909. Depends on #6913. Lower priority.

Problem: RFC 9396 §3 defines authorization_details for the authorization
request and for device authorization requests (RFC 8628). Both endpoints exist
in ToolHive's AS, but neither accepts the parameter. This matters less for
ToolHive than for most servers: sign-in is handled by the upstream IdP, and
most clients get user tokens that way and then use token exchange.

Change:

  • Accept authorization_details on /oauth/authorize and
    /oauth/device_authorization. Validate with the same registry and the §5
    rules. The error goes back to the redirect URI as invalid_authorization_details.
  • Show the requested details on the existing consent page (/oauth/consent).
    Each type renders its own summary. RFC 9396 §3.1 says the consent screen MUST
    show scope and details together, and §11.2 says deployments should control
    how details are shown.
  • "Remember this consent" must cover the details, not only scopes.
  • Store the result with the grant (Persist granted authorization_details and carry them through refresh #6913).
  • Optional: a PAR endpoint (RFC 9126 §2, advertised as
    pushed_authorization_request_endpoint, §5). RFC 9396 §3 says implementers
    MAY use PAR, §11.4 suggests it for large requests, and §12 says clients MUST
    protect details against tampering when integrity matters, which PAR or
    signed request objects provide. ToolHive has no PAR endpoint today. If
    needed, split it into its own issue.

Acceptance:

  • An authorization code flow with a registered type ends in a token response
    and access token carrying the details. An unknown type redirects back with
    invalid_authorization_details.
  • The consent page shows the details, and a remembered consent for scopes alone
    does not skip consent for new details.

Open questions:

  • How much of the details may the consent page show? RFC 9396 §13 describes
    using the consent screen to reveal data in the clear and says implementations
    need countermeasures.
  • Does the Grant hook interface fit here, given there is no subject token but
    there is an upstream identity?

Activity

  1. added
    needs-triage
    on Oct 22, 2026
  2. removed
    needs-triage
    on Nov 24, 2026
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