()
| 133 | |
| 134 | |
| 135 | def test_code_challenge(): |
| 136 | sess = OAuth2Session(client_id="foo", code_challenge_method="S256") |
| 137 | |
| 138 | url = "https://provider.test/authorize" |
| 139 | auth_url, _ = sess.create_authorization_url(url, code_verifier=generate_token(48)) |
| 140 | assert "code_challenge" in auth_url |
| 141 | assert "code_challenge_method=S256" in auth_url |
| 142 | |
| 143 | |
| 144 | def test_token_from_fragment(token): |
nothing calls this directly
no test coverage detected