From 1d78f767b152e24ecdb28f1acf4814aaafbe5ef7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 03:17:56 +0000 Subject: [PATCH 1/2] Bump pyjwt from 2.9.0 to 2.10.0 Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.9.0 to 2.10.0. - [Release notes](https://github.com/jpadilla/pyjwt/releases) - [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst) - [Commits](https://github.com/jpadilla/pyjwt/compare/2.9.0...2.10.0) --- updated-dependencies: - dependency-name: pyjwt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index def3bf24..3a2a9538 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -144,7 +144,7 @@ pyasn1-modules==0.3.0 # via google-auth pycparser==2.21 # via cffi -pyjwt==2.9.0 +pyjwt==2.10.0 # via -r requirements/requirements.in pyparsing==3.1.1 # via packaging From a7dc5c3d673f04a20fac8f6d799b87bb1db62902 Mon Sep 17 00:00:00 2001 From: Jonas Carson Date: Fri, 22 Nov 2024 08:23:28 -0800 Subject: [PATCH 2/2] Fix breaking change in 2.10 - sub must be a string - to align with JWT spec --- primed/drupal_oauth_provider/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/primed/drupal_oauth_provider/tests.py b/primed/drupal_oauth_provider/tests.py index e59eb6f2..c827b551 100644 --- a/primed/drupal_oauth_provider/tests.py +++ b/primed/drupal_oauth_provider/tests.py @@ -130,7 +130,7 @@ def get_mocked_response(self): "name": "testmaster", "email": "test@testmaster.net", "email_verified": "True", - "sub": 20122 + "sub": "20122" }""", ), ] @@ -198,7 +198,7 @@ def get_id_token(self): "iat": self.setup_time, "aud": allowed_audience, "scope": ["authenticated", "oauth_client_user"], - "sub": 20122, + "sub": "20122", } )