Skip to content

Commit 53fd3e8

Browse files
committed
Remove double base64url-encoding when generating kid
1 parent 2b735fe commit 53fd3e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[tool.poetry]
44
name = "cryptojwt"
5-
version = "1.9.4"
5+
version = "1.9.5"
66
description = "Python implementation of JWT, JWE, JWS and JWK"
77
authors = ["Roland Hedberg <[email protected]>"]
88
license = "Apache-2.0"

src/cryptojwt/jwk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def add_kid(self):
274274
Construct a Key ID using the thumbprint method and add it to
275275
the key attributes.
276276
"""
277-
self.kid = b64e(self.thumbprint("SHA-256")).decode("utf8")
277+
self.kid = self.thumbprint("SHA-256").decode("utf8")
278278

279279
def appropriate_for(self, usage, **kwargs):
280280
"""

0 commit comments

Comments
 (0)