()
| 63 | |
| 64 | |
| 65 | def 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 | |
| 88 | def test_validate_at_hash(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…