MCPcopy
hub / github.com/authlib/authlib / test_validate_azp

Function test_validate_azp

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

Source from the content-addressed store, hash-verified

63
64
65def test_validate_azp():
66 claims = CodeIDToken(
67 {
68 "iss": "1",
69 "sub": "1",
70 "aud": "1",
71 "exp": 10000,
72 "iat": 100,
73 },
74 {},
75 )
76 claims.params = {"client_id": "2"}
77 with pytest.raises(MissingClaimError):
78 claims.validate(1000)
79
80 claims["azp"] = "1"
81 with pytest.raises(InvalidClaimError):
82 claims.validate(1000)
83
84 claims["azp"] = "2"
85 claims.validate(1000)
86
87
88def test_validate_at_hash():

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…