mumukit-login 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ef7c7d700c257b6340ad2655078dac635fae9a215c7edfc8454420ac504ad30
4
- data.tar.gz: 3d7bcf73479a2bcfb39aa50928618b231b9abc97efe2271340cec4ee74f64db0
3
+ metadata.gz: dc7340464e41a5ea2b0659d554d2fd888f7a04c893284c7bd23d81eab2165dcc
4
+ data.tar.gz: 2beeb54cc8cdad9c8490acd05c02a0410ac969d082f805b85c2ac4571a73ec6e
5
5
  SHA512:
6
- metadata.gz: 9491e8d63e8b840b9b89e143d0db534865de90d913077df05c72005e30c15ecb135ca9492aa23017e01b901d4d881b7ecd6a14dcffd4e23c5e0b695f6bb3aece
7
- data.tar.gz: d9fe1a7de013769a663604fd47fe9d7d73942b90838c833c9dea50e3c8d31a1c16e095e2687d92f2dbc45197dd23e56ff1f6987618fff704a30ff469353def32
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(auth: {
30
+ .merge(
31
+ auth: {
31
32
  redirect: true,
32
- redirectUrl: callback_url},
33
- responseType: 'code',
34
- authParams: { scope: 'openid profile' })
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '5.2.0'
3
+ VERSION = '5.3.0'
4
4
  end
5
5
  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: 5.2.0
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-04-27 00:00:00.000000000 Z
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.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.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.6
248
+ rubygems_version: 2.7.7
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Library for login mumuki requests