-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Open
Labels
authenticationRelated to authenticationRelated to authenticationvalidation:requiredA committer should validate the issueA committer should validate the issue
Description
Bug description
I'm trying to get the MCP server working but when calling tools I get this error.
g.user was not set by JWT middleware (MCP_AUTH_ENABLED=True, JWT keys configured=True)
I'm using JWT auth with a shared secret. I've put the user's username into the JWT payload as suggested in the docs.
Looking through the code I can see this function which appears to implement the logic the docs mention, but it doesn't appear to be called anywhere. So I'm at a dead end trying to deubg this.
https://github.com/apache/superset/blob/6.1.0rc1/superset/mcp_service/mcp_config.py#L283
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.11
Node version
16
Browser
Chrome
Additional context
No response
Checklist
- I have searched Superset docs and Slack and didn't find a solution to my problem.
- I have searched the GitHub issue tracker and didn't find a similar bug report.
- I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
authenticationRelated to authenticationRelated to authenticationvalidation:requiredA committer should validate the issueA committer should validate the issue