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
Part of #5194.
Switches
createProvider()fromcompose.ComposetoNewAuthorizationServerwith factory adapters, so the token exchange handler can be registered alongside the standard OAuth grant types.wrapComposeFactoryadapter bridgingcompose.Factory->server.Factorytokenexchange.Factoryin the extra-factories listDelegationTokenLifespanto server config and run config (default 15m, max 24h)token-exchangegrant type in OAuth discovery metadataBranch:
token-delegation-2-fosite-wiring