(client, method, uri, headers, body)
| 10 | |
| 11 | |
| 12 | def encode_client_secret_basic(client, method, uri, headers, body): |
| 13 | text = f"{client.client_id}:{client.client_secret}" |
| 14 | auth = to_native(base64.b64encode(to_bytes(text, "latin1"))) |
| 15 | headers["Authorization"] = f"Basic {auth}" |
| 16 | return uri, headers, body |
| 17 | |
| 18 | |
| 19 | def encode_client_secret_post(client, method, uri, headers, body): |