grape-jwt-authentication 2.0.0 → 2.0.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/lib/grape/jwt/authentication/configuration.rb +3 -4
- data/lib/grape/jwt/authentication/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00a891189e6112551bcafe2469783cbb39c6fdd1f923fd0131a8e6be9d693405
|
4
|
+
data.tar.gz: 24b25986aa9a88e9f3f279554233c5e5e2e5a3de99abb5bc4525fa31eb097429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d674a6dd8fd413e5a565d12998b3d161a0dea5fecad9b9cb16532e35634750df7049a8ceed133726f351a0f4b084403e93866ef0d546ecd67bc738021a4554
|
7
|
+
data.tar.gz: 23ccc11a897827a771c50470d61142b46eb11b3ed90f0e7cb2a3bfba7021f456e8cb1317d1eca4ac2a6c283de02b956e3aafd679cfabbaad1adcebe606546794
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 2.0.1
|
2
|
+
|
3
|
+
* Corrected a migration bug on the configuration which used the wrong namespace
|
4
|
+
for `RsaPublicKey` (resulted in `uninitialized constant
|
5
|
+
Grape::Jwt::Authentication::Configuration::RsaPublicKey`)
|
6
|
+
|
1
7
|
### 2.0.0
|
2
8
|
|
3
9
|
* Extracted the JWT verification functionality into its own gem
|
@@ -118,11 +118,10 @@ module Grape
|
|
118
118
|
# This way you can pass your HMAC secret or your ECDSA public key to
|
119
119
|
# the JSON Web Token validation method. Here you need to pass a proc,
|
120
120
|
# on the {Grape::Jwt::Authentication::Jwt} class it has to be a scalar
|
121
|
-
# value. By default we use the
|
122
|
-
#
|
123
|
-
# public key.
|
121
|
+
# value. By default we use the {Keyless::RsaPublicKey} class to
|
122
|
+
# retrieve the RSA public key.
|
124
123
|
config_accessor(:jwt_verification_key) do
|
125
|
-
proc { RsaPublicKey.instance.fetch }
|
124
|
+
proc { Keyless::RsaPublicKey.instance.fetch }
|
126
125
|
end
|
127
126
|
end
|
128
127
|
end
|