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 +4 -4
- data/lib/mumukit/login/provider/auth0.rb +1 -1
- data/lib/mumukit/login/settings.rb +1 -1
- data/lib/mumukit/login/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae077ab39db6a0b0f79ed6b997b34b509086f7b0
|
4
|
+
data.tar.gz: e3b16642385f0813a0530b39c448c2dbe6234e94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}'
|
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(
|
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
|