coalescing_panda 5.1.3.beta.1 → 5.1.6
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 +4 -5
- data/lib/coalescing_panda/version.rb +1 -1
- 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: 3c0b0b249320d5db112a89c9a693b50b6807e98c
|
4
|
+
data.tar.gz: 57061568754c56a6f35f35853181548f8298c5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e462c5fc937e07589361631c1f323a35d9f320e22dbc25163ecf5729231177e4b351fa9f172e30fae062c5acbf4e9cb8ea3444605af536af87f0ac998b82d86f
|
7
|
+
data.tar.gz: f21df410d83e739104ecafb58e373d86bbfb8ade5ade8b141e9a2354384f725c33759ccb09caaef61c1be99e3342a36b95b38bc0b672410a35cebc93c74938a7
|
@@ -32,11 +32,6 @@ module CoalescingPanda
|
|
32
32
|
if params[:session_token]
|
33
33
|
payload = JSON.parse(session_cryptor.decrypt_and_verify(params[:session_token])).with_indifferent_access
|
34
34
|
matched_session = find_or_create_session(key: payload[:session_key])
|
35
|
-
session_expiration_period_minutes = CoalescingPanda.lti_options[:session_expiration_period_minutes] || 15
|
36
|
-
session_expiration_period_minutes = session_expiration_period_minutes.to_i
|
37
|
-
puts "XXXXX"
|
38
|
-
puts session_expiration_period_minutes
|
39
|
-
puts session_expiration_period_minutes.minutes.ago
|
40
35
|
if matched_session.present?
|
41
36
|
if payload[:token_type] == 'nonce' && matched_session.data[:link_nonce] == payload[:nonce]
|
42
37
|
@current_session = matched_session
|
@@ -131,6 +126,10 @@ module CoalescingPanda
|
|
131
126
|
self.class.link_nonce_type
|
132
127
|
end
|
133
128
|
|
129
|
+
def session_expiration_period_minutes
|
130
|
+
15
|
131
|
+
end
|
132
|
+
|
134
133
|
private
|
135
134
|
|
136
135
|
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.
|
4
|
+
version: 5.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-10-
|
13
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -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
|