MCPcopy
hub / github.com/authlib/authlib / test_code_challenge

Function test_code_challenge

tests/clients/test_httpx/test_oauth2_client.py:97–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96
97def test_code_challenge():
98 sess = OAuth2Client("foo", code_challenge_method="S256")
99
100 url = "https://provider.test/authorize"
101 auth_url, _ = sess.create_authorization_url(url, code_verifier=generate_token(48))
102 assert "code_challenge=" in auth_url
103 assert "code_challenge_method=S256" in auth_url
104
105
106def test_token_from_fragment():

Callers

nothing calls this directly

Calls 3

OAuth2ClientClass · 0.90
generate_tokenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…