Skip to content

Support authorization_details (RFC 9396) in token exchange #6894

Closed

Description

@jhrozek

Part of #6886. Needed by #6895, #6896 and #6897.

Problem: token exchange has no authorization_details support (RFC 9396). Session and schedule refresh tokens are each named by one authorization_details entry.

Change:

  • Parse authorization_details in token-exchange requests.
  • Validate against a registry of known types (session, schedule). Refuse unknown or malformed entries with invalid_authorization_details (RFC 9396 §5).
  • The response echoes what the type's hook grants. For the session and schedule types the hook returns the entry unchanged.
  • No other grant changes behaviour.

Acceptance: an unknown type is refused; a known entry is echoed back equal as a JSON value (the encoding may differ: the server compacts it and escapes <, > and &).

Metadata

Metadata

Assignees

Labels

needs-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions