Skip to content

Commit

Permalink
Remove padding from JWK test data. (#628)
Browse files Browse the repository at this point in the history
* Remove padding from JWK test data.

* Remove padding from test key string.

* Update CHANGELOG.
  • Loading branch information
dajiaji authored Mar 18, 2021
1 parent 82f98dc commit a87a7a1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Changed
Fixed
~~~~~

- Remove padding from JWK test data. `#628 <https://github.com/jpadilla/pyjwt/pull/628>`__

Added
~~~~~

Expand Down
6 changes: 3 additions & 3 deletions tests/keys/jwk_ec_key_P-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"kty": "EC",
"kid": "[email protected]",
"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"
}
4 changes: 2 additions & 2 deletions tests/keys/jwk_ec_pub_P-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"kty": "EC",
"kid": "[email protected]",
"crv": "P-256",
"x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4=",
"y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU="
"x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4",
"y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU"
}
4 changes: 2 additions & 2 deletions tests/test_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def test_ec_jwk_fails_on_invalid_json(self):

valid_points = {
"P-256": {
"x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4=",
"y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU=",
"x": "PTTjIY84aLtaZCxLTrG_d8I0G6YKCV7lg8M4xkKfwQ4",
"y": "ank6KA34vv24HZLXlChVs85NEGlpg2sbqNmR_BcgyJU",
},
"P-384": {
"x": "IDC-5s6FERlbC4Nc_4JhKW8sd51AhixtMdNUtPxhRFP323QY6cwWeIA3leyZhz-J",
Expand Down

0 comments on commit a87a7a1

Please sign in to comment.