(self, jws: PyJWS)
| 119 | jws.decode(jws_token, secret, algorithms=["HS384"]) |
| 120 | |
| 121 | def test_decode_works_with_unicode_token(self, jws: PyJWS) -> None: |
| 122 | secret = "secret" |
| 123 | unicode_jws = ( |
| 124 | "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9" |
| 125 | ".eyJoZWxsbyI6ICJ3b3JsZCJ9" |
| 126 | ".tvagLDLoaiJKxOKqpBXSEGy7SYSifZhjntgm9ctpyj8" |
| 127 | ) |
| 128 | |
| 129 | jws.decode(unicode_jws, secret, algorithms=["HS256"]) |
| 130 | |
| 131 | def test_decode_missing_segments_throws_exception(self, jws: PyJWS) -> None: |
| 132 | secret = "secret" |