mumukit-login 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: ae65819393359fb8300c35b76f98515040520133
4
- data.tar.gz: 313ee8cdead5fb402714dc264ce0cfacf52e1467
3
+ metadata.gz: ae077ab39db6a0b0f79ed6b997b34b509086f7b0
4
+ data.tar.gz: e3b16642385f0813a0530b39c448c2dbe6234e94
5
5
  SHA512:
6
- metadata.gz: a913d8cf5e120e031384188c21d3e8d75d1a9349af8c40402e1b57dba1e79fb4a5eff053699ecb6becb5fa2346502636d4c70190eccd0dc24b7e1dc2922185f8
7
- data.tar.gz: 799d137c1cb904d3e92712bb4ab21db9e33ebc9857043f609a6b82cfd994360e4d3471264ac09e686426df6d79ca9e059e52b34d2ff72c961b0276de9c2c6f77
6
+ metadata.gz: b18675db8ded91a87d1ce5ca96bcad7cd0775bd8a9b1ce3393c03bec06bc248c0837e55d5de711585cd9a011244396975f425fc12e6aa16a9a8e20c5a7ab8cd8
7
+ data.tar.gz: 0cab043d272a9acf4734e47e41361dba026c50b897247673e10531192cf8f4b27a05e0b8a89142a731fe6772de155fd6ada196ae137e31e2bbf5b61181077e18
@@ -11,7 +11,7 @@ class Mumukit::Login::Provider::Auth0 < Mumukit::Login::Provider::Base
11
11
  settings = lock_settings(controller, login_settings, {closable: false})
12
12
  controller.render_html! <<HTML
13
13
  <script type="text/javascript">
14
- new Auth0Lock('#{auth0_config.client_id}', '#{auth0_config.domain}').show(#{settings});
14
+ new Auth0Lock('#{auth0_config.client_id}', '#{auth0_config.domain}', JSON.parse('#{settings}')).show();
15
15
  </script>
16
16
  HTML
17
17
  end
@@ -27,7 +27,7 @@ class Mumukit::Login::Settings
27
27
 
28
28
  def to_lock_json(callback_url, options={})
29
29
  lock_json
30
- .merge(callbackURL: callback_url, responseType: 'code', authParams: {scope: 'openid profile'})
30
+ .merge(auth: {redirect: true, redirectUrl: callback_url}, responseType: 'code', authParams: {scope: 'openid profile'})
31
31
  .merge(options)
32
32
  .to_json
33
33
  .html_safe
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli