docs: drop removed token-exchange mode; deprecate superseded auth ADRs
The OAuth token-exchange deployment mode was removed (ADR-022) and has no implementation — only a vestigial `enable_token_exchange` flag remains. Its documentation still presented it as a usable mode, which misleads self-hosters. The only supported deployment modes are single_user_basic, multi_user_basic, and login_flow. Token-exchange removals (how-to/config for a removed mode): - delete docs/CRITICAL-TOKEN-EXCHANGE-PATTERN.md - delete docs/oauth-architecture-comparison.md (orphaned; labelled the removed pass-through mode as "current implementation") - env.sample: drop the "OAUTH TOKEN EXCHANGE MODE" section - docker-compose.yml: drop ENABLE_TOKEN_EXCHANGE/TOKEN_EXCHANGE_CACHE_TTL from the keycloak service (dead flags) - docs/webhook-management-guide.md: drop the token-exchange deployment section - docs/configuration-migration-v2.md: drop the token-exchange migration scenario - docs/observability.md: drop the never-emitted mcp_oauth_token_exchange_total Auth ADR status corrections: - ADR-004: Draft -> Superseded by ADR-022/ADR-023 (token-exchange/federated design not adopted); note the three supported modes. - ADR-002: extend the deprecation pointer to ADR-022/ADR-023. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
64e50c0bcc
commit
16784d6fd4
@@ -6,7 +6,7 @@
|
||||
|
||||
## Status
|
||||
~~Accepted - Tier 2 (Token Exchange with Delegation) Implemented~~
|
||||
**Superseded by ADR-004** - The token exchange implementation exists but doesn't solve the offline access problem.
|
||||
**Superseded by ADR-004**, and ultimately by [ADR-022](ADR-022-deployment-mode-consolidation.md) (Login Flow v2) + [ADR-023](ADR-023-oauth-as-proxy.md) (OAuth AS proxy). The token-exchange approach was removed; background vector sync now uses Login Flow v2 app passwords. The only supported deployment modes are `single_user_basic`, `multi_user_basic`, and `login_flow`.
|
||||
|
||||
**Important**: Service account tokens (old Tier 1) have been rejected as they violate OAuth "act on-behalf-of" principles by creating Nextcloud user accounts for the MCP server.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user