()
| 20 | |
| 21 | |
| 22 | def 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 | |
| 35 | def test_validate_nonce(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…