MCPcopy
hub / github.com/authlib/authlib / create_id_token

Function create_id_token

tests/flask/test_oauth2/test_end_session.py:16–21  ·  view source on GitHub ↗

Create a signed ID token for testing.

(claims)

Source from the content-addressed store, hash-verified

14
15
16def create_id_token(claims):
17 """Create a signed ID token for testing."""
18 header = {"alg": "RS256"}
19 jwks = read_file_path("jwks_private.json")
20 key = KeySet.import_key_set(jwks)
21 return jwt.encode(header, claims, key)
22
23
24class MyEndSessionEndpoint(EndSessionEndpoint):

Calls 3

read_file_pathFunction · 0.90
import_key_setMethod · 0.80
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…