Skip to content

Fix: add double token in authorization header #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enrico-kaack-comp
Copy link

This PR reintroduces two possible auth tokens that have been removed in #6 . To follow the strategy of only adding auth tokens in the Authorization header, this assumes two auth token to be comma separated.

It is possible to have only one token (for requests against the crate) or two tokens (for requests against an mcp - that also requires a request against the mcp). More are not accepted.

This seems to violate the RFC defining http headers and the auth header to only be a single value but since this is not a public api it is acceptable with the added advantage of using the standard authorization header over a custom header.

Copy link

cla-assistant bot commented Jun 11, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

cla-assistant bot commented Jun 11, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@n3rdc4ptn n3rdc4ptn left a comment

Choose a reason for hiding this comment

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

lgtm

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