WeKnora/internal/handler/dto
wizardchen f2686e9e39 feat(mcp): drive auth by AuthType and auto-detect OAuth on test
Select the auth header for the configured strategy only, instead of
emitting both X-API-Key and Authorization whenever the fields happened
to be set (which double-authed after switching strategies). AuthType=""
keeps the legacy infer-from-fields behavior for pre-existing rows.

Add a configurable api_key_header (non-secret, defaults to X-API-Key) so
services expecting the key in a different header work without plaintext
custom headers.

On connection test, upgrade a bare 401 that advertises RFC 9728
protected-resource metadata into an explicit OAuthRequired signal so the
UI can guide the user to switch to OAuth 2.0. Surface the server's
description from the initialize handshake in the test result.
2026-06-29 22:37:52 +08:00
..
datasource.go fix(datasource): harden RSS connector and editor UX after review 2026-06-23 17:30:38 +08:00
datasource_test.go fix(datasource): harden RSS connector and editor UX after review 2026-06-23 17:30:38 +08:00
mcp.go feat(mcp): drive auth by AuthType and auto-detect OAuth on test 2026-06-29 22:37:52 +08:00
mcp_test.go refactor(credentials): introduce /credentials subresource pattern 2026-05-17 15:27:52 +08:00
model.go fix: add model display name 2026-05-28 19:22:17 +08:00
model_test.go fix: add model display name 2026-05-28 19:22:17 +08:00
web_search_provider.go refactor(credentials): introduce /credentials subresource pattern 2026-05-17 15:27:52 +08:00
web_search_provider_test.go refactor(credentials): introduce /credentials subresource pattern 2026-05-17 15:27:52 +08:00