()
| 86 | |
| 87 | |
| 88 | def test_validate_at_hash(): |
| 89 | claims = CodeIDToken( |
| 90 | { |
| 91 | "iss": "1", |
| 92 | "sub": "1", |
| 93 | "aud": "1", |
| 94 | "exp": 10000, |
| 95 | "iat": 100, |
| 96 | "at_hash": "a", |
| 97 | }, |
| 98 | {}, |
| 99 | ) |
| 100 | claims.params = {"access_token": "a"} |
| 101 | |
| 102 | # invalid alg will raise too |
| 103 | claims.header = {"alg": "HS222"} |
| 104 | with pytest.raises(InvalidClaimError): |
| 105 | claims.validate(1000) |
| 106 | |
| 107 | claims.header = {"alg": "HS256"} |
| 108 | with pytest.raises(InvalidClaimError): |
| 109 | claims.validate(1000) |
| 110 | |
| 111 | |
| 112 | def test_implicit_id_token(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…