jwt_signed_request 3.0.0 → 4.0.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
2
  SHA256:
3
- metadata.gz: a232713f444aa93fe62190f100a0ee0b74550c5f8426095c131b79ec035c1260
4
- data.tar.gz: df9755b248452d267d2a0631ea16af0d81476a501dde8367b980fe53e6b9c210
3
+ metadata.gz: 2ff089359ca0be223ce8129057dd85f41347deefc047a38a430ccbb2807900c3
4
+ data.tar.gz: 7b48dda198a6b50b11c23cd9ee729dafdc4eac46cd916a9d8537452b30f2498c
5
5
  SHA512:
6
- metadata.gz: 6e8ca9735e699cb864d1a73869d8b09cfda8e8decebae2b7343bd2168f1f4fe2baed43c02ee52e7d76c761de3af66aacdf69667805a097d14ae04f4896db238a
7
- data.tar.gz: ffb84c36f824f1e8d4ad22718136fa4350ea56a28e842c098f7038abd9c31e3c3b1e168f0546ed281018cd54c91abfbd24add657cf2f705ba230db87f89ab17c
6
+ metadata.gz: 3c386999814a23ef7453316d2d9082d6e1ae706989eeff1c2bab49414f4f9dc1e9eca36c0f936e6139a05adb5e99540dc5cb3eff4192348e10d80e2200e84333
7
+ data.tar.gz: c0b80b1fda09d9dcb1260f229acfeff185cdb8ada149d9729ea2950f356e6fe09126639182811438d19f35658d5c6ad9fbe49b3ae02d612d96234ed7f11d0218
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # JWT Signed Request
2
- [![travis ci build](https://api.travis-ci.org/envato/jwt_signed_request.svg)](https://travis-ci.org/envato/jwt_signed_request)
2
+
3
+ [![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/envato/jwt_signed_request/blob/master/LICENSE.txt)
4
+ [![Gem Version](https://img.shields.io/gem/v/jwt_signed_request.svg?maxAge=2592000)](https://rubygems.org/gems/jwt_signed_request)
5
+ [![Gem Downloads](https://img.shields.io/gem/dt/jwt_signed_request.svg?maxAge=2592000)](https://rubygems.org/gems/jwt_signed_request)
6
+ [![Test Suite](https://github.com/envato/jwt_signed_request/workflows/tests/badge.svg?branch=master)](https://github.com/envato/jwt_signed_request/actions?query=branch%3Amaster+workflow%3Atests)
3
7
 
4
8
  Request signing and verification for Internal APIs using JWT.
5
9
 
@@ -17,6 +21,14 @@ then run:
17
21
  $ bundle
18
22
  ```
19
23
 
24
+ ## Stale PRs
25
+
26
+ We use the "stale" workflow to manage our PRs.
27
+ If you have a PR open for 60 days without any activity, it will automatically be labelled `stale-pr`.
28
+ If there is no activity for 7 days after this label is applied, the PR will be automatically closed.
29
+
30
+ If you have a PR that has a sensible reason for being open for a long period of time with no activity, you can apply the `do-not-auto-close` label to avoid it being automatically closed.
31
+
20
32
  ## Generating EC Keys
21
33
 
22
34
  We should be using a public key encryption algorithm such as **ES256**. To generate your public/private key pair using **ES256** run:
@@ -287,6 +299,12 @@ Configured versions are defined in [Appraisals](./Appraisals), which at time of
287
299
  ].each do |jwt_version|
288
300
  ```
289
301
 
302
+ Ensure you set up your local environment by running:
303
+
304
+ ```sh
305
+ bundle exec appraisal install
306
+ ```
307
+
290
308
  Run the test suite like this:
291
309
 
292
310
  ```sh
@@ -109,6 +109,9 @@ module JWTSignedRequest
109
109
  end
110
110
 
111
111
  def request_body
112
+ return '' if request.body.nil?
113
+
114
+ request.body.rewind
112
115
  string = request.body.read
113
116
  request.body.rewind
114
117
  string
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JWTSignedRequest
4
- VERSION = '3.0.0'
4
+ VERSION = '4.0.0'
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: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.1.2
164
+ rubygems_version: 3.5.6
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: JWT request signing and verification for Internal APIs