<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pyjwt.git/jwt, branch master</title>
<subtitle>github.com: progrium/pyjwt.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/'/>
<entry>
<title>Export PyJWKClientConnectionError class (#887)</title>
<updated>2023-05-16T03:43:03+00:00</updated>
<author>
<name>David Davis</name>
<email>daviddavis@users.noreply.github.com</email>
</author>
<published>2023-05-16T03:43:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=1c272817a217c03534feb98004f3f6bd10512e07'/>
<id>1c272817a217c03534feb98004f3f6bd10512e07</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `as_dict` option to `Algorithm.to_jwk` (#881)</title>
<updated>2023-05-09T19:03:15+00:00</updated>
<author>
<name>Thitat Auareesuksakul</name>
<email>thitat@flux.ci</email>
</author>
<published>2023-05-09T19:03:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=c35e59b9f2c0bc0cf1a71b440a115d997f1e0535'/>
<id>c35e59b9f2c0bc0cf1a71b440a115d997f1e0535</id>
<content type='text'>
* Add `as_dict` option to `Algorithm.to_jwt`

* Update unit tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixup! Add `as_dict` option to `Algorithm.to_jwt`

* fixup! Add `as_dict` option to `Algorithm.to_jwt`

* fixup! Update unit tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix type errors

* Fix tox test errors

* Fix typing for Python 3.7

* Add OKP jwk tests

* Add `pragma: no cover` to method overloads

* Add pragma: no cover to exclude lines

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add `as_dict` option to `Algorithm.to_jwt`

* Update unit tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixup! Add `as_dict` option to `Algorithm.to_jwt`

* fixup! Add `as_dict` option to `Algorithm.to_jwt`

* fixup! Update unit tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix type errors

* Fix tox test errors

* Fix typing for Python 3.7

* Add OKP jwk tests

* Add `pragma: no cover` to method overloads

* Add pragma: no cover to exclude lines

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for issue #862 - ignore invalid keys in a jwks. (#863)</title>
<updated>2023-05-09T19:02:11+00:00</updated>
<author>
<name>Tim Waterson</name>
<email>51910265+timw6n@users.noreply.github.com</email>
</author>
<published>2023-05-09T19:02:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=6a273419949b68ddccbe3867fd4bd8680cacf097'/>
<id>6a273419949b68ddccbe3867fd4bd8680cacf097</id>
<content type='text'>
Co-authored-by: Tim Waterson &lt;tim.waterson@risilience.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Tim Waterson &lt;tim.waterson@risilience.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bump up version to 2.7.0</title>
<updated>2023-05-09T14:57:41+00:00</updated>
<author>
<name>José Padilla</name>
<email>jpadilla@users.noreply.github.com</email>
</author>
<published>2023-05-09T14:57:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=abeeacb99a30a5c2ae60c1696bb7ead012405349'/>
<id>abeeacb99a30a5c2ae60c1696bb7ead012405349</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add complete types to take all allowed keys into account (#873)</title>
<updated>2023-04-16T07:51:09+00:00</updated>
<author>
<name>Viicos</name>
<email>65306057+Viicos@users.noreply.github.com</email>
</author>
<published>2023-04-16T07:51:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=56b3d5633160e79e1f4c5c09023d68759cbf84a6'/>
<id>56b3d5633160e79e1f4c5c09023d68759cbf84a6</id>
<content type='text'>
* Use new style typing

* Fix type annotations to allow all keys

* Use string type annotations where required

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove outdated comment

* Ignore `if TYPE_CHECKING:` lines in coverage

* Remove duplicate test

* Fix mypy errors

* Update algorithms.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fully switch to modern annotations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update `pre-commit` mypy config

* Use Python 3.11 for mypy

* Update mypy Python version in `pyproject.toml`

* Few tests mypy fixes

* fix mypy errors on tests

* Fix key imports

* Remove unused import

* Fix randomly failing test

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;
Co-authored-by: Asif Saif Uddin &lt;auvipy@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use new style typing

* Fix type annotations to allow all keys

* Use string type annotations where required

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove outdated comment

* Ignore `if TYPE_CHECKING:` lines in coverage

* Remove duplicate test

* Fix mypy errors

* Update algorithms.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fully switch to modern annotations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update `pre-commit` mypy config

* Use Python 3.11 for mypy

* Update mypy Python version in `pyproject.toml`

* Few tests mypy fixes

* fix mypy errors on tests

* Fix key imports

* Remove unused import

* Fix randomly failing test

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;
Co-authored-by: Asif Saif Uddin &lt;auvipy@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add client connection error exception (#876)</title>
<updated>2023-04-10T05:49:38+00:00</updated>
<author>
<name>David Davis</name>
<email>daviddavis@users.noreply.github.com</email>
</author>
<published>2023-04-10T05:49:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=ba726444a6cee75af59feb8ea08294d0ac89bedb'/>
<id>ba726444a6cee75af59feb8ea08294d0ac89bedb</id>
<content type='text'>
This change adds a new `PyJWKClientConnectionError` exception which
helps to differentiate connection errors from other types of failures
when calling methods such as `get_signing_key_from_jwt()`. This allows
users to do things like retry the method if there's a connection issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds a new `PyJWKClientConnectionError` exception which
helps to differentiate connection errors from other types of failures
when calling methods such as `get_signing_key_from_jwt()`. This allows
users to do things like retry the method if there's a connection issue.</pre>
</div>
</content>
</entry>
<entry>
<title>Add a timeout for PyJWKClient requests (#875)</title>
<updated>2023-04-08T15:10:35+00:00</updated>
<author>
<name>David Davis</name>
<email>daviddavis@users.noreply.github.com</email>
</author>
<published>2023-04-08T15:10:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=a03e7b9224d0fa22ddf7729a863e3aecbe854728'/>
<id>a03e7b9224d0fa22ddf7729a863e3aecbe854728</id>
<content type='text'>
By default, the timeout for urlopen is socket._GLOBAL_DEFAULT_TIMEOUT
which is None (meaning that the request never times out):

https://docs.python.org/3/library/socket.html#socket.getdefaulttimeout

This change sets the timeout to 30 but also adds a timeout variable
users can set.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By default, the timeout for urlopen is socket._GLOBAL_DEFAULT_TIMEOUT
which is None (meaning that the request never times out):

https://docs.python.org/3/library/socket.html#socket.getdefaulttimeout

This change sets the timeout to 30 but also adds a timeout variable
users can set.</pre>
</div>
</content>
</entry>
<entry>
<title>Make `Algorithm` an abstract base class (#845)</title>
<updated>2023-03-07T02:22:39+00:00</updated>
<author>
<name>Viicos</name>
<email>65306057+Viicos@users.noreply.github.com</email>
</author>
<published>2023-03-07T02:22:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=777efa2f51249f63b0f95804230117723eca5d09'/>
<id>777efa2f51249f63b0f95804230117723eca5d09</id>
<content type='text'>
* Make `Algorithm` an abstract base class

This also removes some tests that are not relevant anymore

Raise `NotImplementedError` for `NoneAlgorithm`

* Use `hasattr` instead of `getattr`

* Only allow `dict` in `encode`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Make `Algorithm` an abstract base class

This also removes some tests that are not relevant anymore

Raise `NotImplementedError` for `NoneAlgorithm`

* Use `hasattr` instead of `getattr`

* Only allow `dict` in `encode`</pre>
</div>
</content>
</entry>
<entry>
<title>[pre-commit.ci] pre-commit autoupdate (#855)</title>
<updated>2023-02-07T10:09:41+00:00</updated>
<author>
<name>pre-commit-ci[bot]</name>
<email>66853113+pre-commit-ci[bot]@users.noreply.github.com</email>
</author>
<published>2023-02-07T10:09:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=9695f4c1d153ed8bf2b9ba0ef232c3a90889a1be'/>
<id>9695f4c1d153ed8bf2b9ba0ef232c3a90889a1be</id>
<content type='text'>
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Improve error messages when cryptography isn't installed (#846)</title>
<updated>2023-01-26T14:28:51+00:00</updated>
<author>
<name>Viicos</name>
<email>65306057+Viicos@users.noreply.github.com</email>
</author>
<published>2023-01-26T14:28:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pyjwt.git/commit/?id=b407c63b17f16e78c13c36d784d6e1822fee1147'/>
<id>b407c63b17f16e78c13c36d784d6e1822fee1147</id>
<content type='text'>
* Improve error messages when cryptography isn't installed

* Add test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Improve error messages when cryptography isn't installed

* Add test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] &lt;66853113+pre-commit-ci[bot]@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
</feed>
