mvpaas 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvpaas/auth.rb +1 -1
- data/lib/mvpaas/version.rb +1 -1
- 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: 869c015d35525ef57badd2dd8b05fb1267ef29b1
|
4
|
+
data.tar.gz: 33515242b2ad935a4ddd86be082526de515d9f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89eb092e72e61401d84d5282e063448e108060af21332b06f0c6c88d4cf648586a9697b5d6e99ce0bbbb4afc6d0064ce3b68c272f385663f5048921debc33d73
|
7
|
+
data.tar.gz: 678ae2407e573d829cd5f1bf93ed423dd2bb74436fac251cd1215b28dfcf6c84d449f5f73a8df6d44ac988cc4f0523e6d54a09ef006773f2c3df22d5e46f596f
|
data/lib/mvpaas/auth.rb
CHANGED
@@ -8,7 +8,7 @@ module MVPaaS
|
|
8
8
|
module_function
|
9
9
|
|
10
10
|
def decode(token, secret = nil)
|
11
|
-
decoded_secret = Base64.urlsafe_decode64(secret || ENV['MVPAAS_SECRET'])
|
11
|
+
decoded_secret = Base64.urlsafe_decode64(secret || ENV['MVPAAS_SECRET']).gsub("\\n","\n")
|
12
12
|
rsa_key = OpenSSL::PKey::RSA.new(decoded_secret,'').public_key
|
13
13
|
decoded_jwt = JWT.decode(token, rsa_key, true, algorithm: 'RS256')[0]
|
14
14
|
{
|
data/lib/mvpaas/version.rb
CHANGED