coalescing_panda 4.1.9 → 4.1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cccef2179435913dc8479713bfe97baca913ffa4
|
4
|
+
data.tar.gz: 6eed848e22fc27854dae01f0383da9189be57bb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d69a4572462912c8e10129c23a7073a26f401f94e5adc9d73befd852986c5bdb54b8ec95d5547d30d19346f9b650c7bde17d10a217813f707bdcbfc549f3e91
|
7
|
+
data.tar.gz: b1fbeb9b30fb82e3dca1603bbf304c1cba5d95b777de2bac6507b2c62a22134ef0fa716cbcaf72b8473d344f64dde115ea10af8792710a53ff792cd107a48504
|
@@ -51,12 +51,12 @@ module CoalescingPanda
|
|
51
51
|
if %w(course account user).include?(name)
|
52
52
|
tail = '_navigation' unless name.include? '_navigation'
|
53
53
|
end
|
54
|
-
(name
|
54
|
+
([name, tail].join).to_sym
|
55
55
|
end
|
56
56
|
|
57
57
|
def ext_params(options)
|
58
58
|
url = options.delete(:url)
|
59
|
-
options[:url] = main_app.send(url
|
59
|
+
options[:url] = main_app.send([url,'_url'].join)
|
60
60
|
options
|
61
61
|
end
|
62
62
|
|
@@ -13,7 +13,7 @@ module CoalescingPanda
|
|
13
13
|
client_key = lti_account.oauth2_client_key
|
14
14
|
user_id = params[:user_id]
|
15
15
|
api_domain = params[:api_domain]
|
16
|
-
client = Bearcat::Client.new(prefix: oauth2_protocol
|
16
|
+
client = Bearcat::Client.new(prefix: [oauth2_protocol, '://', api_domain].join)
|
17
17
|
token = client.retrieve_token(client_id, coalescing_panda.oauth2_redirect_url, client_key, params['code'])
|
18
18
|
CanvasApiAuth.where('user_id = ? and api_domain = ?', user_id, api_domain).first_or_create do |auth|
|
19
19
|
auth.api_token = token
|
@@ -10,7 +10,7 @@ module CoalescingPanda
|
|
10
10
|
uri = URI.parse(launch_presentation_return_url)
|
11
11
|
api_domain = uri.host
|
12
12
|
api_domain = "#{api_domain}:#{uri.port.to_s}" if uri.port
|
13
|
-
scheme = uri.scheme
|
13
|
+
scheme = [uri.scheme, '://'].join
|
14
14
|
@lti_params = params.to_hash
|
15
15
|
session['user_id'] = user_id
|
16
16
|
session['uri'] = launch_presentation_return_url
|