lti_provider_engine 1.0.0 → 1.1.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8d8496603692f7ba7219cf44f5ab72d3f4088b233dad480a6c6e758ef8598137
|
4
|
+
data.tar.gz: 9ce4cb383d05b7c8bacb081d2a0d20eb9af9f59182a3904c16d6cc0dca4aaf3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9678432c03e73b2965dcdfb5b77b3b3847959b4ddf800edaad6de4d42977f3e981eebdd9a8c942667c6c4ba6948dddb17689900e5d1db87e8421f8dc2b714757
|
7
|
+
data.tar.gz: aa8218bae7ee4f34a741318df877db63aabe534adcbc004728b81cdb0cd591b852ee436f67871984bea81485bc332f6b2750f5351d626a7ef8115fa6e6eb4aff
|
data/lib/lti_provider/version.rb
CHANGED
@@ -43,6 +43,8 @@ module Dummy
|
|
43
43
|
# like if you have constraints or database-specific column types
|
44
44
|
# config.active_record.schema_format = :sql
|
45
45
|
|
46
|
+
config.active_record.sqlite3.represent_boolean_as_integer = true
|
47
|
+
|
46
48
|
# Enable the asset pipeline
|
47
49
|
config.assets.enabled = true
|
48
50
|
|
@@ -4,5 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.secret_token = '8f96a1f3e47ab183a6d3c4c5ac4c1ae9f1b271effdba9e1e9ebfbb7cba9bf0fad6182c716dc62c604cbaaae6d86e93c26b867262a04ef0ad770ece90161ede0e'
|
8
7
|
Dummy::Application.config.secret_key_base = '2a505b354d477f5afeb132e5fa73bd13d118cf0a5b0faa3f7f14dc1dcb6c518d5d0a01ad8dd8c9ea3f46052723fc0a7ef04d22e80bd52109986458d64fe372c5'
|
data/spec/dummy/log/test.log
CHANGED
@@ -7471,3 +7471,237 @@ Completed 302 Found in 10ms (ActiveRecord: 0.4ms)
|
|
7471
7471
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7472
7472
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7473
7473
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7474
|
+
Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
|
7475
|
+
Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
|
7476
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7477
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7478
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7479
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7480
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7481
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7482
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7483
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7484
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7485
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7486
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7487
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7488
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7489
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7490
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"uVXB75f6y17bwDBcjzxJFnE8QKgP37XOmJc89x2Q8", "oauth_signature"=>"/JNhxSqH+0snOy/FSNK+5dLrVvY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
|
7491
|
+
Rendering text template
|
7492
|
+
Rendered text template (0.0ms)
|
7493
|
+
Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
7494
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7495
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7496
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7497
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc", "oauth_signature"=>"VpgFGV20K9Swds1Iwjt0FuP9L64=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
|
7498
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7499
|
+
[1m[36mLtiProvider::Launch Create (0.7ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc\noauth_signature: VpgFGV20K9Swds1Iwjt0FuP9L64=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878063'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:03.041767"], ["updated_at", "2018-05-09 15:01:03.041767"]]
|
7500
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7501
|
+
Redirected to http://test.host/cookie_test?nonce=sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc
|
7502
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.9ms)
|
7503
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
7504
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7505
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7506
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7507
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc", "oauth_signature"=>"6gazGW173bKh9cDleqz+sS/jp64=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
|
7508
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7509
|
+
[1m[36mLtiProvider::Launch Create (0.5ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: 8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc\noauth_signature: 6gazGW173bKh9cDleqz+sS/jp64=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878063'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:03.062058"], ["updated_at", "2018-05-09 15:01:03.062058"]]
|
7510
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7511
|
+
Redirected to http://test.host/cookie_test?nonce=8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc
|
7512
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
|
7513
|
+
[1m[36mLtiProvider::Launch Load (0.0ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
7514
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7515
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7516
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7517
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"wCnHHfuf9k9twrkNFIqbq4y1uT3q16G9ewEDEmMETs", "oauth_signature"=>"SBVyITDeyeLkDtvd7tlR+do4rxc=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
|
7518
|
+
Rendering text template
|
7519
|
+
Rendered text template (0.0ms)
|
7520
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
7521
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7522
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7523
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7524
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.073881"], ["updated_at", "2018-05-09 15:01:03.073881"]]
|
7525
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7526
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7527
|
+
Parameters: {"nonce"=>"abcd"}
|
7528
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.076201') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7529
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7530
|
+
[1m[36mLtiProvider::Launch Destroy (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
|
7531
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7532
|
+
Redirected to http://test.host/
|
7533
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
|
7534
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
|
7535
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7536
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7537
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7538
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.084360"], ["updated_at", "2018-05-09 15:01:03.084360"]]
|
7539
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7540
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7541
|
+
Parameters: {"nonce"=>"abcd"}
|
7542
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.086710') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7543
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7544
|
+
[1m[36mLtiProvider::Launch Destroy (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
|
7545
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7546
|
+
Redirected to http://test.host/
|
7547
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
7548
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7549
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7550
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7551
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.090553"], ["updated_at", "2018-05-09 15:01:03.090553"]]
|
7552
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7553
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7554
|
+
Parameters: {"nonce"=>"invalid"}
|
7555
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.092750') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
|
7556
|
+
Rendering text template
|
7557
|
+
Rendered text template (0.0ms)
|
7558
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7559
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7560
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7561
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7562
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.095958"], ["updated_at", "2018-05-09 15:01:03.095958"]]
|
7563
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7564
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7565
|
+
[1m[36mLtiProvider::Launch Update (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2018-05-09 14:51:03.097258"], ["updated_at", "2018-05-09 15:01:03.097523"], ["id", 1]]
|
7566
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7567
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7568
|
+
Parameters: {"nonce"=>"abcd"}
|
7569
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.099422') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7570
|
+
Rendering text template
|
7571
|
+
Rendered text template (0.0ms)
|
7572
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
7573
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
7574
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7575
|
+
Processing by LtiProvider::LtiController#configure as XML
|
7576
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
7577
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7578
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7579
|
+
Processing by LtiProvider::LtiController#cookie_test as HTML
|
7580
|
+
Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
|
7581
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
7582
|
+
Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.5ms)
|
7583
|
+
Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms)
|
7584
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7585
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7586
|
+
Processing by LtiProvider::LtiController#cookie_test as HTML
|
7587
|
+
Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
|
7588
|
+
Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
|
7589
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
7590
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7591
|
+
Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
|
7592
|
+
Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
|
7593
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7594
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7595
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7596
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7597
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7598
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7599
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7600
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7601
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7602
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7603
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7604
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7605
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7606
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7607
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"Fy5uBxdmNvbpxQEpWwFht0KfMNRK6MQ0gjHKtBbS4", "oauth_signature"=>"H+RoOxseTfWr5kgCM2HXtvDIE+4=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
|
7608
|
+
Rendering text template
|
7609
|
+
Rendered text template (0.0ms)
|
7610
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
7611
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7612
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7613
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7614
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY", "oauth_signature"=>"Cas9zaHJzc4FCKUznYgjFeR67bE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
|
7615
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7616
|
+
[1m[36mLtiProvider::Launch Create (0.5ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY\noauth_signature: Cas9zaHJzc4FCKUznYgjFeR67bE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878094'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:34.619635"], ["updated_at", "2018-05-09 15:01:34.619635"]]
|
7617
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7618
|
+
Redirected to http://test.host/cookie_test?nonce=NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY
|
7619
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.6ms)
|
7620
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
7621
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7622
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7623
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7624
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs", "oauth_signature"=>"OGIWO5e25ljJkfs19pPGAhAyEXE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
|
7625
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7626
|
+
[1m[36mLtiProvider::Launch Create (0.2ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs\noauth_signature: OGIWO5e25ljJkfs19pPGAhAyEXE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878094'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:34.634287"], ["updated_at", "2018-05-09 15:01:34.634287"]]
|
7627
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7628
|
+
Redirected to http://test.host/cookie_test?nonce=O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs
|
7629
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
7630
|
+
[1m[36mLtiProvider::Launch Load (0.0ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
7631
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
7632
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7633
|
+
Processing by LtiProvider::LtiController#launch as HTML
|
7634
|
+
Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"wato9XSjtDr65qOOj9JdWjNG41X2e9VIzzs06dC87tA", "oauth_signature"=>"hDLsvQ+Sb0l7joj5EEYV6QYn3Uw=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
|
7635
|
+
Rendering text template
|
7636
|
+
Rendered text template (0.0ms)
|
7637
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
7638
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7639
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7640
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7641
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.643387"], ["updated_at", "2018-05-09 15:01:34.643387"]]
|
7642
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7643
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7644
|
+
Parameters: {"nonce"=>"abcd"}
|
7645
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.648273') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7646
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7647
|
+
[1m[36mLtiProvider::Launch Destroy (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
|
7648
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7649
|
+
Redirected to http://test.host/
|
7650
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
|
7651
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
7652
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7653
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7654
|
+
[1m[36mLtiProvider::Launch Create (0.2ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.654399"], ["updated_at", "2018-05-09 15:01:34.654399"]]
|
7655
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7656
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7657
|
+
Parameters: {"nonce"=>"abcd"}
|
7658
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.656115') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7659
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7660
|
+
[1m[36mLtiProvider::Launch Destroy (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
|
7661
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7662
|
+
Redirected to http://test.host/
|
7663
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
7664
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
|
7665
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7666
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7667
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7668
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.660009"], ["updated_at", "2018-05-09 15:01:34.660009"]]
|
7669
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7670
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7671
|
+
Parameters: {"nonce"=>"invalid"}
|
7672
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.661874') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
|
7673
|
+
Rendering text template
|
7674
|
+
Rendered text template (0.0ms)
|
7675
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7676
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
7677
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7678
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7679
|
+
[1m[36mLtiProvider::Launch Create (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.664977"], ["updated_at", "2018-05-09 15:01:34.664977"]]
|
7680
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7681
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7682
|
+
[1m[36mLtiProvider::Launch Update (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2018-05-09 14:51:34.666227"], ["updated_at", "2018-05-09 15:01:34.666543"], ["id", 1]]
|
7683
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7684
|
+
Processing by LtiProvider::LtiController#consume_launch as HTML
|
7685
|
+
Parameters: {"nonce"=>"abcd"}
|
7686
|
+
[1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.668294') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
|
7687
|
+
Rendering text template
|
7688
|
+
Rendered text template (0.0ms)
|
7689
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
7690
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
7691
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7692
|
+
Processing by LtiProvider::LtiController#configure as XML
|
7693
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
7694
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7695
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7696
|
+
Processing by LtiProvider::LtiController#cookie_test as HTML
|
7697
|
+
Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
|
7698
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
7699
|
+
Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
|
7700
|
+
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
|
7701
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7702
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7703
|
+
Processing by LtiProvider::LtiController#cookie_test as HTML
|
7704
|
+
Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
|
7705
|
+
Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
|
7706
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
7707
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lti_provider_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Donahue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '4.2'
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '5.
|
24
|
+
version: '5.3'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: '4.2'
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '5.
|
34
|
+
version: '5.3'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: ims-lti
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,44 +270,44 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.6
|
273
|
+
rubygems_version: 2.7.6
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: LtiProvider is a mountable engine for handling the LTI launch and exposing
|
277
277
|
LTI parameters in your rails app.
|
278
278
|
test_files:
|
279
|
-
- spec/
|
279
|
+
- spec/spec_helper.rb
|
280
280
|
- spec/dummy/app/controllers/application_controller.rb
|
281
281
|
- spec/dummy/app/controllers/welcome_controller.rb
|
282
|
-
- spec/dummy/config/application.rb
|
283
|
-
- spec/dummy/config/boot.rb
|
284
282
|
- spec/dummy/config/cucumber.yml
|
285
|
-
- spec/dummy/config/
|
286
|
-
- spec/dummy/config/
|
287
|
-
- spec/dummy/config/
|
283
|
+
- spec/dummy/config/routes.rb
|
284
|
+
- spec/dummy/config/locales/en.yml
|
285
|
+
- spec/dummy/config/lti.yml
|
288
286
|
- spec/dummy/config/environments/production.rb
|
287
|
+
- spec/dummy/config/environments/development.rb
|
289
288
|
- spec/dummy/config/environments/test.rb
|
289
|
+
- spec/dummy/config/environment.rb
|
290
|
+
- spec/dummy/config/application.rb
|
291
|
+
- spec/dummy/config/database.yml
|
292
|
+
- spec/dummy/config/boot.rb
|
293
|
+
- spec/dummy/config/lti_xml.yml
|
290
294
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
291
|
-
- spec/dummy/config/initializers/inflections.rb
|
292
295
|
- spec/dummy/config/initializers/mime_types.rb
|
293
|
-
- spec/dummy/config/initializers/secret_token.rb
|
294
296
|
- spec/dummy/config/initializers/session_store.rb
|
295
297
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
296
|
-
- spec/dummy/config/
|
297
|
-
- spec/dummy/config/
|
298
|
-
- spec/dummy/config/lti_xml.yml
|
299
|
-
- spec/dummy/config/routes.rb
|
298
|
+
- spec/dummy/config/initializers/secret_token.rb
|
299
|
+
- spec/dummy/config/initializers/inflections.rb
|
300
300
|
- spec/dummy/config.ru
|
301
|
-
- spec/dummy/
|
302
|
-
- spec/dummy/
|
303
|
-
- spec/dummy/
|
304
|
-
- spec/dummy/log/test.log
|
305
|
-
- spec/dummy/public/404.html
|
301
|
+
- spec/dummy/script/rails
|
302
|
+
- spec/dummy/Rakefile
|
303
|
+
- spec/dummy/public/favicon.ico
|
306
304
|
- spec/dummy/public/422.html
|
307
305
|
- spec/dummy/public/500.html
|
308
|
-
- spec/dummy/public/
|
306
|
+
- spec/dummy/public/404.html
|
309
307
|
- spec/dummy/public/robots.txt
|
310
|
-
- spec/dummy/
|
311
|
-
- spec/dummy/
|
308
|
+
- spec/dummy/db/schema.rb
|
309
|
+
- spec/dummy/db/test.sqlite3
|
310
|
+
- spec/dummy/db/migrate/20130319050206_create_lti_provider_launches.lti_provider.rb
|
311
|
+
- spec/dummy/log/test.log
|
312
312
|
- spec/models/lti_provider/launch_spec.rb
|
313
|
-
- spec/
|
313
|
+
- spec/controllers/lti_provider/lti_controller_spec.rb
|