MCPcopy
hub / github.com/authlib/authlib / resolve_client_private_key

Method resolve_client_private_key

authlib/oidc/core/grants/_legacy.py:10–24  ·  view source on GitHub ↗

Resolve the client private key for encoding ``id_token`` Developers MUST implement this method in subclass, e.g.:: import json from joserfc.jwk import KeySet def resolve_client_private_key(self, client): with open(jwks_file_path) as f:

(self, client)

Source from the content-addressed store, hash-verified

8 DEFAULT_EXPIRES_IN = 3600
9
10 def resolve_client_private_key(self, client):
11 """Resolve the client private key for encoding ``id_token`` Developers
12 MUST implement this method in subclass, e.g.::
13
14 import json
15 from joserfc.jwk import KeySet
16
17
18 def resolve_client_private_key(self, client):
19 with open(jwks_file_path) as f:
20 data = json.load(f)
21 return KeySet.import_key_set(data)
22 """
23 config = self._compatible_resolve_jwt_config(None, client)
24 return config["key"]
25
26 def get_client_algorithm(self, client):
27 """Return the algorithm for encoding ``id_token``. By default, it will

Callers 2

encode_id_tokenMethod · 0.80

Calls 1

Tested by

no test coverage detected