MCPcopy
hub / github.com/authlib/authlib / test_mis_match_state

Function test_mis_match_state

tests/clients/test_requests/test_oauth2_session.py:297–304  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

295
296
297def test_mis_match_state(token):
298 sess = OAuth2Session("foo")
299 with pytest.raises(MismatchingStateException):
300 sess.fetch_token(
301 "https://provider.test/token",
302 authorization_response="https://provider.test/no-state?code=abc",
303 state="somestate",
304 )
305
306
307def test_token_status():

Callers

nothing calls this directly

Calls 2

OAuth2SessionClass · 0.90
fetch_tokenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…