-
-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decode with PyJWK #886
Decode with PyJWK #886
Conversation
jwt/api_jwk.py
Outdated
@@ -52,6 +52,7 @@ def __init__(self, jwk_data: JWKDict, algorithm: str | None = None) -> None: | |||
if not has_crypto and algorithm in requires_cryptography: | |||
raise PyJWKError(f"{algorithm} requires 'cryptography' to be installed.") | |||
|
|||
self.algorithm = algorithm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imo having both self.algorithm
and self.Algorithm
may be too similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understandable. Any suggestions? self.algorithm_name
? self.alg
? (To match the JWK field)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.algorithm_name
seems alright, actually I think self.Algorithm
is the one being wrong, and self.algorithm_class
or something similar might be better. Anyway better not breaking any public attribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1 on @Viicos's suggestion.
for more information, see https://pre-commit.ci
Ready for review 👍 |
restarted the CI, lets hope all are green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not has_crypto and algorithm in requires_cryptography:
raise PyJWKError(f"{algorithm} requires 'cryptography' to be installed.")
E jwt.exceptions.PyJWKError: ES256 requires 'cryptography' to be installed.
jwt/api_jwk.py:53: PyJWKError
=========================== short test summary info ============================
SKIPPED [1] tests/test_advisory.py:27: Requires cryptography library installed
Okay, I fixed tests w/o cryptography installed. |
Ping. Any more feedback on this? @auvipy, it looks like you need to approve my changes. |
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/releases">pyjwt's releases</a>.</em></p> <blockquote> <h2>2.9.0</h2> <h2>What's Changed</h2> <ul> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/905">jpadilla/pyjwt#905</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/909">jpadilla/pyjwt#909</a></li> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/910">jpadilla/pyjwt#910</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/911">jpadilla/pyjwt#911</a></li> <li>Fix an unnecessary str concat by <a href="https://github.com/sirosen"><code>@sirosen</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/904">jpadilla/pyjwt#904</a></li> <li>Update jwt-api to accept either a string or list of strings for issuer validation by <a href="https://github.com/mattpollak"><code>@mattpollak</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/916">jpadilla/pyjwt#916</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/917">jpadilla/pyjwt#917</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/922">jpadilla/pyjwt#922</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/926">jpadilla/pyjwt#926</a></li> <li>Bump actions/setup-python from 4 to 5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/931">jpadilla/pyjwt#931</a></li> <li>Bump hynek/build-and-inspect-python-package from 1 to 2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/935">jpadilla/pyjwt#935</a></li> <li>docs/api: document strict_aud on decode_complete by <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/923">jpadilla/pyjwt#923</a></li> <li>chore: fix docs step by <a href="https://github.com/jpadilla"><code>@jpadilla</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/950">jpadilla/pyjwt#950</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/953">jpadilla/pyjwt#953</a></li> <li>Add coverage and improve performance of is_ssh_key by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li>Decode with PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li>Remove an unused variable from an example code block by <a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li>Handle load_pem_public_key ValueError by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/960">jpadilla/pyjwt#960</a></li> <li>Raise exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/965">jpadilla/pyjwt#965</a></li> <li>Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> by <a href="https://github.com/benvdh"><code>@benvdh</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/mattpollak"><code>@mattpollak</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li><a href="https://github.com/bdraco"><code>@bdraco</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li><a href="https://github.com/luhn"><code>@luhn</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li><a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li><a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li><a href="https://github.com/tobloef"><code>@tobloef</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li><a href="https://github.com/benvdh"><code>@benvdh</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst">pyjwt's changelog</a>.</em></p> <blockquote> <h2><code>v2.9.0 <https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0></code>__</h2> <p>Changed</p> <pre><code> - Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) <https://github.com/jpadilla/pyjwt/pull/910>`__ - Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) <https://github.com/jpadilla/pyjwt/pull/913>`__ <p>Fixed</p> <pre><code> - Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &lt;https://github.com/jpadilla/pyjwt/pull/904&gt;`__ - Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &lt;https://github.com/jpadilla/pyjwt/pull/923&gt;`__ - Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &lt;https://github.com/jpadilla/pyjwt/pull/950&gt;`__ - Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &lt;https://github.com/jpadilla/pyjwt/pull/958&gt;`__ Added </code></pre> <ul> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <code>[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;</code>__</li> <li>Improve performance of <code>is_ssh_key</code> + add unit test by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <code>[#940](jpadilla/pyjwt#940) &lt;https://github.com/jpadilla/pyjwt/pull/940&gt;</code>__</li> <li>Allow <code>jwt.decode()</code> to accept a PyJWK object by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Make <code>algorithm_name</code> attribute available on PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Raise <code>InvalidKeyError</code> on invalid PEM keys to be compatible with cryptography 42.x.x by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <code>[#952](jpadilla/pyjwt#952) &lt;https://github.com/jpadilla/pyjwt/pull/952&gt;</code>__</li> <li>Raise an exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <code>&lt;https://github.com/jpadilla/pyjwt/pull/963&gt;</code>__ </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jpadilla/pyjwt/commit/868cf4ab2ca5a0a39da40e5a14dd740b203662b2"><code>868cf4a</code></a> Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/967">#967</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/304a3df14262aab01407803f97bd26c3eb2c4b10"><code>304a3df</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/965">#965</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/527fec277e8215a197f8facd3778b359043704ef"><code>527fec2</code></a> Raise exception when required cryptography dependency is missing (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/963">#963</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/18a50bedb03e894845420b95a58ce933b135659c"><code>18a50be</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/960">#960</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/4703f8780e532ef932f4a493b642ac5a6c1be53c"><code>4703f87</code></a> Handle load_pem_public_key ValueError (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/952">#952</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/9dc732f6444a0246e8d5c344110d6246bff89495"><code>9dc732f</code></a> Update usage.rst (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/958">#958</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/ab8176abe21e550dbc1c9a6bb7e78ad80853bfb1"><code>ab8176a</code></a> Decode with PyJWK (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/886">#886</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/c0a071dc0178542ad24e5a7b2e6103ba1d4c0517"><code>c0a071d</code></a> chore: update actions/download-artifact</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/2afbe32b0dbbcdb272a085d95ac5fdc609493d04"><code>2afbe32</code></a> Add coverage and improve performance of is_ssh_key (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/940">#940</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/97345a7635bc24d1eb59ab8d0c73389f38187472"><code>97345a7</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/953">#953</a>)</li> <li>Additional commits viewable in <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyjwt&package-manager=pip&previous-version=2.8.0&new-version=2.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/releases">pyjwt's releases</a>.</em></p> <blockquote> <h2>2.9.0</h2> <h2>What's Changed</h2> <ul> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/905">jpadilla/pyjwt#905</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/909">jpadilla/pyjwt#909</a></li> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/910">jpadilla/pyjwt#910</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/911">jpadilla/pyjwt#911</a></li> <li>Fix an unnecessary str concat by <a href="https://github.com/sirosen"><code>@sirosen</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/904">jpadilla/pyjwt#904</a></li> <li>Update jwt-api to accept either a string or list of strings for issuer validation by <a href="https://github.com/mattpollak"><code>@mattpollak</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/916">jpadilla/pyjwt#916</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/917">jpadilla/pyjwt#917</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/922">jpadilla/pyjwt#922</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/926">jpadilla/pyjwt#926</a></li> <li>Bump actions/setup-python from 4 to 5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/931">jpadilla/pyjwt#931</a></li> <li>Bump hynek/build-and-inspect-python-package from 1 to 2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/935">jpadilla/pyjwt#935</a></li> <li>docs/api: document strict_aud on decode_complete by <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/923">jpadilla/pyjwt#923</a></li> <li>chore: fix docs step by <a href="https://github.com/jpadilla"><code>@jpadilla</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/950">jpadilla/pyjwt#950</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/953">jpadilla/pyjwt#953</a></li> <li>Add coverage and improve performance of is_ssh_key by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li>Decode with PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li>Remove an unused variable from an example code block by <a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li>Handle load_pem_public_key ValueError by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/960">jpadilla/pyjwt#960</a></li> <li>Raise exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/965">jpadilla/pyjwt#965</a></li> <li>Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> by <a href="https://github.com/benvdh"><code>@benvdh</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/mattpollak"><code>@mattpollak</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li><a href="https://github.com/bdraco"><code>@bdraco</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li><a href="https://github.com/luhn"><code>@luhn</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li><a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li><a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li><a href="https://github.com/tobloef"><code>@tobloef</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li><a href="https://github.com/benvdh"><code>@benvdh</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst">pyjwt's changelog</a>.</em></p> <blockquote> <h2><code>v2.9.0 <https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0></code>__</h2> <p>Changed</p> <pre><code> - Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) <https://github.com/jpadilla/pyjwt/pull/910>`__ - Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) <https://github.com/jpadilla/pyjwt/pull/913>`__ <p>Fixed</p> <pre><code> - Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &lt;https://github.com/jpadilla/pyjwt/pull/904&gt;`__ - Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &lt;https://github.com/jpadilla/pyjwt/pull/923&gt;`__ - Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &lt;https://github.com/jpadilla/pyjwt/pull/950&gt;`__ - Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &lt;https://github.com/jpadilla/pyjwt/pull/958&gt;`__ Added </code></pre> <ul> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <code>[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;</code>__</li> <li>Improve performance of <code>is_ssh_key</code> + add unit test by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <code>[#940](jpadilla/pyjwt#940) &lt;https://github.com/jpadilla/pyjwt/pull/940&gt;</code>__</li> <li>Allow <code>jwt.decode()</code> to accept a PyJWK object by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Make <code>algorithm_name</code> attribute available on PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Raise <code>InvalidKeyError</code> on invalid PEM keys to be compatible with cryptography 42.x.x by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <code>[#952](jpadilla/pyjwt#952) &lt;https://github.com/jpadilla/pyjwt/pull/952&gt;</code>__</li> <li>Raise an exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <code>&lt;https://github.com/jpadilla/pyjwt/pull/963&gt;</code>__ </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jpadilla/pyjwt/commit/868cf4ab2ca5a0a39da40e5a14dd740b203662b2"><code>868cf4a</code></a> Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/967">#967</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/304a3df14262aab01407803f97bd26c3eb2c4b10"><code>304a3df</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/965">#965</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/527fec277e8215a197f8facd3778b359043704ef"><code>527fec2</code></a> Raise exception when required cryptography dependency is missing (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/963">#963</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/18a50bedb03e894845420b95a58ce933b135659c"><code>18a50be</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/960">#960</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/4703f8780e532ef932f4a493b642ac5a6c1be53c"><code>4703f87</code></a> Handle load_pem_public_key ValueError (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/952">#952</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/9dc732f6444a0246e8d5c344110d6246bff89495"><code>9dc732f</code></a> Update usage.rst (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/958">#958</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/ab8176abe21e550dbc1c9a6bb7e78ad80853bfb1"><code>ab8176a</code></a> Decode with PyJWK (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/886">#886</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/c0a071dc0178542ad24e5a7b2e6103ba1d4c0517"><code>c0a071d</code></a> chore: update actions/download-artifact</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/2afbe32b0dbbcdb272a085d95ac5fdc609493d04"><code>2afbe32</code></a> Add coverage and improve performance of is_ssh_key (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/940">#940</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/97345a7635bc24d1eb59ab8d0c73389f38187472"><code>97345a7</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/953">#953</a>)</li> <li>Additional commits viewable in <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyjwt&package-manager=pip&previous-version=2.8.0&new-version=2.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/releases">pyjwt's releases</a>.</em></p> <blockquote> <h2>2.9.0</h2> <h2>What's Changed</h2> <ul> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/905">jpadilla/pyjwt#905</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/909">jpadilla/pyjwt#909</a></li> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/910">jpadilla/pyjwt#910</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/911">jpadilla/pyjwt#911</a></li> <li>Fix an unnecessary str concat by <a href="https://github.com/sirosen"><code>@sirosen</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/904">jpadilla/pyjwt#904</a></li> <li>Update jwt-api to accept either a string or list of strings for issuer validation by <a href="https://github.com/mattpollak"><code>@mattpollak</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/916">jpadilla/pyjwt#916</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/917">jpadilla/pyjwt#917</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/922">jpadilla/pyjwt#922</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/926">jpadilla/pyjwt#926</a></li> <li>Bump actions/setup-python from 4 to 5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/931">jpadilla/pyjwt#931</a></li> <li>Bump hynek/build-and-inspect-python-package from 1 to 2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/935">jpadilla/pyjwt#935</a></li> <li>docs/api: document strict_aud on decode_complete by <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/923">jpadilla/pyjwt#923</a></li> <li>chore: fix docs step by <a href="https://github.com/jpadilla"><code>@jpadilla</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/950">jpadilla/pyjwt#950</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/953">jpadilla/pyjwt#953</a></li> <li>Add coverage and improve performance of is_ssh_key by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li>Decode with PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li>Remove an unused variable from an example code block by <a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li>Handle load_pem_public_key ValueError by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/960">jpadilla/pyjwt#960</a></li> <li>Raise exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/965">jpadilla/pyjwt#965</a></li> <li>Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> by <a href="https://github.com/benvdh"><code>@benvdh</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/mattpollak"><code>@mattpollak</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li><a href="https://github.com/bdraco"><code>@bdraco</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li><a href="https://github.com/luhn"><code>@luhn</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li><a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li><a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li><a href="https://github.com/tobloef"><code>@tobloef</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li><a href="https://github.com/benvdh"><code>@benvdh</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst">pyjwt's changelog</a>.</em></p> <blockquote> <h2><code>v2.9.0 <https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0></code>__</h2> <p>Changed</p> <pre><code> - Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) <https://github.com/jpadilla/pyjwt/pull/910>`__ - Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) <https://github.com/jpadilla/pyjwt/pull/913>`__ <p>Fixed</p> <pre><code> - Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &lt;https://github.com/jpadilla/pyjwt/pull/904&gt;`__ - Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &lt;https://github.com/jpadilla/pyjwt/pull/923&gt;`__ - Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &lt;https://github.com/jpadilla/pyjwt/pull/950&gt;`__ - Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &lt;https://github.com/jpadilla/pyjwt/pull/958&gt;`__ Added </code></pre> <ul> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <code>[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;</code>__</li> <li>Improve performance of <code>is_ssh_key</code> + add unit test by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <code>[#940](jpadilla/pyjwt#940) &lt;https://github.com/jpadilla/pyjwt/pull/940&gt;</code>__</li> <li>Allow <code>jwt.decode()</code> to accept a PyJWK object by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Make <code>algorithm_name</code> attribute available on PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Raise <code>InvalidKeyError</code> on invalid PEM keys to be compatible with cryptography 42.x.x by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <code>[#952](jpadilla/pyjwt#952) &lt;https://github.com/jpadilla/pyjwt/pull/952&gt;</code>__</li> <li>Raise an exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <code>&lt;https://github.com/jpadilla/pyjwt/pull/963&gt;</code>__ </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jpadilla/pyjwt/commit/868cf4ab2ca5a0a39da40e5a14dd740b203662b2"><code>868cf4a</code></a> Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/967">#967</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/304a3df14262aab01407803f97bd26c3eb2c4b10"><code>304a3df</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/965">#965</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/527fec277e8215a197f8facd3778b359043704ef"><code>527fec2</code></a> Raise exception when required cryptography dependency is missing (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/963">#963</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/18a50bedb03e894845420b95a58ce933b135659c"><code>18a50be</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/960">#960</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/4703f8780e532ef932f4a493b642ac5a6c1be53c"><code>4703f87</code></a> Handle load_pem_public_key ValueError (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/952">#952</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/9dc732f6444a0246e8d5c344110d6246bff89495"><code>9dc732f</code></a> Update usage.rst (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/958">#958</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/ab8176abe21e550dbc1c9a6bb7e78ad80853bfb1"><code>ab8176a</code></a> Decode with PyJWK (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/886">#886</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/c0a071dc0178542ad24e5a7b2e6103ba1d4c0517"><code>c0a071d</code></a> chore: update actions/download-artifact</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/2afbe32b0dbbcdb272a085d95ac5fdc609493d04"><code>2afbe32</code></a> Add coverage and improve performance of is_ssh_key (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/940">#940</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/97345a7635bc24d1eb59ab8d0c73389f38187472"><code>97345a7</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/953">#953</a>)</li> <li>Additional commits viewable in <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyjwt&package-manager=pip&previous-version=2.8.0&new-version=2.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
As updated in jpadilla/pyjwt#886 Signed-off-by: Mike Fiedler <[email protected]>
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/releases">pyjwt's releases</a>.</em></p> <blockquote> <h2>2.9.0</h2> <h2>What's Changed</h2> <ul> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/905">jpadilla/pyjwt#905</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/909">jpadilla/pyjwt#909</a></li> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/910">jpadilla/pyjwt#910</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/911">jpadilla/pyjwt#911</a></li> <li>Fix an unnecessary str concat by <a href="https://github.com/sirosen"><code>@sirosen</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/904">jpadilla/pyjwt#904</a></li> <li>Update jwt-api to accept either a string or list of strings for issuer validation by <a href="https://github.com/mattpollak"><code>@mattpollak</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/916">jpadilla/pyjwt#916</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/917">jpadilla/pyjwt#917</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/922">jpadilla/pyjwt#922</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/926">jpadilla/pyjwt#926</a></li> <li>Bump actions/setup-python from 4 to 5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/931">jpadilla/pyjwt#931</a></li> <li>Bump hynek/build-and-inspect-python-package from 1 to 2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/935">jpadilla/pyjwt#935</a></li> <li>docs/api: document strict_aud on decode_complete by <a href="https://github.com/woodruffw"><code>@woodruffw</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/923">jpadilla/pyjwt#923</a></li> <li>chore: fix docs step by <a href="https://github.com/jpadilla"><code>@jpadilla</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/950">jpadilla/pyjwt#950</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/953">jpadilla/pyjwt#953</a></li> <li>Add coverage and improve performance of is_ssh_key by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li>Decode with PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li>Remove an unused variable from an example code block by <a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li>Handle load_pem_public_key ValueError by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/960">jpadilla/pyjwt#960</a></li> <li>Raise exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@pre-commit-ci</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/965">jpadilla/pyjwt#965</a></li> <li>Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> by <a href="https://github.com/benvdh"><code>@benvdh</code></a> in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/mattpollak"><code>@mattpollak</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/913">jpadilla/pyjwt#913</a></li> <li><a href="https://github.com/bdraco"><code>@bdraco</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/940">jpadilla/pyjwt#940</a></li> <li><a href="https://github.com/luhn"><code>@luhn</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/886">jpadilla/pyjwt#886</a></li> <li><a href="https://github.com/kenkoooo"><code>@kenkoooo</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/958">jpadilla/pyjwt#958</a></li> <li><a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/952">jpadilla/pyjwt#952</a></li> <li><a href="https://github.com/tobloef"><code>@tobloef</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/963">jpadilla/pyjwt#963</a></li> <li><a href="https://github.com/benvdh"><code>@benvdh</code></a> made their first contribution in <a href="https://redirect.github.com/jpadilla/pyjwt/pull/967">jpadilla/pyjwt#967</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst">pyjwt's changelog</a>.</em></p> <blockquote> <h2><code>v2.9.0 <https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0></code>__</h2> <p>Changed</p> <pre><code> - Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) <https://github.com/jpadilla/pyjwt/pull/910>`__ - Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) <https://github.com/jpadilla/pyjwt/pull/913>`__ <p>Fixed</p> <pre><code> - Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &lt;https://github.com/jpadilla/pyjwt/pull/904&gt;`__ - Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &lt;https://github.com/jpadilla/pyjwt/pull/923&gt;`__ - Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &lt;https://github.com/jpadilla/pyjwt/pull/950&gt;`__ - Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &lt;https://github.com/jpadilla/pyjwt/pull/958&gt;`__ Added </code></pre> <ul> <li>Add support for Python 3.12 by <a href="https://github.com/hugovk"><code>@hugovk</code></a> in <code>[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;</code>__</li> <li>Improve performance of <code>is_ssh_key</code> + add unit test by <a href="https://github.com/bdraco"><code>@bdraco</code></a> in <code>[#940](jpadilla/pyjwt#940) &lt;https://github.com/jpadilla/pyjwt/pull/940&gt;</code>__</li> <li>Allow <code>jwt.decode()</code> to accept a PyJWK object by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Make <code>algorithm_name</code> attribute available on PyJWK by <a href="https://github.com/luhn"><code>@luhn</code></a> in <code>[#886](jpadilla/pyjwt#886) &lt;https://github.com/jpadilla/pyjwt/pull/886&gt;</code>__</li> <li>Raise <code>InvalidKeyError</code> on invalid PEM keys to be compatible with cryptography 42.x.x by <a href="https://github.com/CollinEMac"><code>@CollinEMac</code></a> in <code>[#952](jpadilla/pyjwt#952) &lt;https://github.com/jpadilla/pyjwt/pull/952&gt;</code>__</li> <li>Raise an exception when required cryptography dependency is missing by <a href="https://github.com/tobloef"><code>@tobloef</code></a> in <code>&lt;https://github.com/jpadilla/pyjwt/pull/963&gt;</code>__ </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/jpadilla/pyjwt/commit/868cf4ab2ca5a0a39da40e5a14dd740b203662b2"><code>868cf4a</code></a> Add 2.9.0 changelog. Fixes <a href="https://redirect.github.com/jpadilla/pyjwt/issues/949">#949</a> (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/967">#967</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/304a3df14262aab01407803f97bd26c3eb2c4b10"><code>304a3df</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/965">#965</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/527fec277e8215a197f8facd3778b359043704ef"><code>527fec2</code></a> Raise exception when required cryptography dependency is missing (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/963">#963</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/18a50bedb03e894845420b95a58ce933b135659c"><code>18a50be</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/960">#960</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/4703f8780e532ef932f4a493b642ac5a6c1be53c"><code>4703f87</code></a> Handle load_pem_public_key ValueError (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/952">#952</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/9dc732f6444a0246e8d5c344110d6246bff89495"><code>9dc732f</code></a> Update usage.rst (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/958">#958</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/ab8176abe21e550dbc1c9a6bb7e78ad80853bfb1"><code>ab8176a</code></a> Decode with PyJWK (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/886">#886</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/c0a071dc0178542ad24e5a7b2e6103ba1d4c0517"><code>c0a071d</code></a> chore: update actions/download-artifact</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/2afbe32b0dbbcdb272a085d95ac5fdc609493d04"><code>2afbe32</code></a> Add coverage and improve performance of is_ssh_key (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/940">#940</a>)</li> <li><a href="https://github.com/jpadilla/pyjwt/commit/97345a7635bc24d1eb59ab8d0c73389f38187472"><code>97345a7</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/jpadilla/pyjwt/issues/953">#953</a>)</li> <li>Additional commits viewable in <a href="https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyjwt&package-manager=pip&previous-version=2.8.0&new-version=2.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This PR contains three proposed changes. You can accept or reject any of them as you see fit. This is just a rough draft, once the functionality is approved I'll clean it up, add tests, and document.
Add
algorithm
string toPyJWK
. This is useful in determine the appropriatealgorithms
value to pass intodecode()
.Allow a
PyJWK
to be passed directly intodecode()
, so it's not necessary to pullPyJWK.key
. (This would fix Shouldjwt.decode
acceptPyJWK
keys? #864)If a
PyJWK
is passed intodecode()
andalgorithms
is not set, use the algorithm from the JWK. This change makes the API more convenient and reduces room for error: There's no reason that you should use any algorithm but the JWK's algorithm and doing otherwise is problematic at best and a possible security threat at worst.