()
| 97 | |
| 98 | |
| 99 | def test_code_challenge(): |
| 100 | sess = OAuth2Client("foo", code_challenge_method="S256") |
| 101 | |
| 102 | url = "https://provider.test/authorize" |
| 103 | auth_url, _ = sess.create_authorization_url(url, code_verifier=generate_token(48)) |
| 104 | assert "code_challenge=" in auth_url |
| 105 | assert "code_challenge_method=S256" in auth_url |
| 106 | |
| 107 | |
| 108 | def test_token_from_fragment(): |
nothing calls this directly
no test coverage detected