File tree 1 file changed +2
-6
lines changed 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -858,9 +858,7 @@ async def mock_redirect_handler(url: str) -> None:
858
858
with patch (
859
859
"mcp.client.auth.secrets.compare_digest" , return_value = False
860
860
) as mock_compare :
861
- with pytest .raises (
862
- Exception , match = "State parameter mismatch - possible CSRF attack"
863
- ):
861
+ with pytest .raises (Exception , match = "State parameter mismatch" ):
864
862
await oauth_provider ._perform_oauth_flow ()
865
863
866
864
# Verify constant-time comparison was used
@@ -885,9 +883,7 @@ async def mock_redirect_handler(url: str) -> None:
885
883
886
884
oauth_provider .redirect_handler = mock_redirect_handler
887
885
888
- with pytest .raises (
889
- Exception , match = "State parameter is missing - possible CSRF attack"
890
- ):
886
+ with pytest .raises (Exception , match = "State parameter mismatch" ):
891
887
await oauth_provider ._perform_oauth_flow ()
892
888
893
889
@pytest .mark .anyio
You can’t perform that action at this time.
0 commit comments