MCPcopy Create free account
hub / github.com/authlib/authlib / encode_client_secret_post

Function encode_client_secret_post

authlib/oauth2/auth.py:19–29  ·  view source on GitHub ↗
(client, method, uri, headers, body)

Source from the content-addressed store, hash-verified

17
18
19def encode_client_secret_post(client, method, uri, headers, body):
20 body = add_params_to_qs(
21 body or "",
22 [
23 ("client_id", client.client_id),
24 ("client_secret", client.client_secret or ""),
25 ],
26 )
27 if "Content-Length" in headers:
28 headers["Content-Length"] = str(len(body))
29 return uri, headers, body
30
31
32def encode_none(client, method, uri, headers, body):

Callers

nothing calls this directly

Calls 1

add_params_to_qsFunction · 0.90

Tested by

no test coverage detected