json-jwt 0.5.4 → 0.5.5
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.rb +1 -0
- data/lib/json/jwk/set.rb +1 -1
- data/spec/json/jwk_spec.rb +8 -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: 7649be617fc501060e8befd700c60cdb8ce8a12d
|
4
|
+
data.tar.gz: 9651a7ce62ff0b6f6d2871d7efca3c59d643dce4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42db1a5ec52bd3ed4c9ef99c96eeffa03c9f2eef67390ad95afbf9d7b6a126d8dacc58ec6f09a50acd65b8f775a5d4829754ef94455f8a864bc353397b375d3
|
7
|
+
data.tar.gz: 6f73a187ff937ed434af26029ba8af42d6b6a0a523171c18006bd2db53b29128ff81eb6bc8517e35d973783421a88cc946ad2bc6756aa97e88a62eeee27e7ef9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/lib/json/jwk.rb
CHANGED
data/lib/json/jwk/set.rb
CHANGED
data/spec/json/jwk_spec.rb
CHANGED
@@ -109,6 +109,14 @@ NrqoxoakrPo1NI1u+ET8oWGmnjB/nJFAPwIDAQAB
|
|
109
109
|
|
110
110
|
it { should be_instance_of OpenSSL::PKey::RSA }
|
111
111
|
its(:to_pem) { should == pem }
|
112
|
+
|
113
|
+
it 'should support string keys' do
|
114
|
+
JSON::JWK.decode(
|
115
|
+
'kty' => 'RSA',
|
116
|
+
'n' => n,
|
117
|
+
'e' => e
|
118
|
+
).should be_instance_of OpenSSL::PKey::RSA
|
119
|
+
end
|
112
120
|
end
|
113
121
|
|
114
122
|
context 'when ECDSA' do
|