
Chris CoutinhoandClaude Opus 4.6
5730313574
refactor: remove RFC 8693 token exchange and Keycloak OAuth implementation
Nextcloud doesn't support OAuth bearer tokens without upstream patches,
making the RFC 8693 token exchange path untestable and dead code.
Removed:
- nextcloud_mcp_server/auth/token_exchange.py (597 lines)
- nextcloud_mcp_server/auth/keycloak_oauth.py (586 lines)
- OAUTH_TOKEN_EXCHANGE deployment mode from AuthMode enum
- get_session_client_from_context() from context_helper.py
- get_session_token() from token_broker.py
- enable_token_exchange / token_exchange_cache_ttl config fields
- oauth_token_exchange_total Prometheus metric
- Keycloak fixture block from tests/conftest.py (~408 lines)
- Token exchange unit tests from test_config_validators.py,
test_unified_verifier.py, test_management_status_endpoint.py
Preserved:
- Multi-audience OAuth mode (OAUTH_SINGLE_AUDIENCE)
- Login Flow v2 provisioning with elicitation support
- Token broker background token management
- All existing test coverage for non-exchange paths
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 00:22:20 +02:00
..
2025-11-11 20:35:08 +01:00
2026-04-01 16:05:14 +02:00
2025-10-17 04:30:03 +02:00
2026-04-01 17:43:44 +02:00
2025-12-26 10:05:27 -06:00
2025-11-23 00:33:32 +01:00
2026-04-01 17:43:44 +02:00
2026-04-01 16:05:14 +02:00
2026-04-03 00:22:20 +02:00
2025-10-24 01:04:30 +02:00
2026-04-03 00:22:20 +02:00
2025-11-11 23:42:00 +01:00
2025-10-14 01:23:39 +02:00