()
| 122 | |
| 123 | |
| 124 | def test_code_challenge(): |
| 125 | sess = AsyncOAuth2Client("foo", code_challenge_method="S256") |
| 126 | |
| 127 | url = "https://provider.test/authorize" |
| 128 | auth_url, _ = sess.create_authorization_url(url, code_verifier=generate_token(48)) |
| 129 | assert "code_challenge=" in auth_url |
| 130 | assert "code_challenge_method=S256" in auth_url |
| 131 | |
| 132 | |
| 133 | def test_token_from_fragment(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…