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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9e494045d3518b66b6f0232a21b03c0e126d8c7
4
- data.tar.gz: 35808ffef78a1a3aa1fa4dd559e2910fda8c0ed8
3
+ metadata.gz: 869c015d35525ef57badd2dd8b05fb1267ef29b1
4
+ data.tar.gz: 33515242b2ad935a4ddd86be082526de515d9f37
5
5
  SHA512:
6
- metadata.gz: 1bf44a3556d8d22194480a29acd9c7c0986673598bb98d221b099a1350bc80ad40a5d1cc052bedc047a3fd5515f6af08c71696c813f90bfbe6a36163e1467bdb
7
- data.tar.gz: e90efd29651f1c8d15185851d71bbae1c8dca14ca4b4b1b8e9f80ce3cba5dea0b856696c1960c1e15b157b3c415538b211aff45a8783e23e1acd36dc27624689
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
  {
@@ -1,3 +1,3 @@
1
1
  module MVPaaS
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvpaas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Montgomery