jwt-authorizer 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: da278a5363a0e712c081dfd198e3c8d362a27517
4
- data.tar.gz: 776cdc715d65c216e2a0e304b819100057eb23bc
2
+ SHA256:
3
+ metadata.gz: 72ac76680d24ba85b89a8771fae96b8c16416e5128e6125f66186eb3d8e6ab3e
4
+ data.tar.gz: 25cc37f51899dd692e0c5fb9665d9f2fe12e7032370fe9b6b47c0ac5a99ad2a9
5
5
  SHA512:
6
- metadata.gz: a6ece519741eae0ef0553e7bda0e893d29e06b88e719925273fc44e047346bb19ce2045d403e550ab21acc07cd24cc8a92d31932748b4181e368431813131490
7
- data.tar.gz: a645a4f334fdf3d72b6e877af6660c818dc159b376859d712779cfec2dbf7e0f4c6da900d2d4a1f49140cd5d88ecbaea7db4e1355c3ab2bbc0bd6e606daf5610
6
+ metadata.gz: 576c2b4c8750b4b223db744023c4f661d3a18083b6e1e9e34fa5795c967d912431de2cec0da6e88fe73a8de5975d8603ff8e6ca5d4b97c6ce3e56ec4e4380237
7
+ data.tar.gz: 07d68b103d23ca2f92a4c0de04116e78c99846627e011a38db67ed613f34512ce9f13187804e3b8fbe68aa15c242a3185899ef26e539148c658edd974ecef675
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jwt-authorizer (2.0.1)
4
+ jwt-authorizer (2.1.0)
5
5
  jwt (~> 2.1)
6
6
 
7
7
  GEM
@@ -70,4 +70,4 @@ DEPENDENCIES
70
70
  timecop (~> 0.9)
71
71
 
72
72
  BUNDLED WITH
73
- 1.17.1
73
+ 1.17.3
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JWT
4
4
  module Authorizer
5
- VERSION = "2.0.1"
5
+ VERSION = "2.1.0"
6
6
  end
7
7
  end
@@ -23,5 +23,11 @@ module JWT
23
23
  claim :verb, required: true do |value, rack_req|
24
24
  raise JWT::DecodeError, "Unexpected request method: #{value}" unless value.to_s.upcase == rack_req.request_method
25
25
  end
26
+
27
+ claim :query, required: false do |value, rack_req|
28
+ unless Rack::Utils.parse_nested_query(value) == rack_req.params.delete_if { |k, _v| k == "_t" }
29
+ raise JWT::DecodeError, "Unexpected query parameters: #{value}"
30
+ end
31
+ end
26
32
  end
27
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt-authorizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Begejowicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-17 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.6.14.1
194
+ rubygems_version: 2.7.6
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Authorization of requests for microservices based on JWT