json-jwt 1.16.5 → 1.16.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/json/jwt.rb +5 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46f2aab7219bdad2e450a22e1e3ab31570af928e24c23afacf19a1a9ebe35aab
4
- data.tar.gz: 419365f9ee8fb8471dd59cca70f0418fbc593b34ff651d8c58b51fdf9bd877f4
3
+ metadata.gz: 67d205daa24111b954cc01c6b9b68baf98c0f932a6afc02c86ca0ff766d4bdd2
4
+ data.tar.gz: e2d61533659adb4d6d99314aeb0ff7581c1806a09604d4060e0433ceadc82c47
5
5
  SHA512:
6
- metadata.gz: 79b8633df8ea4ba76c2245f832711566ece8ceee80c8ed22efd23b96d420edc0adf1d7527107e5ecbb198aea0191436b7ce757e44a70415c48516fa7799b1a99
7
- data.tar.gz: 74a9a5a2fb5dc618192fcf9b47801af2f258d5aaaf78457548229b081d1de5ab298b0234a42be57b1b38060af9532fdc2274b18a0532180a9bf3df7b6128ff04
6
+ metadata.gz: 23bfcadd5ef026d90357e2c9501783811f2e10d9a4950269024e4181a8c3b235077066bf0da00d8334159bf4d8d69ddd49754f60e1a93dcef0f4b5a9bb531118
7
+ data.tar.gz: 3b22c8b470f40c0b392a1236aad0b2921bc629e915351d41db384ad9c302926c4144be36f859b6e70242c15ca909e69535a0abeac4a3ed1f7d01f2397811796d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.5
1
+ 1.16.6
data/lib/json/jwt.rb CHANGED
@@ -109,7 +109,11 @@ module JSON
109
109
  when JWS::NUM_OF_SEGMENTS
110
110
  JWS.decode_compact_serialized jwt_string, key_or_secret, algorithms, allow_blank_payload
111
111
  when JWE::NUM_OF_SEGMENTS
112
- JWE.decode_compact_serialized jwt_string, key_or_secret, algorithms, encryption_methods
112
+ if allow_blank_payload
113
+ raise InvalidFormat.new("JWE w/ blank payload is not supported.")
114
+ else
115
+ JWE.decode_compact_serialized jwt_string, key_or_secret, algorithms, encryption_methods
116
+ end
113
117
  else
114
118
  raise InvalidFormat.new("Invalid JWT Format. JWT should include #{JWS::NUM_OF_SEGMENTS} or #{JWE::NUM_OF_SEGMENTS} segments.")
115
119
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.5
4
+ version: 1.16.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-03 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.4.10
214
+ rubygems_version: 3.5.3
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and