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
@@ -251,12 +251,6 @@ services:
|
||||
- TOKEN_ENCRYPTION_KEY=${TOKEN_ENCRYPTION_KEY:?TOKEN_ENCRYPTION_KEY must be set in .env (see env.sample)}
|
||||
- TOKEN_STORAGE_DB=/app/data/tokens.db
|
||||
|
||||
# ADR-005: Token exchange mode (RFC 8693)
|
||||
# Exchange MCP tokens (aud: nextcloud-mcp-server) for Nextcloud tokens (aud: http://localhost:8080)
|
||||
# Provides strict audience separation between MCP session and Nextcloud API access
|
||||
- ENABLE_TOKEN_EXCHANGE=true
|
||||
- TOKEN_EXCHANGE_CACHE_TTL=300 # Cache exchanged tokens for 5 minutes (default)
|
||||
|
||||
# Login Flow v2 (ADR-022) with external IdP — derived from the
|
||||
# auto-detected LOGIN_FLOW deployment mode; no separate flag needed.
|
||||
- ENABLE_DCR=true
|
||||
|
||||
Reference in New Issue
Block a user