firebase_id_token 2.5.0 → 2.5.1

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: d323f3f19f0e2cfa9f511adac526f38261ee28386d4abc210a22e26358008143
4
- data.tar.gz: 82095062bbd88ebfe9ddbee3f769f2bc9e4fb0b9289fa673f4bf81d6a24132d0
3
+ metadata.gz: 789eeab7c0ec306d0a64b2c7564f590fdf54d2d93891d8c15f6797a49dada26a
4
+ data.tar.gz: 236c1161cb5141fa7b1658660463431715a3a449c48e94fbc3424df92101dd7a
5
5
  SHA512:
6
- metadata.gz: 5d056894ee1051fb9ccb0984624282805f153aca7e9bb41b5d3b39a93b749150311e45e11f7e182fdb4ee1814bea722a5fc49ddb975394f319edb3bbea7424d6
7
- data.tar.gz: 998d1b74cdf9b036892e12ab9e7c271417ead8d18c6bbb8dcea04ea555c4fe6a856b79840872676c4aa530726132826f795c686ba5096502004a22ab7df82751
6
+ metadata.gz: 8e5d277ce83b6deb7d9434d62d4545b405d6bd7a7248588fca7b21209cfac8181bd1593d96b11119a64652a76f4d3463f28ab0645e2c3d3f5c3d5cce8a0b4644
7
+ data.tar.gz: 8eddfe41e764ce2ab21b797fd27853d96466cde7339bd7ef56021f1d835e92dd388cdabb0f027a112abce83a1d5cbc0b6a36e24332e9bc453d67ad9a9f3f29df
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.5.1] - 2022-08-15
10
+
11
+ ### Fixed
12
+ - "[New caching doesn't honor request! calls](https://github.com/fschuindt/firebase_id_token/issues/35)", by reverting "[Caching certificates on memory.](https://github.com/fschuindt/firebase_id_token/pull/33)", PR #33.
13
+
9
14
  ## [2.5.0] - 2022-04-13
10
15
 
11
16
  ### Fixed
@@ -109,6 +114,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
109
114
  ## [0.1.0] - 2017-04-23
110
115
  *Version removed.*
111
116
 
117
+ [2.5.1]: https://github.com/fschuindt/firebase_id_token/compare/2.5.0...2.5.1
112
118
  [2.5.0]: https://github.com/fschuindt/firebase_id_token/compare/2.4.0...2.5.0
113
119
  [2.4.0]: https://github.com/fschuindt/firebase_id_token/compare/2.3.2...2.4.0
114
120
  [2.3.2]: https://github.com/fschuindt/firebase_id_token/compare/2.3.1...2.3.2
data/README.md CHANGED
@@ -29,7 +29,7 @@ gem install firebase_id_token
29
29
 
30
30
  or in your Gemfile
31
31
  ```
32
- gem 'firebase_id_token', '~> 2.5.0'
32
+ gem 'firebase_id_token', '~> 2.5.1'
33
33
  ```
34
34
  then
35
35
  ```
@@ -78,20 +78,7 @@ module FirebaseIdToken
78
78
 
79
79
  # @see Signature.verify
80
80
  def verify
81
- var_name = :_firebase_id_token_cert
82
- Thread.current[var_name] ||= {
83
- cert: nil,
84
- expires_at: Time.now.utc - 1
85
- }
86
-
87
- if Thread.current[var_name][:expires_at] <= Time.now.utc
88
- Thread.current[var_name] = {
89
- cert: firebase_id_token_certificates.find(@kid, raise_error: @raise_error),
90
- expires_at: Time.now.utc + firebase_id_token_certificates.ttl
91
- }
92
- end
93
-
94
- certificate = Thread.current[var_name][:cert]
81
+ certificate = firebase_id_token_certificates.find(@kid, raise_error: @raise_error)
95
82
  return unless certificate
96
83
 
97
84
  payload = decode_jwt_payload(@jwt_token, certificate.public_key)
@@ -80,10 +80,6 @@ module FirebaseIdToken
80
80
  )
81
81
  )
82
82
  end
83
-
84
- def self.ttl
85
- 10
86
- end
87
83
  end
88
84
  end
89
85
  end
@@ -1,3 +1,3 @@
1
1
  module FirebaseIdToken
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase_id_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Schuindt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler