Skip to content

Bump pyjwt from 1.6.4 to 2.1.0

Norman Ziegner requested to merge dependabot/pip/pyjwt-2.1.0 into master

Bumps pyjwt from 1.6.4 to 2.1.0.

Release notes

Sourced from pyjwt's releases.

2.1.0

Changelog

Changed

  • Allow claims validation without making JWT signature validation mandatory. #608

Fixed

  • Remove padding from JWK test data. #628
  • Make kty mandatory in JWK to be compliant with RFC7517. #624
  • Allow JWK without alg to be compliant with RFC7517. #624
  • Allow to verify with private key on ECAlgorithm, as well as on Ed25519Algorithm. #645

Added

  • Add caching by default to PyJWKClient #611
  • Add missing exceptions.InvalidKeyError to jwt module __init__ imports #620
  • Add support for ES256K algorithm #629
  • Add from_jwk() to Ed25519Algorithm #621
  • Add to_jwk() to Ed25519Algorithm #643
  • Export PyJWK and PyJWKSet #652

2.0.1

Changelog

Changed

  • Rename CHANGELOG.md to CHANGELOG.rst and include in docs #597

Fixed

  • Fix from_jwk() for all algorithms #598

v2.0.0

Highlights

Introduce better experience for JWKs

Introduce PyJWK, PyJWKSet, and PyJWKClient.

import jwt
from jwt import PyJWKClient

token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik5FRTFRVVJCT1RNNE16STVSa0ZETlRZeE9UVTFNRGcyT0Rnd1EwVXpNVGsxUWpZeVJrUkZRdyJ9.eyJpc3MiOiJodHRwczovL2Rldi04N2V2eDlydS5hdXRoMC5jb20vIiwic3ViIjoiYVc0Q2NhNzl4UmVMV1V6MGFFMkg2a0QwTzNjWEJWdENAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vZXhwZW5zZXMtYXBpIiwiaWF0IjoxNTcyMDA2OTU0LCJleHAiOjE1NzIwMDY5NjQsImF6cCI6ImFXNENjYTc5eFJlTFdVejBhRTJINmtEME8zY1hCVnRDIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.PUxE7xn52aTCohGiWoSdMBZGiYAHwE5FYie0Y1qUT68IHSTXwXVd6hn02HTah6epvHHVKA2FqcFZ4GGv5VTHEvYpeggiiZMgbxFrmTEY0csL6VNkX1eaJGcuehwQCRBKRLL3zKmA5IKGy5GeUnIbpPHLHDxr-GXvgFzsdsyWlVQvPX2xjeaQ217r2PtxDeqjlf66UYl6oY6AqNS8DH3iryCvIfCcybRZkc_hdy-6ZMoKT6Piijvk_aXdm7-QQqKJFHLuEqrVSOuBqqiNfVrG27QzAPuPOxvfXTVLXL2jek5meH6n-VWgrBdoMFH93QEszEDowDAEhQPHVs0xj7SIzA"
kid = "NEE1QURBOTM4MzI5RkFDNTYxOTU1MDg2ODgwQ0UzMTk1QjYyRkRFQw"
url = "https://dev-87evx9ru.auth0.com/.well-known/jwks.json"

jwks_client = PyJWKClient(url)
</tr></table> 

... (truncated)

Changelog

Sourced from pyjwt's changelog.

v2.1.0 <https://github.com/jpadilla/pyjwt/compare/2.0.1...2.1.0>__

Changed


- Allow claims validation without making JWT signature validation mandatory. `[#608](https://github.com/jpadilla/pyjwt/issues/608) <https://github.com/jpadilla/pyjwt/pull/608>`__

Fixed
~~~~~

- Remove padding from JWK test data. `[#628](https://github.com/jpadilla/pyjwt/issues/628) <https://github.com/jpadilla/pyjwt/pull/628>`__
- Make `kty` mandatory in JWK to be compliant with RFC7517. `[#624](https://github.com/jpadilla/pyjwt/issues/624) <https://github.com/jpadilla/pyjwt/pull/624>`__
- Allow JWK without `alg` to be compliant with RFC7517. `[#624](https://github.com/jpadilla/pyjwt/issues/624) <https://github.com/jpadilla/pyjwt/pull/624>`__
- Allow to verify with private key on ECAlgorithm, as well as on Ed25519Algorithm. `[#645](https://github.com/jpadilla/pyjwt/issues/645) <https://github.com/jpadilla/pyjwt/pull/645>`__

Added
~~~~~

- Add caching by default to PyJWKClient `[#611](https://github.com/jpadilla/pyjwt/issues/611) <https://github.com/jpadilla/pyjwt/pull/611>`__
- Add missing exceptions.InvalidKeyError to jwt module __init__ imports `[#620](https://github.com/jpadilla/pyjwt/issues/620) <https://github.com/jpadilla/pyjwt/pull/620>`__
- Add support for ES256K algorithm `[#629](https://github.com/jpadilla/pyjwt/issues/629) <https://github.com/jpadilla/pyjwt/pull/629>`__
- Add `from_jwk()` to Ed25519Algorithm `[#621](https://github.com/jpadilla/pyjwt/issues/621) <https://github.com/jpadilla/pyjwt/pull/621>`__
- Add `to_jwk()` to Ed25519Algorithm `[#643](https://github.com/jpadilla/pyjwt/issues/643) <https://github.com/jpadilla/pyjwt/pull/643>`__
- Export `PyJWK` and `PyJWKSet` `[#652](https://github.com/jpadilla/pyjwt/issues/652) <https://github.com/jpadilla/pyjwt/pull/652>`__

`v2.0.1 <https://github.com/jpadilla/pyjwt/compare/2.0.0...2.0.1>`__
--------------------------------------------------------------------

Changed
  • Rename CHANGELOG.md to CHANGELOG.rst and include in docs [#597](https://github.com/jpadilla/pyjwt/issues/597) <https://github.com/jpadilla/pyjwt/pull/597>__

Fixed


- Fix `from_jwk()` for all algorithms `[#598](https://github.com/jpadilla/pyjwt/issues/598) <https://github.com/jpadilla/pyjwt/pull/598>`__

Added

v2.0.0 <https://github.com/jpadilla/pyjwt/compare/1.7.1...2.0.0>__

Changed


Drop support for Python 2 and Python 3.0-3.5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</tr></table> 

... (truncated)

Commits
  • 79c23d7 Bump up version to v2.1.0 (#653)
  • c7f9ac5 Export PyJWK and PyJWKSet (#652)
  • 816cbe5 [pre-commit.ci] pre-commit autoupdate (#650)
  • 0da4223 Fix incorrect documentation for jwt (#651)
  • 545931d Add to_jwk to Ed25519Algorithm. (#642) (#643)
  • 7f6a236 Clearly warn against computing algorithms from the token’s alg (#647)
  • fb86f9d Allow to verify with private key on ECAlgorithm, as well as on Ed25519Algorit...
  • bcd5728 changed 'paramenter' to 'parameter' (#638)
  • fc7a708 [pre-commit.ci] pre-commit autoupdate (#640)
  • f02fa0d [pre-commit.ci] pre-commit autoupdate (#636)
  • Additional commits viewable in compare view

Merge request reports