jwt_signed_request 2.5.2 → 2.5.3

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
2
  SHA256:
3
- metadata.gz: e837ceb1f3983362e3b926437e89cbbdab877252e9acc276d8670dc06e2066d0
4
- data.tar.gz: dbadd464b577bbe6867e268fc2777e820b2f5af9e5fa50a2379f7cfd21b65afe
3
+ metadata.gz: 53b7a62273005016246b631bb5c51179dc919b39c78a42723ac9875454520b17
4
+ data.tar.gz: c2e1c4013bf18397d00a1bf73b3ccdd73cdc892d33099589fb6c9efe431e2449
5
5
  SHA512:
6
- metadata.gz: da2d6f87656012ec35c9fc4c7009e913bbaef51a811f2ce33b7728672c2bd925eaedb4af8b4793c63ba37c535437decad008f29d9360563327c393dac21e57aa
7
- data.tar.gz: e562d633c943356dd6846e40cb3e77a4a51f96126d3a853bb3f75625a5d908d36cbe3068bdfc3efe6a600d3255284c754199423e6e33c83f284fa3f7e963c195
6
+ metadata.gz: 075ad9f0bebce419ae9fae300f90466a45211f4989b9c47ecfe880611e8cbfcc703dce33f61336ee5461d8198608c6ca59e1dcc77f64dfb71c0c7112fc68cc82
7
+ data.tar.gz: 49f01873efebe7593821ce98aca563335297c745ff6aa99bb1703f32d6d463480a592b6efb091abb76915c6a03fbf7ca081507a8bd6fac28089281c484c3a297
@@ -12,11 +12,13 @@ module JWTSignedRequest
12
12
  end
13
13
 
14
14
  def call(env)
15
+ env[:body] ||= ::JWTSignedRequest::EMPTY_BODY
16
+
15
17
  @jwt_token = ::JWTSignedRequest.sign(
16
18
  method: env[:method],
17
19
  path: env[:url].request_uri,
18
20
  headers: env[:request_headers],
19
- body: env.fetch(:body, ::JWTSignedRequest::EMPTY_BODY),
21
+ body: env[:body],
20
22
  **optional_settings
21
23
  )
22
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JWTSignedRequest
4
- VERSION = '2.5.2'.freeze
4
+ VERSION = '2.5.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_signed_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-06 00:00:00.000000000 Z
11
+ date: 2020-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.0.3
150
+ rubygems_version: 3.1.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: JWT request signing and verification for Internal APIs