-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Question: How to authorise a client with Bearer header with SSE? #431
Copy link
Copy link
Open
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthdocumentationImprovements or additions to documentationImprovements or additions to documentationready for workEnough information for someone to start working onEnough information for someone to start working on
Metadata
Metadata
Assignees
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featureauthIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthdocumentationImprovements or additions to documentationImprovements or additions to documentationready for workEnough information for someone to start working onEnough information for someone to start working on
Type
Fields
Give feedbackNo fields configured for issues without a type.
I am building the MCP server application to connect some services to LLM .
One of things i want to implement is authorisation of a user with the token.
I see it must be possible somehow. Because MCP inspector has the Authentification and Bearer Token field
Most of tutorials about MCP are related to STDIO kind of a server run. My will be SSE.
There is my code:
How can i read Authorization header in case if it is sent by the client?
I tried to use approaches of FastAPI - setting dependency, adding request:Request to arguments but this doesn't work.
Is there a way?