authrocket 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/authrocket.gemspec +1 -1
- data/lib/authrocket/api/version.rb +1 -1
- data/lib/authrocket/auth_provider.rb +1 -1
- data/lib/authrocket/session.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fa4ce2b3ff2db141f60cafe4b4b895a1e489e12
|
4
|
+
data.tar.gz: 0b796599b1c91983addb2c67f0df152eab987110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58964c8728ca38ba00ad57431977e6490a9fc41a83e9a520c75d6c1632df4c705685b20ef6117a28c5af749ded4234f5cebad7d247a29d7d7598bb147d4c0500
|
7
|
+
data.tar.gz: e2e76576332df5782e2a02e12f3bc5f9ccdfc568e46afac48a2685cf895440cb39ff5e962c2039790d2c21914dd71644f0ef5f4c8cc0197d6a1be2a5ff28bbaa
|
data/CHANGELOG.md
CHANGED
data/authrocket.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
21
|
gem.add_dependency 'ncore', '~> 1.2'
|
22
|
-
gem.add_dependency 'jwt', '~> 1.
|
22
|
+
gem.add_dependency 'jwt', '~> 1.5.0'
|
23
23
|
|
24
24
|
gem.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
gem.add_development_dependency "rake"
|
data/lib/authrocket/session.rb
CHANGED
@@ -14,7 +14,7 @@ module AuthRocket
|
|
14
14
|
raise Error, "missing :jwt_secret (or AUTHROCKET_JWT_SECRET)" unless secret
|
15
15
|
return unless token
|
16
16
|
|
17
|
-
jwt, _ = JWT.decode token, secret
|
17
|
+
jwt, _ = JWT.decode token, secret, true, algorithm: 'HS256'
|
18
18
|
|
19
19
|
if within = options.delete(:within)
|
20
20
|
return if jwt['iat'] < Time.now.to_i - within
|
@@ -48,7 +48,7 @@ module AuthRocket
|
|
48
48
|
}, api_creds)
|
49
49
|
|
50
50
|
session
|
51
|
-
rescue JWT::DecodeError
|
51
|
+
rescue JWT::DecodeError
|
52
52
|
nil
|
53
53
|
end
|
54
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authrocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ncore
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|