diff options
author | Ajitomi, Daisuke <dajiaji@gmail.com> | 2021-03-19 07:05:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 18:05:21 -0400 |
commit | a87a7a1b6c6cfb0f831e96272e91378f7247d71c (patch) | |
tree | d962760621cc9da12f99fe81e278261ca5135e10 | |
parent | 82f98dcc2ac606d66924669abe81a322f37ef2a9 (diff) | |
download | pyjwt-a87a7a1b6c6cfb0f831e96272e91378f7247d71c.tar.gz |
Remove padding from JWK test data. (#628)
* Remove padding from JWK test data.
* Remove padding from test key string.
* Update CHANGELOG.
-rw-r--r-- | CHANGELOG.rst | 2 | ||||
-rw-r--r-- | tests/keys/jwk_ec_key_P-256.json | 6 | ||||
-rw-r--r-- | tests/keys/jwk_ec_pub_P-256.json | 4 | ||||
-rw-r--r-- | tests/test_algorithms.py | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 42864cb..8d4e32c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,6 +15,8 @@ Changed Fixed ~~~~~ +- Remove padding from JWK test data. `#628 <https://github.com/jpadilla/pyjwt/pull/628>`__ + Added ~~~~~ diff --git a/tests/keys/jwk_ec_key_P-256.json b/tests/keys/jwk_ec_key_P-256.json index 7c67b24..e936e26 100644 --- a/tests/keys/jwk_ec_key_P-256.json +++ b/tests/keys/jwk_ec_key_P-256.json @@ -2,7 +2,7 @@ "kty": "EC", "kid": "bilbo.baggins.256@hobbiton.example", "crv": "P-256", - "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4=", - "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU=", - "d": "9GJquUJf57a9sev-u8-PoYlIezIPqI_vGpIaiu4zyZk=" + "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4", + "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU", + "d": "9GJquUJf57a9sev-u8-PoYlIezIPqI_vGpIaiu4zyZk" } diff --git a/tests/keys/jwk_ec_pub_P-256.json b/tests/keys/jwk_ec_pub_P-256.json index 13db2b3..029c6db 100644 --- a/tests/keys/jwk_ec_pub_P-256.json +++ b/tests/keys/jwk_ec_pub_P-256.json @@ -2,6 +2,6 @@ "kty": "EC", "kid": "bilbo.baggins.256@hobbiton.example", "crv": "P-256", - "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4=", - "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU=" + "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4", + "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU" } diff --git a/tests/test_algorithms.py b/tests/test_algorithms.py index 319a38d..0072e4a 100644 --- a/tests/test_algorithms.py +++ b/tests/test_algorithms.py @@ -185,8 +185,8 @@ class TestAlgorithms: valid_points = { "P-256": { - "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4=", - "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU=", + "x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4", + "y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU", }, "P-384": { "x": "IDC-5s6FERlbC4Nc_4JhKW8sd51AhixtMdNUtPxhRFP323QY6cwWeIA3leyZhz-J", |