json-jwt 1.15.1 → 1.15.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of json-jwt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/json/jwk/set/fetcher.rb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 461b1855ba57fa3fefc481af74b1000d3d4bd23f7abaa5dbb1e9830b044e2ac5
|
4
|
+
data.tar.gz: cb1e27cb8195b468265ca461b87ecd28404ed2d0e6e91d7cb5873a3aa22e4272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad19ed8648a4106d1c87990e951235a223db45abbc1af6a2526f6fddcd880ec22b960d407d809c07ff47a698da96f8b9a3bceffcc308ebcaee053a3cb5ae4dbb
|
7
|
+
data.tar.gz: ad654c4196e72116d7bcafd39c30c9293e16fc287fc108b2529081e1c05b15b1c28bc92868c927e016f0a36fc893110d4ab625a1a11cfc861a9945cdf3d30a47
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.2
|
data/lib/json/jwk/set/fetcher.rb
CHANGED
@@ -3,7 +3,7 @@ module JSON
|
|
3
3
|
class Set
|
4
4
|
module Fetcher
|
5
5
|
class Cache
|
6
|
-
def fetch(cache_key)
|
6
|
+
def fetch(cache_key, options = {})
|
7
7
|
yield
|
8
8
|
end
|
9
9
|
end
|
@@ -60,7 +60,7 @@ module JSON
|
|
60
60
|
end
|
61
61
|
self.cache = Cache.new
|
62
62
|
|
63
|
-
def self.fetch(jwks_uri, kid:, auto_detect: true)
|
63
|
+
def self.fetch(jwks_uri, kid:, auto_detect: true, **options)
|
64
64
|
cache_key = [
|
65
65
|
'json:jwk:set',
|
66
66
|
OpenSSL::Digest::MD5.hexdigest(jwks_uri),
|
@@ -69,7 +69,7 @@ module JSON
|
|
69
69
|
|
70
70
|
jwks = Set.new(
|
71
71
|
JSON.parse(
|
72
|
-
cache.fetch(cache_key) do
|
72
|
+
cache.fetch(cache_key, options) do
|
73
73
|
http_client.get_content(jwks_uri)
|
74
74
|
end
|
75
75
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -171,7 +171,7 @@ homepage: https://github.com/nov/json-jwt
|
|
171
171
|
licenses:
|
172
172
|
- MIT
|
173
173
|
metadata: {}
|
174
|
-
post_install_message:
|
174
|
+
post_install_message:
|
175
175
|
rdoc_options: []
|
176
176
|
require_paths:
|
177
177
|
- lib
|
@@ -186,8 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
190
|
-
signing_key:
|
189
|
+
rubygems_version: 3.3.7
|
190
|
+
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and
|
193
193
|
JSON Web Key) in Ruby
|