From 53fd3e8cee295b96fc118bc19ad7a2e730a7d9ae Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Fri, 11 Jul 2025 16:13:44 +0200 Subject: [PATCH] Remove double base64url-encoding when generating kid --- pyproject.toml | 2 +- src/cryptojwt/jwk/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ed17238..b4611da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "cryptojwt" -version = "1.9.4" +version = "1.9.5" description = "Python implementation of JWT, JWE, JWS and JWK" authors = ["Roland Hedberg "] license = "Apache-2.0" diff --git a/src/cryptojwt/jwk/__init__.py b/src/cryptojwt/jwk/__init__.py index ad25ba3..4294f50 100644 --- a/src/cryptojwt/jwk/__init__.py +++ b/src/cryptojwt/jwk/__init__.py @@ -274,7 +274,7 @@ def add_kid(self): Construct a Key ID using the thumbprint method and add it to the key attributes. """ - self.kid = b64e(self.thumbprint("SHA-256")).decode("utf8") + self.kid = self.thumbprint("SHA-256").decode("utf8") def appropriate_for(self, usage, **kwargs): """