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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/firebase_id_token/signature.rb +1 -14
- data/lib/firebase_id_token/testing/certificates.rb +0 -4
- data/lib/firebase_id_token/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 789eeab7c0ec306d0a64b2c7564f590fdf54d2d93891d8c15f6797a49dada26a
|
4
|
+
data.tar.gz: 236c1161cb5141fa7b1658660463431715a3a449c48e94fbc3424df92101dd7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -78,20 +78,7 @@ module FirebaseIdToken
|
|
78
78
|
|
79
79
|
# @see Signature.verify
|
80
80
|
def verify
|
81
|
-
|
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)
|
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.
|
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-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|