Skip to content

Wire the token exchange handler into the fosite compose pipeline #5813

Description

@jhrozek

Part of #5194.

Switches createProvider() from compose.Compose to NewAuthorizationServer with factory adapters, so the token exchange handler can be registered alongside the standard OAuth grant types.

  • Adds a wrapComposeFactory adapter bridging compose.Factory -> server.Factory
  • Registers tokenexchange.Factory in the extra-factories list
  • Adds DelegationTokenLifespan to server config and run config (default 15m, max 24h)
  • Advertises the token-exchange grant type in OAuth discovery metadata

Branch: token-delegation-2-fosite-wiring

Activity

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

Metadata

Metadata

Assignees

Labels

authenticationenhancementNew feature or requestgoPull requests that update go code

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions