aminghadersohi opened a new pull request, #40582: URL: https://github.com/apache/superset/pull/40582
### SUMMARY Replaces `authlib.jose.errors` imports in the MCP service JWT verifier with the equivalent `joserfc.errors` classes. `joserfc` is a dedicated standalone JOSE library with the same error class names, and is the preferred dependency for JWT error handling going forward. Changes: - `superset/mcp_service/jwt_verifier.py`: `from authlib.jose.errors import ...` → `from joserfc.errors import ...` - `tests/unit_tests/mcp_service/test_jwt_verifier.py`: same import swap; updated `BadSignatureError(result=None)` → `BadSignatureError()` since joserfc errors don't accept a `result` kwarg - `pyproject.toml`: added `joserfc>=1.0.0,<2.0` to the `fastmcp` extras - `requirements/development.txt`: pinned `joserfc==1.6.8` ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — no UI changes. ### TESTING INSTRUCTIONS ```bash pytest tests/unit_tests/mcp_service/test_jwt_verifier.py -v ``` ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
