WeKnora/internal/mcp
Captain f559473498
fix(mcp): keep the client secret from dynamic client registration (#3763)
StartAuthorization stored only the client ID from dynamic client
registration. When the authorization server registers a confidential
client and returns a client secret, the secret was lost: the callback
rebuilds the OAuth handler from the stored client, so the code exchange,
and every later refresh, went out without it and the server rejected
them as invalid_client.

Store the secret along with the ID. The model already has the column,
encrypts it on save, and both handlers read it back.
2026-10-08 01:24:51 +08:00
..
client.go revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
client_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
client_tools_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
errors.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00
manager.go fix(mcp): close MCP connections on shutdown without blocking exit 2026-09-25 18:22:14 +08:00
manager_closeall_test.go fix(mcp): close MCP connections on shutdown without blocking exit 2026-09-25 18:22:14 +08:00
manager_startup_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
oauth_lifecycle.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_lifecycle_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_manager.go fix(mcp): keep the client secret from dynamic client registration (#3763) 2026-10-08 01:24:51 +08:00
oauth_manager_test.go fix(mcp): keep the client secret from dynamic client registration (#3763) 2026-10-08 01:24:51 +08:00
oauth_principal_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_redirect_security_test.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
oauth_state.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_state_test.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
oauth_tokenstore.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
security.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
security_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
types.go revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00