Skip to content

Fix stale auth context in stateful StreamableHTTP sessions#2363

Open
raashish1601 wants to merge 4 commits intomodelcontextprotocol:mainfrom
raashish1601:contributor-14/python-sdk-2208
Open

Fix stale auth context in stateful StreamableHTTP sessions#2363
raashish1601 wants to merge 4 commits intomodelcontextprotocol:mainfrom
raashish1601:contributor-14/python-sdk-2208

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

Testing

  • .\.venv\Scripts\python -m pytest tests\server\auth\middleware\test_auth_context.py tests\server\auth\middleware\test_auth_context_streamable_http.py -q
  • .\.venv\Scripts\python -m pytest tests\shared\test_streamable_http.py -q -k "request_context_propagation or request_context_isolation"

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.

get_access_token() returns stale token in stateful streamable-HTTP sessions

1 participant