Skip to content

Commit 38c23a0

Browse files
committed
Human message regarding minimum client_secret length
1 parent 030b1c6 commit 38c23a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cryptojwt/jwk/hmac.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def __init__(
5757
self.key = b64d(bytes(self.k))
5858

5959
if len(self.key) < 16:
60-
raise UnsupportedAlgorithm("key too short")
60+
raise UnsupportedAlgorithm("client_secret too short,"
61+
" it should be at least 16 digits")
6162

6263
def deserialize(self):
6364
self.key = b64d(bytes(self.k))

0 commit comments

Comments
 (0)