jwt 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/jwt/claims.rb +2 -2
- data/lib/jwt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a35f6010f641283fa3bd38a40b8446661861990aa2b9b9bc415100da4fd255
|
4
|
+
data.tar.gz: 56033dd532a0fbab8c737a753fb92bea4da4bcfac320d179a22ec48e366aa304
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc6d521e351e4e6224baa39bb0c31e5d6e15e53a64a62cfcf10d63d0012e9b3558307fd44eca9a95efe7fca63192736c4ed838cecc3867db90542aed7768055
|
7
|
+
data.tar.gz: 99b4fcd45418b931b4ed18f6275b5dc673f34a49bf45d92be734a452129a3b81c97c7966f4dda855ba646c8619b504db26b927b99feddd72a86dfdd75a0d2028
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [v2.9.
|
3
|
+
## [v2.9.1](https://github.com/jwt/ruby-jwt/tree/v2.9.1) (2024-09-23)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.9.0...v2.9.1)
|
6
|
+
|
7
|
+
**Fixes and enhancements:**
|
8
|
+
|
9
|
+
- Fix regression in `iss` and `aud` claim validation [#619](https://github.com/jwt/ruby-jwt/pull/619) ([@anakinj](https://github.com/anakinj))
|
10
|
+
|
11
|
+
## [v2.9.0](https://github.com/jwt/ruby-jwt/tree/v2.9.0) (2024-09-15)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.8.2...v2.9.0)
|
6
14
|
|
data/lib/jwt/claims.rb
CHANGED
@@ -17,10 +17,10 @@ module JWT
|
|
17
17
|
VERIFIERS = {
|
18
18
|
verify_expiration: ->(options) { Claims::Expiration.new(leeway: options[:exp_leeway] || options[:leeway]) },
|
19
19
|
verify_not_before: ->(options) { Claims::NotBefore.new(leeway: options[:nbf_leeway] || options[:leeway]) },
|
20
|
-
verify_iss: ->(options) { Claims::Issuer.new(issuers: options[:iss]) },
|
20
|
+
verify_iss: ->(options) { options[:iss] && Claims::Issuer.new(issuers: options[:iss]) },
|
21
21
|
verify_iat: ->(*) { Claims::IssuedAt.new },
|
22
22
|
verify_jti: ->(options) { Claims::JwtId.new(validator: options[:verify_jti]) },
|
23
|
-
verify_aud: ->(options) { Claims::Audience.new(expected_audience: options[:aud]) },
|
23
|
+
verify_aud: ->(options) { options[:aud] && Claims::Audience.new(expected_audience: options[:aud]) },
|
24
24
|
verify_sub: ->(options) { options[:sub] && Claims::Subject.new(expected_subject: options[:sub]) },
|
25
25
|
required_claims: ->(options) { Claims::Required.new(required_claims: options[:required_claims]) }
|
26
26
|
}.freeze
|
data/lib/jwt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Rudat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -172,7 +172,7 @@ licenses:
|
|
172
172
|
- MIT
|
173
173
|
metadata:
|
174
174
|
bug_tracker_uri: https://github.com/jwt/ruby-jwt/issues
|
175
|
-
changelog_uri: https://github.com/jwt/ruby-jwt/blob/v2.9.
|
175
|
+
changelog_uri: https://github.com/jwt/ruby-jwt/blob/v2.9.1/CHANGELOG.md
|
176
176
|
rubygems_mfa_required: 'true'
|
177
177
|
post_install_message:
|
178
178
|
rdoc_options: []
|