MCPcopy
hub / github.com/authlib/authlib / test_essential_claims

Function test_essential_claims

tests/core/test_oidc/test_core.py:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_essential_claims():
13 claims = CodeIDToken({}, {})
14 with pytest.raises(MissingClaimError):
15 claims.validate()
16 claims = CodeIDToken(
17 {"iss": "1", "sub": "1", "aud": "1", "exp": 10000, "iat": 100}, {}
18 )
19 claims.validate(1000)
20
21
22def test_validate_auth_time():

Callers

nothing calls this directly

Calls 2

CodeIDTokenClass · 0.90
validateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…