Sourced from pyjwt's releases.
2.7.0
What's Changed
- Add classifier for Python 3.11 by
@eseifert
in jpadilla/pyjwt#818- Add
Algorithm.compute_hash_digest
and use it to implement at_hash validation example by@sirosen
in jpadilla/pyjwt#775- fix: use datetime.datetime.timestamp function to have a milliseconds by
@daillouf
in jpadilla/pyjwt#821- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#825- Custom header configuration in jwk client by
@thundercat1
in jpadilla/pyjwt#823- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#828- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#833- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#835- Add PyJWT._{de,en}code_payload hooks by
@akx
in jpadilla/pyjwt#829- Add
sort_headers
parameter toapi_jwt.encode
by@evroon
in jpadilla/pyjwt#832- Make mypy configuration stricter and improve typing by
@akx
in jpadilla/pyjwt#830- Bump actions/stale from 6 to 7 by
@dependabot
in jpadilla/pyjwt#840- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#838- Add more types by
@Viicos
in jpadilla/pyjwt#843- Differentiate between two errors by
@irdkwmnsb
in jpadilla/pyjwt#809- Fix
_validate_iat
validation by@Viicos
in jpadilla/pyjwt#847- Improve error messages when cryptography isn't installed by
@Viicos
in jpadilla/pyjwt#846- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#852- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#855- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#859- Make
Algorithm
an abstract base class by@Viicos
in jpadilla/pyjwt#845- docs: correct mistake in the changelog about verify param by
@gbillig
in jpadilla/pyjwt#866- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#868- Bump actions/stale from 7 to 8 by
@dependabot
in jpadilla/pyjwt#872- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#874- Add a timeout for PyJWKClient requests by
@daviddavis
in jpadilla/pyjwt#875- Add client connection error exception by
@daviddavis
in jpadilla/pyjwt#876- Add complete types to take all allowed keys into account by
@Viicos
in jpadilla/pyjwt#873- [pre-commit.ci] pre-commit autoupdate by
@pre-commit-ci
in jpadilla/pyjwt#878- Build and upload PyPI package by
@jpadilla
in jpadilla/pyjwt#884- Fix for issue #862 - ignore invalid keys in a jwks. by
@timw6n
in jpadilla/pyjwt#863- Add
as_dict
option toAlgorithm.to_jwk
by@fluxth
in jpadilla/pyjwt#881New Contributors
@eseifert
made their first contribution in jpadilla/pyjwt#818@daillouf
made their first contribution in jpadilla/pyjwt#821@thundercat1
made their first contribution in jpadilla/pyjwt#823@evroon
made their first contribution in jpadilla/pyjwt#832@Viicos
made their first contribution in jpadilla/pyjwt#843@irdkwmnsb
made their first contribution in jpadilla/pyjwt#809@gbillig
made their first contribution in jpadilla/pyjwt#866@daviddavis
made their first contribution in jpadilla/pyjwt#875@timw6n
made their first contribution in jpadilla/pyjwt#863@fluxth
made their first contribution in jpadilla/pyjwt#881Full Changelog: https://github.com/jpadilla/pyjwt/compare/2.6.0...2.7.0
Sourced from pyjwt's changelog.
v2.7.0 <https://github.com/jpadilla/pyjwt/compare/2.6.0...2.7.0>
__Changed
- Changed the error message when the token audience doesn't match the expected audience by @irdkwmnsb `[#809](https://github.com/jpadilla/pyjwt/issues/809) <https://github.com/jpadilla/pyjwt/pull/809>`__ - Improve error messages when cryptography isn't installed by @Viicos in `[#846](https://github.com/jpadilla/pyjwt/issues/846) <https://github.com/jpadilla/pyjwt/pull/846>`__ - Make `Algorithm` an abstract base class by @Viicos in `[#845](https://github.com/jpadilla/pyjwt/issues/845) <https://github.com/jpadilla/pyjwt/pull/845>`__ - ignore invalid keys in a jwks by @timw6n in `[#863](https://github.com/jpadilla/pyjwt/issues/863) <https://github.com/jpadilla/pyjwt/pull/863>`__
Fixed
- Add classifier for Python 3.11 by @eseifert in `[#818](https://github.com/jpadilla/pyjwt/issues/818) <https://github.com/jpadilla/pyjwt/pull/818>`__ - Fix ``_validate_iat`` validation by @Viicos in `[#847](https://github.com/jpadilla/pyjwt/issues/847) <https://github.com/jpadilla/pyjwt/pull/847>`__ - fix: use datetime.datetime.timestamp function to have a milliseconds by @daillouf `[#821](https://github.com/jpadilla/pyjwt/issues/821) <https://github.com/jpadilla/pyjwt/pull/821>`__ - docs: correct mistake in the changelog about verify param by @gbillig in `[#866](https://github.com/jpadilla/pyjwt/issues/866) <https://github.com/jpadilla/pyjwt/pull/866>`__ Added
- Add
compute_hash_digest
as a method ofAlgorithm
objects, which uses the underlying hash algorithm to compute a digest. If there is no appropriate hash algorithm, aNotImplementedError
will be raised in[#775](https://github.com/jpadilla/pyjwt/issues/775) <https://github.com/jpadilla/pyjwt/pull/775>
__- Add optional
headers
argument toPyJWKClient
. If provided, the headers will be included in requests that the client uses when fetching the JWK set by@thundercat1
in[#823](https://github.com/jpadilla/pyjwt/issues/823) <https://github.com/jpadilla/pyjwt/pull/823>
__- Add PyJWT._{de,en}code_payload hooks by
@akx
in[#829](https://github.com/jpadilla/pyjwt/issues/829) <https://github.com/jpadilla/pyjwt/pull/829>
__- Add
sort_headers
parameter toapi_jwt.encode
by@evroon
in[#832](https://github.com/jpadilla/pyjwt/issues/832) <https://github.com/jpadilla/pyjwt/pull/832>
__- Make mypy configuration stricter and improve typing by
@akx
in[#830](https://github.com/jpadilla/pyjwt/issues/830) <https://github.com/jpadilla/pyjwt/pull/830>
__- Add more types by
@Viicos
in[#843](https://github.com/jpadilla/pyjwt/issues/843) <https://github.com/jpadilla/pyjwt/pull/843>
__- Add a timeout for PyJWKClient requests by
@daviddavis
in[#875](https://github.com/jpadilla/pyjwt/issues/875) <https://github.com/jpadilla/pyjwt/pull/875>
__- Add client connection error exception by
@daviddavis
in[#876](https://github.com/jpadilla/pyjwt/issues/876) <https://github.com/jpadilla/pyjwt/pull/876>
__- Add complete types to take all allowed keys into account by
@Viicos
in[#873](https://github.com/jpadilla/pyjwt/issues/873) <https://github.com/jpadilla/pyjwt/pull/873>
__- Add
as_dict
option toAlgorithm.to_jwk
by@fluxth
in[#881](https://github.com/jpadilla/pyjwt/issues/881) <https://github.com/jpadilla/pyjwt/pull/881>
__
d7c54db
chore: update readmec35e59b
Add as_dict
option to Algorithm.to_jwk
(#881)6a27341
Fix for issue #862 - ignore invalid keys in a jwks. (#863)abeeacb
bump up version to 2.7.0d8b1242
Update pypi-package.yml6d1c3d3
Update pypi-package.yml81b9ef4
Create pypi-package.yml (#884)97711b1
[pre-commit.ci] pre-commit autoupdate (#878)56b3d56
Add complete types to take all allowed keys into account (#873)ba72644
Add client connection error exception (#876)