Skip to content

Commit 3c7002d

Browse files
committed
Use same decoder for signature as for other parts
1 parent 3a5350d commit 3c7002d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/JSONWebToken-OpenSSL.package/JWARSASHA256.class/class/checkSignature.withKey..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ checkSignature: aString withKey: key
33
| jwtHeaderAndPayload signatureByteArray publicKey tokenParts |
44
tokenParts := $. split: aString.
55
jwtHeaderAndPayload := $. join: (tokenParts first: 2).
6-
signatureByteArray := tokenParts third base64Padded base64Decoded
6+
signatureByteArray := (Base64UrlEncoder new decode: tokenParts third base64Padded)
77
asByteArray.
88
publicKey := (key includesSubstring: 'BEGIN RSA PUBLIC KEY')
99
ifTrue: [ LcEvpPublicKey setRSA: (LcRSA fromRsaPublicKeyPemString: key) ]

0 commit comments

Comments
 (0)