MCPcopy
hub / github.com/authlib/authlib / loads

Function loads

authlib/jose/jwk.py:6–11  ·  view source on GitHub ↗
(obj, kid=None)

Source from the content-addressed store, hash-verified

4
5
6def loads(obj, kid=None):
7 deprecate("Please use ``JsonWebKey`` directly.")
8 key_set = JsonWebKey.import_key_set(obj)
9 if key_set:
10 return key_set.find_by_kid(kid)
11 return JsonWebKey.import_key(obj)
12
13
14def dumps(key, kty=None, **params):

Callers

nothing calls this directly

Calls 4

deprecateFunction · 0.90
import_key_setMethod · 0.80
find_by_kidMethod · 0.80
import_keyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…