()
| 120 | |
| 121 | |
| 122 | def 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 | |
| 131 | def test_token_from_fragment(token): |
nothing calls this directly
no test coverage detected
searching dependent graphs…