Skip to content

fix: forward auth header from http request#215

Open
creepysta wants to merge 1 commit into
apache:mainfrom
creepysta:mcp/fwd-auth-header
Open

fix: forward auth header from http request#215
creepysta wants to merge 1 commit into
apache:mainfrom
creepysta:mcp/fwd-auth-header

Conversation

@creepysta

@creepysta creepysta commented Apr 17, 2026

Copy link
Copy Markdown

#197

Currently the mcp server can only be configured with auth with static tokens, or client credentials.

But it doesn't forward auth headers from clients connecting to it. This becomes important when both the client and catalog server is configured to talk to an external IDP (polaris.authentication.type=external)

This PR allows the MCP server to simply forward the Authorization header (if its present in the http request) from the client to the catalog server.

@MonkeyCanCode MonkeyCanCode requested a review from flyrain June 2, 2026 04:11

@flyrain flyrain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @creepysta ! LGTM. Can we add a test for this to avoid any regression in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants