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)
| 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 |
no test coverage detected