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

Function test_code_challenge

tests/clients/test_requests/test_oauth2_session.py:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122def test_code_challenge():
123 sess = OAuth2Session(client_id="foo", code_challenge_method="S256")
124
125 url = "https://provider.test/authorize"
126 auth_url, _ = sess.create_authorization_url(url, code_verifier=generate_token(48))
127 assert "code_challenge" in auth_url
128 assert "code_challenge_method=S256" in auth_url
129
130
131def test_token_from_fragment(token):

Callers

nothing calls this directly

Calls 3

OAuth2SessionClass · 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…