json-jwt 1.3.0 → 1.3.1
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.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05de8b3155d7e83d6f5fa6e4e9f157a775049cd5
|
4
|
+
data.tar.gz: 08e6eea95c7e4b7fcfef3df410c9180bb1687042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9267cdcd5e667ababeb3924d22ff9f883ecae48152be82201dbf9a4ac7243bc950d737db479904a84936123ac5127847b3089219e8cc57d6e382ab9bb46aec7
|
7
|
+
data.tar.gz: 57299440c5fb636ee600d13112b21a97b512afb5d581e2719fce6cc0bdd6e9449c7a0bb6f0978f26951b20bf91e8a0a77817586eef7ea86259f84c250538ab43
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.1
|
data/lib/json/jwk/set.rb
CHANGED
@@ -4,6 +4,11 @@ module JSON
|
|
4
4
|
class KidNotFound < JWT::Exception; end
|
5
5
|
|
6
6
|
def initialize(*jwks)
|
7
|
+
jwks = if jwks.first.is_a?(Hash) && (keys = jwks.first.with_indifferent_access[:keys])
|
8
|
+
keys
|
9
|
+
else
|
10
|
+
jwks
|
11
|
+
end
|
7
12
|
jwks = Array(jwks).flatten.collect do |jwk|
|
8
13
|
JWK.new jwk
|
9
14
|
end
|