From 300348f7bc4a520448b8fbefa525c9434e82141d Mon Sep 17 00:00:00 2001 From: Michael Haines Date: Tue, 15 Nov 2022 20:47:00 -0700 Subject: Custom header configuration in jwk client (#823) * allow configuration of custom headers in JWKClient * revert changes to algorithms * document example usage of custom headers * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * black format tests * Add a release note for optional headers arg Co-authored-by: thundercat1 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.rst') diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4d56207..37875e9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -21,6 +21,8 @@ Added - Add ``compute_hash_digest`` as a method of ``Algorithm`` objects, which uses the underlying hash algorithm to compute a digest. If there is no appropriate hash algorithm, a ``NotImplementedError`` will be raised +- Add optional ``headers`` argument to ``PyJWKClient``. If provided, the headers + will be included in requests that the client uses when fetching the JWK set. `v2.6.0 `__ ----------------------------------------------------------------------- -- cgit v1.2.1