
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
..
2026-03-29 21:00:00 +02:00
2025-12-13 23:51:18 +01:00
2025-11-05 18:53:14 +01:00
2026-02-16 09:21:21 +01:00
2025-10-14 01:22:15 +02:00
2026-02-20 08:04:50 +01:00
2026-03-02 17:22:23 +01:00
2026-03-02 11:25:54 +01:00
2026-04-03 00:22:20 +02:00
2026-03-02 17:22:23 +01:00
2026-03-30 08:51:41 +02:00
2026-03-29 19:03:25 +02:00
2025-11-11 20:35:08 +01:00
2026-03-31 17:09:37 +02:00
2026-04-03 00:22:20 +02:00
2026-03-02 17:22:23 +01:00
2025-11-04 03:34:53 +01:00
2026-03-02 17:22:23 +01:00
2026-04-03 00:22:20 +02:00
2026-03-02 17:22:23 +01:00
2026-04-03 00:22:20 +02:00
2026-02-20 08:04:50 +01:00
2026-02-20 08:04:50 +01:00
2026-02-16 09:21:21 +01:00