Skip to content

Commit ea9776c

Browse files
authored
Merge pull request #185 from jschlyter/kid_thumbprint
Remove double base64url-encoding when generating kid
2 parents 8cdb628 + 2125695 commit ea9776c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)