MCPcopy
hub / github.com/authlib/authlib / test_generate_id_token

Function test_generate_id_token

tests/core/test_oidc/test_utils.py:35–47  ·  view source on GitHub ↗
(alg, key)

Source from the content-addressed store, hash-verified

33 ],
34)
35def test_generate_id_token(alg, key):
36 token = {"access_token": "test_token"}
37 user_info = UserInfo({"sub": "123"})
38
39 result = generate_id_token(
40 token=token,
41 user_info=user_info,
42 key=key,
43 iss="https://provider.test",
44 aud="client_id",
45 alg=alg,
46 )
47 assert result is not None

Callers

nothing calls this directly

Calls 2

UserInfoClass · 0.90
generate_id_tokenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…