()
| 23 | |
| 24 | |
| 25 | def test_validate_auth_time(): |
| 26 | claims = CodeIDToken( |
| 27 | {"iss": "1", "sub": "1", "aud": "1", "exp": 10000, "iat": 100}, {} |
| 28 | ) |
| 29 | claims.params = {"max_age": 100} |
| 30 | with pytest.raises(MissingClaimError): |
| 31 | claims.validate(1000) |
| 32 | |
| 33 | claims["auth_time"] = "foo" |
| 34 | with pytest.raises(InvalidClaimError): |
| 35 | claims.validate(1000) |
| 36 | |
| 37 | |
| 38 | def test_validate_nonce(): |
nothing calls this directly
no test coverage detected