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 +5 -5
- data/Gemfile.lock +2 -2
- data/lib/jwt/authorizer/version.rb +1 -1
- data/lib/jwt/endpoint_token.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 72ac76680d24ba85b89a8771fae96b8c16416e5128e6125f66186eb3d8e6ab3e
|
4
|
+
data.tar.gz: 25cc37f51899dd692e0c5fb9665d9f2fe12e7032370fe9b6b47c0ac5a99ad2a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576c2b4c8750b4b223db744023c4f661d3a18083b6e1e9e34fa5795c967d912431de2cec0da6e88fe73a8de5975d8603ff8e6ca5d4b97c6ce3e56ec4e4380237
|
7
|
+
data.tar.gz: 07d68b103d23ca2f92a4c0de04116e78c99846627e011a38db67ed613f34512ce9f13187804e3b8fbe68aa15c242a3185899ef26e539148c658edd974ecef675
|
data/Gemfile.lock
CHANGED
data/lib/jwt/endpoint_token.rb
CHANGED
@@ -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
|
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:
|
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
|
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
|