mumukit-login 4.2.0 → 4.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/locales/pt.yml +4 -0
- data/lib/mumukit/login/settings.rb +9 -5
- data/lib/mumukit/login/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c335e1cb909141049584dd906c6f69964728f47075350a162cdfc9044b8bdc63
|
4
|
+
data.tar.gz: 7c0b91ff933d3b763ecd7bec7a186cd01b9d06b03dba4e4b67d8060c4442b7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9503c0a99c7c5bc8e32e57d227e3b3b6ffd89436c15fdc26250f2d7cf57d89994e4ca05cfd58208450d3fd1659d3a803aceb3e5e2a87a609ad4c89ecb322da2a
|
7
|
+
data.tar.gz: aadf3f71c17afa9e0c70426091166c9c7811e595d5619d5a710bdb522ea7e0a9a9430d9018a6aa43902d983a4abd1498b58b2bdfa42a37703292a41ea1341e48
|
data/lib/locales/pt.yml
ADDED
@@ -26,21 +26,25 @@ class Mumukit::Login::Settings
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def to_lock_json(callback_url, options={})
|
29
|
-
|
30
|
-
.merge(auth: {
|
29
|
+
lock_json_spec
|
30
|
+
.merge(auth: {
|
31
|
+
redirect: true,
|
32
|
+
redirectUrl: callback_url},
|
33
|
+
responseType: 'code',
|
34
|
+
authParams: { scope: 'openid profile' })
|
31
35
|
.merge(options)
|
32
36
|
.to_json
|
33
37
|
.html_safe
|
34
38
|
end
|
35
39
|
|
36
|
-
def
|
40
|
+
def lock_json_spec
|
37
41
|
{
|
38
42
|
languageDictionary: {
|
39
43
|
title: 'Mumuki',
|
40
44
|
signUpTerms: I18n.t(:accept_terms_and_conditions, terms_url: Mumukit::Login.config.terms_url)
|
41
45
|
},
|
42
46
|
mustAcceptTerms: true,
|
43
|
-
language: I18n.locale,
|
47
|
+
language: Mumukit::Platform::Locale::SPECS[I18n.locale][:auth0_code],
|
44
48
|
allowedConnections: lock_login_methods,
|
45
49
|
socialButtonStyle: many_methods? ? 'small' : 'big',
|
46
50
|
rememberLastLogin: true,
|
@@ -63,4 +67,4 @@ class Mumukit::Login::Settings
|
|
63
67
|
def self.default_methods
|
64
68
|
[:user_pass]
|
65
69
|
end
|
66
|
-
end
|
70
|
+
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: 4.
|
4
|
+
version: 4.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-02-02 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: '0.
|
187
|
+
version: '0.9'
|
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: '0.
|
194
|
+
version: '0.9'
|
195
195
|
description:
|
196
196
|
email:
|
197
197
|
- franco@mumuki.org
|
@@ -201,6 +201,7 @@ extra_rdoc_files: []
|
|
201
201
|
files:
|
202
202
|
- lib/locales/en.yml
|
203
203
|
- lib/locales/es.yml
|
204
|
+
- lib/locales/pt.yml
|
204
205
|
- lib/mumukit/login.rb
|
205
206
|
- lib/mumukit/login/controller.rb
|
206
207
|
- lib/mumukit/login/form.rb
|