You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accept authorization_details at the authorization endpoint #6914
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.
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