Skip to content

Releases: crystal-community/jwt

v1.6.1

05 Feb 23:02
ea5d4d4
Compare
Choose a tag to compare

bumps bindata dependency

v1.6.0

30 Aug 00:45
Compare
Choose a tag to compare

adds optional dynamic key selection

# You may dynamically decide the key by passing a block to the decode function
# the algorithm is optional, you can omit it to use algorithm defined in the header
payload, header = JWT.decode(token, JWT::Algorithm::HS256) do |header, payload|
  "the key"
end

v1.5.1

23 Mar 00:12
Compare
Choose a tag to compare

adds crystal version supported in shard.yml

v1.5.0

28 Jan 04:44
Compare
Choose a tag to compare

adds crystal 0.36.0 support

v1.4.2

09 Jun 22:26
caa24ec
Compare
Choose a tag to compare

use .final instead of .digest related to changes in crystal-lang/crystal#8426
thanks @bcardiff

v1.4.1

04 Jun 09:00
24b749e
Compare
Choose a tag to compare
  • improve base64 encoding performance #30
  • prevent timing attacks on HMAC signatures #31

thanks @jamescook

v1.4.0: feat: don't cast the JSON payload unless validation is required

17 Dec 21:22
Compare
Choose a tag to compare

payload decoding now returns a JSON::Any structure for the body instead of a Hash(String,JSON::Any)
this allows for more flexible playload contents if validation is not required.

v1.3.1: fix: provide an explicit error for an invalid payload

17 Dec 21:10
Compare
Choose a tag to compare

fixes compiler warnings
improves error/exception feedback

v1.3.0

10 Dec 11:29
Compare
Choose a tag to compare

adds support for ECDSA (ES256, ES384, ES512) tokens

v1.2.0

09 Dec 00:53
Compare
Choose a tag to compare

adds support for the latest version of openssl_ext