MCPcopy
hub / github.com/authlib/authlib / test_validate_auth_time

Function test_validate_auth_time

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

Source from the content-addressed store, hash-verified

20
21
22def test_validate_auth_time():
23 claims = CodeIDToken(
24 {"iss": "1", "sub": "1", "aud": "1", "exp": 10000, "iat": 100}, {}
25 )
26 claims.params = {"max_age": 100}
27 with pytest.raises(MissingClaimError):
28 claims.validate(1000)
29
30 claims["auth_time"] = "foo"
31 with pytest.raises(InvalidClaimError):
32 claims.validate(1000)
33
34
35def test_validate_nonce():

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…