jwt-eddsa 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 975e800ef1f6e3d008a00c1a9277b6d807758fbd63aa968b9611d0a7787a62cd
4
- data.tar.gz: 530869d758e00629b958338f6a7565ee7dddc86c825e3640a8787e55cb198fbc
3
+ metadata.gz: d176aca754fd2612a100a6dbccc5cb7452258d61113899aef72bbfeffd8a35a0
4
+ data.tar.gz: d9b57d2a032a47bc8bcf313782652c7f7e5404639dff0a230a20d0b9d27d42c5
5
5
  SHA512:
6
- metadata.gz: 46bc365adb7da919eeb2bb5bf1811bfe7ba97e2a7d3a38bbc9b802ef0cb08dd2681689a26167b2e25875ce53d4d8f7c52f53e73093a121515639f61186ed42ba
7
- data.tar.gz: b5f9c450db1b9c3967b4786014bf6d445e0ca984d214ae9cf951577f3084e68f62ec4c4bd9a85edd97d5c395657f37f4b521780c3e7b697d4c8a832749ae6362
6
+ metadata.gz: 3ac0969bd6a41c3ee85cedaf88b1183743fafcf42a5eddef4dc3736be013578a3d9d79b6fe1e69dab327632b84a5d185c33e925d538636d055fcb1196f03e05f
7
+ data.tar.gz: e5aeb285f6c04b604713bd63ab58dc41ac3d24c6c7617382e09774f81c094f5f4966385a7ac3a3692bfba87ceaab4bd8fecb1f56446d6289e11d0e037a352500
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.8.1"
2
+ ".": "0.9.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.0](https://github.com/jwt/ruby-jwt-eddsa/compare/v0.8.1...v0.9.0) (2025-06-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * Support resolving JWA from crv parameter in JWK ([#24](https://github.com/jwt/ruby-jwt-eddsa/issues/24)) ([76ab43b](https://github.com/jwt/ruby-jwt-eddsa/commit/76ab43b14c27f477c78e6a8aaee7bcfb56d1d4a7))
9
+
3
10
  ## [0.8.1](https://github.com/jwt/ruby-jwt-eddsa/compare/v0.8.0...v0.8.1) (2025-06-27)
4
11
 
5
12
 
@@ -56,6 +56,12 @@ module JWT
56
56
  exported
57
57
  end
58
58
 
59
+ def jwa
60
+ return super if self[:alg]
61
+
62
+ JWA.resolve("EdDSA") if self[:crv] == "Ed25519"
63
+ end
64
+
59
65
  private
60
66
 
61
67
  def extract_key_params(key) # rubocop:disable Metrics/MethodLength
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JWT
4
4
  module EdDSA
5
- VERSION = "0.8.1"
5
+ VERSION = "0.9.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt-eddsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Antman
@@ -78,7 +78,7 @@ licenses:
78
78
  metadata:
79
79
  homepage_uri: https://github.com/jwt/ruby-jwt-eddsa
80
80
  source_code_uri: https://github.com/jwt/ruby-jwt-eddsa
81
- changelog_uri: https://github.com/jwt/ruby-jwt-eddsa/blob/v0.8.1/CHANGELOG.md
81
+ changelog_uri: https://github.com/jwt/ruby-jwt-eddsa/blob/v0.9.0/CHANGELOG.md
82
82
  rubygems_mfa_required: 'true'
83
83
  rdoc_options: []
84
84
  require_paths: