mumukit-login 7.2.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/login/mucookie.rb +2 -0
- data/lib/mumukit/login/mucookie/store.rb +14 -0
- data/lib/mumukit/login/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d86c08686a70a40b6b3395cfc566d7b1f210289525716f3c5413cd60977704
|
4
|
+
data.tar.gz: 983a7c19738beb01b0a23f8c03e7bd98dc6ca51d983a26179d4019f3b1a83b85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3868084c92bef7ba72a7eb6289229adad904eeb932206cc23f46f2be0d738d3fbdbc72d2adf66515018f615680b1cd06c0ab398a134bfcbb8819888ba4593f35
|
7
|
+
data.tar.gz: 6b15059270ff67d166129a95e3f8930f5c00f5bb457bd8c9c04dcba0a50f28814f0faf3786781fdfc38689c55b815ef86ba56e933cd62e3762d22282279a4c57
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'action_dispatch'
|
2
|
+
|
3
|
+
class Mumukit::Login::Mucookie::Store < ActionDispatch::Session::CookieStore
|
4
|
+
def set_cookie(request, session_id, cookie)
|
5
|
+
cookie.merge! same_site: :none if on_embeddable_organization?(request)
|
6
|
+
super
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def on_embeddable_organization?(request)
|
12
|
+
Mumukit::Platform::Organization.find_by_name!(request.cookies['mucookie_login_organization']).embeddable? rescue false
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
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: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3'
|
47
|
+
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +234,20 @@ dependencies:
|
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '5.0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: actionpack
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '5.1'
|
244
|
+
type: :runtime
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '5.1'
|
237
251
|
description:
|
238
252
|
email:
|
239
253
|
- franco@mumuki.org
|
@@ -257,6 +271,7 @@ files:
|
|
257
271
|
- lib/mumukit/login/helpers/login_settings_helpers.rb
|
258
272
|
- lib/mumukit/login/helpers/organization_helpers.rb
|
259
273
|
- lib/mumukit/login/mucookie.rb
|
274
|
+
- lib/mumukit/login/mucookie/store.rb
|
260
275
|
- lib/mumukit/login/origin_redirector.rb
|
261
276
|
- lib/mumukit/login/profile.rb
|
262
277
|
- lib/mumukit/login/provider.rb
|