INNER CODE UNIT · Python
test_authorization_code_injects_the_secret_and_pins_the_redirect
Kounex/obs_blade · tool/kick_auth_proxy/test_proxy.py:17
def test_authorization_code_injects_the_secret_and_pins_the_redirect(self):
form = proxy.build_upstream(
{
"grant_type": "authorization_code",
"client_id": "ignored",
"client_secret": "ignored",
"code": "code-1",
"code_verifier": "verifier-1",
"redirect_uri": "https://kick-auth.kounex.com/oauth/callback",
}
)
self.assertEqual(form["client_id"], "client-1")
self.assertEqual(form["client_secret"], "secret-1")
self.assertEqual(
form["redirect_uri"], "https://kick-auth.kounex.com/oauth/callback"
)
self.assertNotIn("ignored", form.values())