MCPcopy
hub / github.com/authlib/authlib / encode_client_secret_basic

Function encode_client_secret_basic

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

Source from the content-addressed store, hash-verified

10
11
12def 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
19def encode_client_secret_post(client, method, uri, headers, body):

Callers

nothing calls this directly

Calls 2

to_nativeFunction · 0.90
to_bytesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…