MCPcopy Create free account
hub / github.com/authlib/authlib / verifier

Function verifier

tests/clients/test_requests/test_assertion_session.py:25–31  ·  view source on GitHub ↗
(r, **kwargs)

Source from the content-addressed store, hash-verified

23
24def test_refresh_token(token):
25 def verifier(r, **kwargs):
26 resp = mock.MagicMock()
27 resp.status_code = 200
28 if r.url == "https://provider.test/token":
29 assert "assertion=" in r.body
30 resp.json = lambda: token
31 return resp
32
33 sess = AssertionSession(
34 "https://provider.test/token",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected