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