This is an automated email from the ASF dual-hosted git repository. aminghadersohi pushed a commit to branch oss-39604 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 60c1fd93882326a34235b1ae5c392ca59ef8638c Author: Amin Ghadersohi <[email protected]> AuthorDate: Wed May 27 16:09:20 2026 +0000 fix(mcp): replace MCPJWTVerifier with JWTVerifier after browser-hello revert MCPJWTVerifier was removed in the master revert of the browser-friendly hello page (#40467). Update mcp_config.py to import only DetailedJWTVerifier and use JWTVerifier directly for the non-debug code path, matching the current jwt_verifier.py interface. --- superset/mcp_service/mcp_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset/mcp_service/mcp_config.py b/superset/mcp_service/mcp_config.py index 0fe43e2be6d..6e93e9f7644 100644 --- a/superset/mcp_service/mcp_config.py +++ b/superset/mcp_service/mcp_config.py @@ -29,7 +29,7 @@ from superset.mcp_service.constants import ( DEFAULT_TOKEN_LIMIT, DEFAULT_WARN_THRESHOLD_PCT, ) -from superset.mcp_service.jwt_verifier import DetailedJWTVerifier, MCPJWTVerifier +from superset.mcp_service.jwt_verifier import DetailedJWTVerifier logger = logging.getLogger(__name__) @@ -404,8 +404,8 @@ def _build_jwt_verifier( # RFC 6750 Section 3.1. return DetailedJWTVerifier(**common_kwargs) - # MCPJWTVerifier: minimal logging + browser-friendly error page. - return MCPJWTVerifier(**common_kwargs) + # Default JWTVerifier: minimal logging, generic error responses. + return JWTVerifier(**common_kwargs) def default_user_resolver(app: Any, access_token: Any) -> str | None:
