coalescing_panda 5.1.3.beta.2 → 5.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coalescing_panda/session_replacement.rb +1 -8
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d95162b1397f3f63cefeea2307d14bdb446771
|
4
|
+
data.tar.gz: 3c81934197e230702d93700cb4c4706cbcbf78fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9321fcd178dd6df1990e91b17676ca9e6d2762e8fe0aa6b27e00b26a7951470518eb1e4f847a9e4b73757ee264968a8a5f2ed55f2f7f6d33f8919269e0e4294
|
7
|
+
data.tar.gz: 0f96f9df3de844abc278f249ef0ec239537109762815b91b4c0dcdda72481116580b42e7b142b8e790959acb2e7b6add2642411071b1d29353ec8994a40658db
|
@@ -20,10 +20,6 @@ module CoalescingPanda
|
|
20
20
|
@link_nonce_type = value
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
24
|
-
def session_expiration_period_minutes
|
25
|
-
superclass.try(:session_expiration_period_minutes) || 15
|
26
|
-
end
|
27
23
|
end
|
28
24
|
|
29
25
|
def save_session
|
@@ -36,6 +32,7 @@ module CoalescingPanda
|
|
36
32
|
if params[:session_token]
|
37
33
|
payload = JSON.parse(session_cryptor.decrypt_and_verify(params[:session_token])).with_indifferent_access
|
38
34
|
matched_session = find_or_create_session(key: payload[:session_key])
|
35
|
+
session_expiration_period_minutes = superclass.try(:session_expiration_period_minutes) || 15
|
39
36
|
if matched_session.present?
|
40
37
|
if payload[:token_type] == 'nonce' && matched_session.data[:link_nonce] == payload[:nonce]
|
41
38
|
@current_session = matched_session
|
@@ -130,10 +127,6 @@ module CoalescingPanda
|
|
130
127
|
self.class.link_nonce_type
|
131
128
|
end
|
132
129
|
|
133
|
-
def session_expiration_period_minutes
|
134
|
-
self.session_expiration_period_minutes
|
135
|
-
end
|
136
|
-
|
137
130
|
private
|
138
131
|
|
139
132
|
def session_cryptor
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coalescing_panda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.3
|
4
|
+
version: 5.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
@@ -574,9 +574,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
574
574
|
version: '0'
|
575
575
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
576
576
|
requirements:
|
577
|
-
- - "
|
577
|
+
- - ">="
|
578
578
|
- !ruby/object:Gem::Version
|
579
|
-
version:
|
579
|
+
version: '0'
|
580
580
|
requirements: []
|
581
581
|
rubyforge_project:
|
582
582
|
rubygems_version: 2.6.14.4
|