MCPcopy
hub / github.com/authlib/authlib / prepare_raw_key

Function prepare_raw_key

authlib/jose/rfc7519/jwt.py:127–135  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

125
126
127def prepare_raw_key(raw):
128 if isinstance(raw, KeySet):
129 return raw
130
131 if isinstance(raw, str) and raw.startswith("{") and raw.endswith("}"):
132 raw = json_loads(raw)
133 elif isinstance(raw, (tuple, list)):
134 raw = {"keys": raw}
135 return raw
136
137
138def find_encode_key(key, header):

Callers 1

decodeMethod · 0.85

Calls 1

json_loadsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…