mumukit-login 5.2.0 → 5.3.0
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/mumukit/login/provider/auth0.rb +1 -2
- data/lib/mumukit/login/settings.rb +10 -5
- data/lib/mumukit/login/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc7340464e41a5ea2b0659d554d2fd888f7a04c893284c7bd23d81eab2165dcc
|
|
4
|
+
data.tar.gz: 2beeb54cc8cdad9c8490acd05c02a0410ac969d082f805b85c2ac4571a73ec6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f8ba5fa738f6446963b671b1d1459a31b61a3edbb57687fde39b6c420086ac3fae237efa9daaca7552396767d40041f8488a5c2d95e7f4e4bd475a9b9841044
|
|
7
|
+
data.tar.gz: 8b6142c70010553676fd3f21c5bc6499344beffc431d4286551c0540c319248cb80c593c3403de361f171c6d3d547c840ebb11aa4f8a8a6dce11033b8e05539f
|
|
@@ -41,7 +41,6 @@ HTML
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def lock_settings(controller, login_settings, options)
|
|
44
|
-
login_settings.to_lock_json(controller.url_for(callback_path), options)
|
|
44
|
+
login_settings.to_lock_json(controller.url_for(callback_path), Mumukit::Platform::Organization.current_locale, options)
|
|
45
45
|
end
|
|
46
|
-
|
|
47
46
|
end
|
|
@@ -25,13 +25,18 @@ class Mumukit::Login::Settings
|
|
|
25
25
|
login_methods - [:user_pass]
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def to_lock_json(callback_url, options={})
|
|
28
|
+
def to_lock_json(callback_url, locale, options={})
|
|
29
29
|
lock_json_spec
|
|
30
|
-
.merge(
|
|
30
|
+
.merge(
|
|
31
|
+
auth: {
|
|
31
32
|
redirect: true,
|
|
32
|
-
redirectUrl: callback_url
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
redirectUrl: callback_url
|
|
34
|
+
},
|
|
35
|
+
params: {
|
|
36
|
+
locale: locale
|
|
37
|
+
},
|
|
38
|
+
responseType: 'code',
|
|
39
|
+
authParams: {scope: 'openid profile'})
|
|
35
40
|
.merge(options)
|
|
36
41
|
.to_json
|
|
37
42
|
.html_safe
|
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: 5.
|
|
4
|
+
version: 5.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: 2018-
|
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -184,14 +184,14 @@ dependencies:
|
|
|
184
184
|
requirements:
|
|
185
185
|
- - "~>"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: '1.
|
|
187
|
+
version: '1.5'
|
|
188
188
|
type: :runtime
|
|
189
189
|
prerelease: false
|
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: '1.
|
|
194
|
+
version: '1.5'
|
|
195
195
|
description:
|
|
196
196
|
email:
|
|
197
197
|
- franco@mumuki.org
|
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
245
245
|
version: '0'
|
|
246
246
|
requirements: []
|
|
247
247
|
rubyforge_project:
|
|
248
|
-
rubygems_version: 2.7.
|
|
248
|
+
rubygems_version: 2.7.7
|
|
249
249
|
signing_key:
|
|
250
250
|
specification_version: 4
|
|
251
251
|
summary: Library for login mumuki requests
|