panda_pal 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/panda_pal/engine.rb +3 -18
- data/lib/panda_pal/helpers/controller_helper.rb +1 -2
- data/lib/panda_pal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 191c2d9f7cf6b18d5ed8cbce6fe4e0df6500932aaf9d03be4acfc1988799849b
|
|
4
|
+
data.tar.gz: aa49c20146e96c20b7a4662840a1bc10e5e5582643316e0b4cfec504dbe78c5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60d1ce4ff05cec9b339f1ff9dfaa2c49e56381011a3fa51fb5fddde69c3e7717fe4d2d3ab5535f04940f0ba5fc116a8befa8235add607715acbda3ca659e192e
|
|
7
|
+
data.tar.gz: e0f27943ef2516c3fef1902428b2cb015050c8211316d13d568cbd8e65598c4f311ee916548bc44300417626fa09e7d1eb81ddda411eef4be87cd5a395116b49
|
data/lib/panda_pal/engine.rb
CHANGED
|
@@ -59,7 +59,7 @@ module PandaPal
|
|
|
59
59
|
|
|
60
60
|
SecureHeaders::Configuration.default do |config|
|
|
61
61
|
# The default cookie headers aren't compatable with PandaPal cookies currenntly
|
|
62
|
-
config.cookies =
|
|
62
|
+
config.cookies = SecureHeaders::OPT_OUT
|
|
63
63
|
|
|
64
64
|
# Need to allow LTI iframes
|
|
65
65
|
config.x_frame_options = "ALLOWALL"
|
|
@@ -78,23 +78,8 @@ module PandaPal
|
|
|
78
78
|
}
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
SecureHeaders::Configuration.override(:
|
|
82
|
-
config.cookies =
|
|
83
|
-
# Need to allow LTI iframes
|
|
84
|
-
config.x_frame_options = "ALLOWALL"
|
|
85
|
-
|
|
86
|
-
config.x_content_type_options = "nosniff"
|
|
87
|
-
config.x_xss_protection = "1; mode=block"
|
|
88
|
-
config.referrer_policy = %w(origin-when-cross-origin strict-origin-when-cross-origin)
|
|
89
|
-
|
|
90
|
-
config.csp = {
|
|
91
|
-
default_src: %w('self'),
|
|
92
|
-
script_src: script_src,
|
|
93
|
-
# Certain CSS-in-JS libraries inline the CSS, so we need to use unsafe-inline for them
|
|
94
|
-
style_src: %w('self' 'unsafe-inline' blob: https://fonts.googleapis.com),
|
|
95
|
-
font_src: %w('self' data: https://fonts.gstatic.com),
|
|
96
|
-
connect_src: connect_src,
|
|
97
|
-
}
|
|
81
|
+
SecureHeaders::Configuration.override(:non_safari_override) do |config|
|
|
82
|
+
config.cookies = { samesite: { none: true } }
|
|
98
83
|
end
|
|
99
84
|
end
|
|
100
85
|
end
|
|
@@ -26,7 +26,7 @@ module PandaPal::Helpers::ControllerHelper
|
|
|
26
26
|
|
|
27
27
|
def validate_launch!
|
|
28
28
|
authorized = false
|
|
29
|
-
use_secure_headers_override(:
|
|
29
|
+
use_secure_headers_override(:non_safari_override) if !browser.safari? && !session.loaded?
|
|
30
30
|
if @organization = params['oauth_consumer_key'] && PandaPal::Organization.find_by_key(params['oauth_consumer_key'])
|
|
31
31
|
sanitized_params = request.request_parameters
|
|
32
32
|
# These params come over with a safari-workaround launch. The authenticator doesn't like them, so clean them out.
|
|
@@ -74,7 +74,6 @@ module PandaPal::Helpers::ControllerHelper
|
|
|
74
74
|
session[:safari_cookie_fixed] = true
|
|
75
75
|
redirect_to params[:return_to]
|
|
76
76
|
else
|
|
77
|
-
use_secure_headers_override(:safari_override)
|
|
78
77
|
render 'panda_pal/lti/iframe_cookie_fix', layout: false
|
|
79
78
|
end
|
|
80
79
|
end
|
data/lib/panda_pal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: panda_pal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Instructure ProServe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|