Skip to content
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

Merged
merged 14 commits into from
May 11, 2024
Merged

Decode with PyJWK #886

merged 14 commits into from
May 11, 2024

Conversation

luhn
Copy link
Contributor

@luhn luhn commented Apr 28, 2023

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.

  1. Add algorithm string to PyJWK. This is useful in determine the appropriate algorithms value to pass into decode().

  2. Allow a PyJWK to be passed directly into decode(), so it's not necessary to pull PyJWK.key. (This would fix Should jwt.decode accept PyJWK keys? #864)

  3. If a PyJWK is passed into decode() and algorithms 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.

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
Copy link
Contributor

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

Copy link
Contributor Author

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)

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Copy link
Owner

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.

@luhn
Copy link
Contributor Author

luhn commented Jun 15, 2023

Can I get feedback from a maintainer on whether or not these proposed changes would be accepted once properly documented and tested? @Viicos? @jpadilla?

@Viicos
Copy link
Contributor

Viicos commented Jun 15, 2023

I like the idea, I'm not an official maintainer so I'll let @jpadilla or @auvipy decide here :)

@auvipy auvipy self-requested a review June 17, 2023 03:51
@github-actions github-actions bot added the stale Issues without activity for more than 60 days label Aug 17, 2023
@github-actions github-actions bot closed this Aug 24, 2023
@auvipy auvipy reopened this Aug 24, 2023
@github-actions github-actions bot removed the stale Issues without activity for more than 60 days label Aug 25, 2023
@luhn luhn marked this pull request as ready for review October 16, 2023 05:24
@luhn
Copy link
Contributor Author

luhn commented Oct 16, 2023

Ready for review 👍

@auvipy
Copy link
Collaborator

auvipy commented Oct 16, 2023

restarted the CI, lets hope all are green

Copy link
Collaborator

@auvipy auvipy left a 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

@luhn
Copy link
Contributor Author

luhn commented Oct 16, 2023

Okay, I fixed tests w/o cryptography installed.

@github-actions github-actions bot added the stale Issues without activity for more than 60 days label Dec 16, 2023
@luhn
Copy link
Contributor Author

luhn commented Dec 20, 2023

Ping. Any more feedback on this?

@auvipy, it looks like you need to approve my changes.

@github-actions github-actions bot removed the stale Issues without activity for more than 60 days label Dec 21, 2023
@github-actions github-actions bot added the stale Issues without activity for more than 60 days label Feb 20, 2024
@github-actions github-actions bot closed this Feb 28, 2024
@luhn
Copy link
Contributor Author

luhn commented Feb 28, 2024

Bummed to see this was closed as stale. @jpadilla @Viicos @auvipy would it be possible to reopen and get merged? I'm happy to make any changes necessary.

@jpadilla jpadilla reopened this Feb 28, 2024
@jpadilla jpadilla removed the stale Issues without activity for more than 60 days label Feb 28, 2024
@jpadilla jpadilla added the keep label Mar 27, 2024
@jpadilla jpadilla merged commit ab8176a into jpadilla:master May 11, 2024
13 of 24 checks passed
inmantaci pushed a commit to inmanta/inmanta-core that referenced this pull request Aug 1, 2024
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 &lt;https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0&gt;</code>__</h2>
<p>Changed</p>
<pre><code>
- Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;`__
- Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) &lt;https://github.com/jpadilla/pyjwt/pull/913&gt;`__
<p>Fixed</p>
<pre><code>
- Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &amp;lt;https://github.com/jpadilla/pyjwt/pull/904&amp;gt;`__
- Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &amp;lt;https://github.com/jpadilla/pyjwt/pull/923&amp;gt;`__
- Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &amp;lt;https://github.com/jpadilla/pyjwt/pull/950&amp;gt;`__
- Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &amp;lt;https://github.com/jpadilla/pyjwt/pull/958&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/910&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/940&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/952&amp;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>&amp;lt;https://github.com/jpadilla/pyjwt/pull/963&amp;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>
inmantaci pushed a commit to inmanta/inmanta-core that referenced this pull request Aug 1, 2024
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 &lt;https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0&gt;</code>__</h2>
<p>Changed</p>
<pre><code>
- Drop support for Python 3.7 (EOL) by @hugovk in `[#910](jpadilla/pyjwt#910) &lt;https://github.com/jpadilla/pyjwt/pull/910&gt;`__
- Allow JWT issuer claim validation to accept a list of strings too by @mattpollak in `[#913](jpadilla/pyjwt#913) &lt;https://github.com/jpadilla/pyjwt/pull/913&gt;`__
<p>Fixed</p>
<pre><code>
- Fix unnecessary string concatenation by @sirosen in `[#904](jpadilla/pyjwt#904) &amp;lt;https://github.com/jpadilla/pyjwt/pull/904&amp;gt;`__
- Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option by @woodruffw in `[#923](jpadilla/pyjwt#923) &amp;lt;https://github.com/jpadilla/pyjwt/pull/923&amp;gt;`__
- Fix docs step by @jpadilla in `[#950](jpadilla/pyjwt#950) &amp;lt;https://github.com/jpadilla/pyjwt/pull/950&amp;gt;`__
- Fix: Remove an unused variable from example code block by @kenkoooo in `[#958](jpadilla/pyjwt#958) &amp;lt;https://github.com/jpadilla/pyjwt/pull/958&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/910&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/940&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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) &amp;lt;https://github.com/jpadilla/pyjwt/pull/952&amp;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>&amp;lt;https://github.com/jpadilla/pyjwt/pull/963&amp;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>
eps-autoapprove-dependabot bot pushed a commit to NHSDigital/eps-prescription-status-update-api that referenced this pull request Aug 3, 2024
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
&lt;https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0&gt;</code>__</h2>
<p>Changed</p>
<pre><code>
- Drop support for Python 3.7 (EOL) by @hugovk in
`[#910](jpadilla/pyjwt#910)
&lt;https://github.com/jpadilla/pyjwt/pull/910&gt;`__
- Allow JWT issuer claim validation to accept a list of strings too by
@mattpollak in `[#913](jpadilla/pyjwt#913)
&lt;https://github.com/jpadilla/pyjwt/pull/913&gt;`__
<p>Fixed</p>
<pre><code>
- Fix unnecessary string concatenation by @sirosen in
`[#904](jpadilla/pyjwt#904)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/904&amp;gt;`__
- Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option
by @woodruffw in `[#923](jpadilla/pyjwt#923)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/923&amp;gt;`__
- Fix docs step by @jpadilla in
`[#950](jpadilla/pyjwt#950)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/950&amp;gt;`__
- Fix: Remove an unused variable from example code block by @kenkoooo in
`[#958](jpadilla/pyjwt#958)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/958&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/910&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/940&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/952&amp;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>&amp;lt;https://github.com/jpadilla/pyjwt/pull/963&amp;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>
miketheman added a commit to pypi/warehouse that referenced this pull request Aug 7, 2024
As updated in jpadilla/pyjwt#886

Signed-off-by: Mike Fiedler <[email protected]>
github-merge-queue bot pushed a commit to TechlauncherFireApp/backend that referenced this pull request Aug 27, 2024
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
&lt;https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0&gt;</code>__</h2>
<p>Changed</p>
<pre><code>
- Drop support for Python 3.7 (EOL) by @hugovk in
`[#910](jpadilla/pyjwt#910)
&lt;https://github.com/jpadilla/pyjwt/pull/910&gt;`__
- Allow JWT issuer claim validation to accept a list of strings too by
@mattpollak in `[#913](jpadilla/pyjwt#913)
&lt;https://github.com/jpadilla/pyjwt/pull/913&gt;`__
<p>Fixed</p>
<pre><code>
- Fix unnecessary string concatenation by @sirosen in
`[#904](jpadilla/pyjwt#904)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/904&amp;gt;`__
- Fix docs for ``jwt.decode_complete`` to include ``strict_aud`` option
by @woodruffw in `[#923](jpadilla/pyjwt#923)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/923&amp;gt;`__
- Fix docs step by @jpadilla in
`[#950](jpadilla/pyjwt#950)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/950&amp;gt;`__
- Fix: Remove an unused variable from example code block by @kenkoooo in
`[#958](jpadilla/pyjwt#958)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/958&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/910&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/940&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/886&amp;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)
&amp;lt;https://github.com/jpadilla/pyjwt/pull/952&amp;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>&amp;lt;https://github.com/jpadilla/pyjwt/pull/963&amp;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should jwt.decode accept PyJWK keys?
4 participants