spec/dummy/log/test.log in lti_provider_engine-0.0.6 vs spec/dummy/log/test.log in lti_provider_engine-1.0.0
- old
+ new
@@ -1,115 +1,689 @@
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 19ms (Views: 19.2ms | ActiveRecord: 0.0ms)
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236061", "oauth_nonce"=>"IotrgvaBvEETd8Tg49Ic2ayegh0CHA1dFlo0t4WD2Q", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"5fIJCGU+i0COprdktT1M6zysxzw="}
+Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 4.8ms)
[1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236061", "oauth_nonce"=>"ZARGwgMEExHGCVx4BS597RsnZsxLTmYiqhshKBC6Wk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"SBZYpAs/mpQEZTidPk/dz4g7wM4="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236061", "oauth_nonce"=>"mmho5ws7jAsSDS8N1mHwBZMEUDzXdZvyiDkucod0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"DCbOrb2/080wHGs7K7NA4Hjrlh0="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236061", "oauth_nonce"=>"9CSDuqSRsfNuA8TdTUkqiaJ1rrWnQhHmfi4Z1RoJY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"bXdqlUk+Guzq4ZM6ZgBBZ2SF3fA="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (48.7ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:21.491627') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:21.509443') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-09-26 22:44:21.521394', "updated_at" = '2013-09-26 22:54:21.521839', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:21.524476') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:21 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-09-26 22:49:21.533288') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-09-26 22:44:57.668449', "updated_at" = '2013-09-26 22:54:57.668945', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:57.675220') LIMIT 1
+Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-09-26 22:49:57.718629') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:57.729151') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
+ [1m[35m (0.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:54:57 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:49:57.744965') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287406", "oauth_nonce"=>"erTwBoft7gy2wNGFavT2xpjUCTAjQl91AEu4SvUQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ZywdUy5kAtMr6yBvUtzwPO/FfnU="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287406", "oauth_nonce"=>"de4xtIrf62R5UTswIZCopVkSgnajcTXCZ0dsw8lywIc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"hSY7ReZuQieCX5Wig/60HDw2N/E="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287406", "oauth_nonce"=>"t85jkY4B81B8ebs46ec0EqW7RwG5UAochFjtnSbFA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KKe/iGQzRCUrZaRk8duH05r5hZw="}
-Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287406", "oauth_nonce"=>"BMdhn43LX6SzRSqy3sOWxZ9SjWKFclB4aIm05PZO2A", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Lo1mJllJJkiSQQhOkdwT3ybAjPg="}
-Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:50:59.910962') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (1.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:50:59.930583') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-09-26 22:45:59.942571', "updated_at" = '2013-09-26 22:55:59.943028', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:50:59.945712') LIMIT 1[0m
+Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:55:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-09-26 22:50:59.965585') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287574", "oauth_nonce"=>"7PITv82y5FbbRvxggW3TC8GYlCCVtvNeBthlKIQRBk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"kqvSbSj7V+FeYYRqCWsCRD5ZuOU="}
-Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.2ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236174", "oauth_nonce"=>"m9O6ZARVLTk2s6oxInlKQDLYbf6or78T0aEpwLPxq8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"P9Xe/6TYqMcNteorgORAd8WONPI="}
+Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236174", "oauth_nonce"=>"NyRb1itGNvg1FrcSmQ57kMa7LaqgVEGLFP9cJMIEoQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"sNyWovRKNQKURyIY+//7i0pf/kY="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236174", "oauth_nonce"=>"dU5XMzqZwtJ3Xuzwja1aNyN3DhqjAZ5IBqYCFM4FbA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"3F9PTPo4auAq0hhZfn3I1lJBRFA="}
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236174", "oauth_nonce"=>"B8onXFBKX4gPmn1iqqMKn0eR5JIsMrEIxMzpF7JTVg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/lti_provider", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"O7N7fDqR6ewEHJmkrcEXvK2QR2A="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.1ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:14.459111') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
+ [1m[35m (1.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:14.478464') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-09-26 22:46:14.490864', "updated_at" = '2013-09-26 22:56:14.491308', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:14.494077') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:14 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-09-26 22:51:14.503006') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.8ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:31.469398') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:31.508867') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-09-26 22:51:31.522018') LIMIT 1
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-09-26 22:46:31.532274', "updated_at" = '2013-09-26 22:56:31.532762', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-09-26 22:51:31.535675') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287574", "oauth_nonce"=>"wKSAWyHC9NTfINRd8DUqjXBEJhjpp4C3RCEEYN6diU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"gayPi5x6Hs/EBhrF0bgfbXHvLFY="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236191", "oauth_nonce"=>"o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"dPrGMWU1rudE9lA46UEy35XJ3UQ="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo"], ["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: o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo\noauth_signature: dPrGMWU1rudE9lA46UEy35XJ3UQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380236191'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236191", "oauth_nonce"=>"aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ZdHKySlbTWnpEVdruGF5a1UyRMw="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00], ["nonce", "aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y"], ["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: aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y\noauth_signature: ZdHKySlbTWnpEVdruGF5a1UyRMw=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380236191'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 26 Sep 2013 22:56:31 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236191", "oauth_nonce"=>"PQkvZS0xP4IYstykYGnAh73QhytLN275GFjfA8yOPyk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"TFwdNBJKU2K9qWbTUPs7636pMWY="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380236191", "oauth_nonce"=>"PVqU6eScKLsCHPWOFZP1tWpyE8nlW9Y6mQD5B8o5xY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"irLzVsGOJY5U3GPUpWQlXoaLF0U="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.4ms)
+Completed 200 OK in 59ms (Views: 58.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380645704", "oauth_nonce"=>"4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"mHiepvRGhoo5l5kSx9hGX8FtESs="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (98.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Tue, 01 Oct 2013 16:41:44 UTC +00:00], ["nonce", "4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw"], ["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: 4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw\noauth_signature: mHiepvRGhoo5l5kSx9hGX8FtESs=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380645704'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Tue, 01 Oct 2013 16:41:44 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw
+Completed 302 Found in 180ms (ActiveRecord: 131.4ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380645705", "oauth_nonce"=>"nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"WKjShCIQ2aIF25/hUrLUNX1T7y4="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00], ["nonce", "nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk"], ["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: nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk\noauth_signature: WKjShCIQ2aIF25/hUrLUNX1T7y4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380645705'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380645705", "oauth_nonce"=>"Yx53eBGkJlot5E3bOz1FHMBBDtZGsyNVC0dPvgZtSQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"D1ZD/rzaHobdCj8LRLnDt/mk2oo="}
+Completed 200 OK in 52ms (Views: 50.9ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380645705", "oauth_nonce"=>"qgfdvOzvDEceBhSqnfUvdQQrUos6JU3pMIAdZXP3tI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VI2/xK6Msc8vvpyTJL8tgcsXN2M="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-01 16:36:45.134568') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 31ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-01 16:36:45.173801') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-01 16:31:45.186039', "updated_at" = '2013-10-01 16:41:45.186458', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-01 16:36:45.189398') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Tue, 01 Oct 2013 16:41:45 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-01 16:36:45.198943') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380742828", "oauth_nonce"=>"7i3qIpXMYEE9JO0IT4kp5q4qNtLPP7gnoGIb9FetJ0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"uULt0eUbrmGIr2eqT2vvLzHZIk8="}
+Completed 500 Internal Server Error in 14ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380742828", "oauth_nonce"=>"5XTvfNc3DOrojv2eXET95h5qgTjMQ4ItU2MTO1BA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"prjhZhk+exxRh1jqyOYLRfKdqCI="}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287574", "oauth_nonce"=>"2hjvSsyvq0hOypUWYkCXQYx1WkhL9BaRtnjY0i7k", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"wUq+txzdzyexaC8/VImO3VEvUE8="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380742828", "oauth_nonce"=>"7cMKxUZoHfNdSeNAC6j05QGcGyQ65dTfKnlZGsbSkko", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"JYJ+py0mdDQu2/wIv4qzGoIPLQg="}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287574", "oauth_nonce"=>"Nn99JWdHpduQ8jIgJwFcnGiSR3Mn8hLjwSttFB0Ws", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"byaXWdtLl5ShUjdGVtY28y9uAKk="}
-Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380742828", "oauth_nonce"=>"okv9NZWb1w6oFb5TOMwLVXw7K3RYei9frvPS83TLqo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"9CrmZGMZtIkaoTbZx6YhJ3BLKzc="}
+Completed 500 Internal Server Error in 0ms
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 66ms (Views: 65.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
@@ -119,132 +693,360 @@
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743059", "oauth_nonce"=>"O3rXMsyawi676fQmnoiTk6xIqzfQIFhIa8z8cEkY7g", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"QPbrZUf36hL5WPgYgLBmDwtnBHE="}
+Completed 500 Internal Server Error in 1ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743059", "oauth_nonce"=>"cZ7ml7yf6pvufUQvs1BuTwHnr0MvE0uA0OekpTSV6M", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"4Hap/Hw57ffzZMAG/yy46QmJQjw="}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743059", "oauth_nonce"=>"JVqSZZubtXJeq4aYALRAJD360aYDsmfbvPz283Q", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"43S76qS9mb4aiFxcrTRufKFcshQ="}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743059", "oauth_nonce"=>"Vv7G9x8AqDYQSwNRGo1Z1OWAhLwH87R89e5uFudEySk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"YpbqSSFk4PRLOGUE0drmpckTNCc="}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
+Connecting to database specified by database.yml
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (6.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreateLtiProviderLaunches (20130319050206)
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.3ms)[0m CREATE TABLE "lti_provider_launches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_url" varchar(255), "nonce" varchar(255), "provider_params" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130319050206')[0m
+ [1m[35m (1.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (80.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-02 19:40:08.463088') LIMIT 1[0m
+ Rendered text template (0.0ms)
+Completed 200 OK in 42ms (Views: 32.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-02 19:35:08.512499', "updated_at" = '2013-10-02 19:45:08.512997', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-02 19:40:08.539015') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-02 19:40:08.549476') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 29ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.4ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-02 19:40:08.590627') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743108", "oauth_nonce"=>"AJyioF9XjN5LK809RIOSMuEal48J4RLfWG5i41XTEEg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"RqiDmfwDRPdhB1uIZdekk1t/21o="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743108", "oauth_nonce"=>"F26A0hpsbcJDKGN2qL3YCrtYmQMHB8ZGEQ3RgZlBk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"gCmBv8epFxJvp33JV28cF1GS15Y="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743108", "oauth_nonce"=>"IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"I/BJZNBnPojCw0Tb4UlMBdAYHF0="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw"], ["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: IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw\noauth_signature: I/BJZNBnPojCw0Tb4UlMBdAYHF0=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380743108'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1380743108", "oauth_nonce"=>"Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"D9T/UL1go7eifr+lj4VcjdYgrHc="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00], ["nonce", "Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY"], ["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: Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY\noauth_signature: D9T/UL1go7eifr+lj4VcjdYgrHc=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1380743108'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 02 Oct 2013 19:45:08 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287628", "oauth_nonce"=>"X8mmps5dGSgCQSyPQb05NB873SUltrqjFLNcQKuw04", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Tl+iGzLfy91vSY8XTTjf0g9xzQA="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.1ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287628", "oauth_nonce"=>"jFSkNO0SxfE7oqAaSdV3ReMUFoL6y2iIgcA5Gj170c", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"z+hrS73PVqxr9uS2KK65/eHZnRI="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287628", "oauth_nonce"=>"y0sPBTTaY4pkjnko0CkN49leqTgZ7WQ1LBe38NzIgPA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"os/oKb/kHJbikPRhZNgGfS0su40="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287628", "oauth_nonce"=>"9M9OIGrZmhnmJJKoUmq827AhROKWrustGbth369HU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"TquRBPGid/mgwZEMKkeZ9mW9IhQ="}
-Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
- [1m[35m (0.0ms)[0m select sqlite_version(*)
- [1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
-Migrating to CreateLtiProviderLaunches (20130319050003)
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.2ms)[0m CREATE TABLE "lti_provider_launches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_url" varchar, "nonce" varchar, "provider_params" text, "created_at" datetime, "updated_at" datetime)
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20130319050003"]]
- [1m[35m (0.7ms)[0m commit transaction
- [1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
@@ -252,237 +1054,1227 @@
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 18ms (Views: 18.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961552", "oauth_nonce"=>"Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"3rK3TKzaBuV88enrKPrLdWA47RA="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (76.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w"], ["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: Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w\noauth_signature: 3rK3TKzaBuV88enrKPrLdWA47RA=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961552'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w
+Completed 302 Found in 93ms (ActiveRecord: 78.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961552", "oauth_nonce"=>"jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"nxzCoXaPziDTmCY4ZGVOk1xhTuo="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI"], ["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: jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI\noauth_signature: nxzCoXaPziDTmCY4ZGVOk1xhTuo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961552'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961552", "oauth_nonce"=>"RvypYr1bCmjzZ2inCKANixedjNvDWHZWTiMihQqg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"xkbpE65BRMI5E62ZHsHUbU7TPaI="}
+Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961552", "oauth_nonce"=>"xA1HVFg5tojsnYXDtMxQIKkR7LGdcQt6Zclo6P5XEc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"K2saAD/UPQ5nr26PsxdoeYWy4NM="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#configure as XML
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:07:32.412449') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 29ms (ActiveRecord: 0.6ms)
+ [1m[35m (0.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT 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", "2016-08-15 19:01:52.808682"], ["updated_at", "2016-08-15 19:01:52.808682"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:07:32.474803') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2016-08-15 18:51:52.812197"], ["updated_at", "2016-08-15 19:01:52.812561"], ["id", 1]]
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-16 22:02:32.489623', "updated_at" = '2013-10-16 22:12:32.490121', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 18:56:52.820813') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.1ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:07:32.493175') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:01:52.833906"], ["updated_at", "2016-08-15 19:01:52.833906"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:12:32 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"invalid"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 18:56:52.837223') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "invalid"]]
- Rendered text template (0.0ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-16 22:07:32.502671') LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:01:52.841606"], ["updated_at", "2016-08-15 19:01:52.841606"]]
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:00.276190') LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 33ms (ActiveRecord: 0.6ms)
+ [1m[36m (1.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 18:56:52.843984') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:00.319658') LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:01:52.854926"], ["updated_at", "2016-08-15 19:01:52.854926"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-16 22:08:00.334021') LIMIT 1
+Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-16 22:03:00.351565', "updated_at" = '2013-10-16 22:13:00.352077', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 18:56:52.857186') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:00.355069') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961580", "oauth_nonce"=>"HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ZNIxoox7ecT03dltxnpKHKYqhpQ="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o"], ["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: HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o\noauth_signature: ZNIxoox7ecT03dltxnpKHKYqhpQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961580'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961580", "oauth_nonce"=>"H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VfxO58mxe8mSBsM4uDFUAEwSNlU="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00], ["nonce", "H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY"], ["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: H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY\noauth_signature: VfxO58mxe8mSBsM4uDFUAEwSNlU=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961580'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:13:00 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961580", "oauth_nonce"=>"6YcV0b5d0agYNPvpvkJQc1qBWG73d0itPzXmFSpct20", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"0BNckQULHD71Vl0qiMhuVv77Hsk="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961580", "oauth_nonce"=>"BxLDWxbmRiGpJ8ColJdW0c59X1g8BB0ZHzW9QguAw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Uj0djiImQnBqH3QDbZgRxdVLw8c="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:35 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:35 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-16 22:03:35.954559', "updated_at" = '2013-10-16 22:13:35.955198', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:35.965715') LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-16 22:08:36.008937') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:36.019092') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-16 22:08:36.036008') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287712", "oauth_nonce"=>"2Jxyk4Qvg1fFuDdHuMIpd5e5UugV3xIdKkSXPJHb0Rs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"58744D/Fn6sWc5M74hKXTCEfRp8="}
- Rendered text template (0.0ms)
-Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961616", "oauth_nonce"=>"YWZVzyHgialAZbZ6NXquhUef7csd3f4KN1FOZ5SI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NgHQkQfPF9x7TqYCWuC+JDLOzJE="}
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961616", "oauth_nonce"=>"MKCOdCgpsRBRtDfJao8xoMe3iFZq4zDhXcERHvmvJ1s", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"/fcdVn0ytLIhqJJWjFWj3PIHOtw="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961616", "oauth_nonce"=>"RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"kdGMkgRB+f8TBvlv5OFnYWBhd5o="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00], ["nonce", "RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA"], ["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: RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA\noauth_signature: kdGMkgRB+f8TBvlv5OFnYWBhd5o=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961616'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (5.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1381961616", "oauth_nonce"=>"AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"K5FCM6NPWeZaHwh/nXBTYfrcU7I="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00], ["nonce", "AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8"], ["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: AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8\noauth_signature: K5FCM6NPWeZaHwh/nXBTYfrcU7I=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1381961616'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 16 Oct 2013 22:13:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 46ms (Views: 45.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (96.6ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:56:42 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:56:42 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:51:43.014291') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 39ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:51:43.066310') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:46:43.079210', "updated_at" = '2013-10-17 21:56:43.079685', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:51:43.082576') LIMIT 1[0m
+Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (144.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:51:43.273141') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (9.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287712", "oauth_nonce"=>"XhlZXUlvus57P53TsbDXYmhxTMJxbm2fJ8MpGASdRc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"RRAnvFyaL7BOvrZacf8ma8K2mKY="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047003", "oauth_nonce"=>"rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"LeBDVKaUlsFGkzr1SgQYq98jgcs="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00], ["nonce", "rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo"], ["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: rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo\noauth_signature: LeBDVKaUlsFGkzr1SgQYq98jgcs=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047003'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (24.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047003", "oauth_nonce"=>"vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Mh/RuMh07usqdbuLxyqxRN6w4N8="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00], ["nonce", "vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI"], ["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: vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI\noauth_signature: Mh/RuMh07usqdbuLxyqxRN6w4N8=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047003'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:56:43 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047003", "oauth_nonce"=>"eExE578gwQIK6Smvd8nUtYFq5PuIKLd4rkzXvqXaQo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"fEvpz4lkXkcjQLcpvyyk/Tj4nqk="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047003", "oauth_nonce"=>"LkDo0lwqs6Kp9OmLo0Q03Z0kzosUsLGZfjdyvSyxNH8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NaP7b3SqvPJzTz81ER9i/qBZfMg="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047062", "oauth_nonce"=>"KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"2TIf8ZBHlpSZvCb0Rx2evlrdjI0="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: XhlZXUlvus57P53TsbDXYmhxTMJxbm2fJ8MpGASdRc\noauth_signature: RRAnvFyaL7BOvrZacf8ma8K2mKY=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471287712'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "XhlZXUlvus57P53TsbDXYmhxTMJxbm2fJ8MpGASdRc"], ["created_at", "2016-08-15 19:01:52.898988"], ["updated_at", "2016-08-15 19:01:52.898988"]]
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk"], ["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: KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk\noauth_signature: 2TIf8ZBHlpSZvCb0Rx2evlrdjI0=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047062'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=XhlZXUlvus57P53TsbDXYmhxTMJxbm2fJ8MpGASdRc
-Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+Redirected to http://test.host/cookie_test?nonce=KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk
+Completed 302 Found in 19ms (ActiveRecord: 5.5ms)
+ [1m[36m (1.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287712", "oauth_nonce"=>"tfK1H7sRqJmSGig9PDVGGM8pBINetDNd6NY4GtGK8E", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VMux0jce/Nns+9u3X/Mfoiu4Qrg="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047062", "oauth_nonce"=>"7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"8QwTx23ynUQoYCyCnaXC2D9+joQ="}
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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: tfK1H7sRqJmSGig9PDVGGM8pBINetDNd6NY4GtGK8E\noauth_signature: VMux0jce/Nns+9u3X/Mfoiu4Qrg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471287712'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "tfK1H7sRqJmSGig9PDVGGM8pBINetDNd6NY4GtGK8E"], ["created_at", "2016-08-15 19:01:52.912262"], ["updated_at", "2016-08-15 19:01:52.912262"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8"], ["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: 7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8\noauth_signature: 8QwTx23ynUQoYCyCnaXC2D9+joQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047062'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/cookie_test?nonce=tfK1H7sRqJmSGig9PDVGGM8pBINetDNd6NY4GtGK8E
+Redirected to http://test.host/cookie_test?nonce=7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047062", "oauth_nonce"=>"pXh0mlgqIcmFfhFm4ukrF9jt9kZ2pfigsgGXPZhsP1M", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"8b0U2oVXvS1BKd7KDFeZChsYGqA="}
+Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047062", "oauth_nonce"=>"aydMyLjZeMnP8TXEqt34W84OXNivIQfSSfsnLAnM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KpagvewzQ9mA9b+5cWa/68qcMPw="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:52:42.757159') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:52:42.775395') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:47:42.787298', "updated_at" = '2013-10-17 21:57:42.787743', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:52:42.790400') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:57:42 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:52:42.799661') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 5ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471287712", "oauth_nonce"=>"7LhvQcTU0GF0yAab0Uo3cCFOrQJSaNPmQXB8rqzZUk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"/BUDtbXT4/5c74Ax78TtJvDSC1g="}
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047166", "oauth_nonce"=>"zXFXaSAXjkSmGQdXcEL0OijBzfTMLjuZnxZVE5rQmY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"u9r8NsHikb2dg72pOenfNx/s23g="}
+Completed 200 OK in 17ms (Views: 8.7ms | ActiveRecord: 1.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047166", "oauth_nonce"=>"GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"52+EFZMYQy288WN92b0sMYVM1+c="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA"], ["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: GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA\noauth_signature: 52+EFZMYQy288WN92b0sMYVM1+c=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047166'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA
+Completed 302 Found in 12ms (ActiveRecord: 4.3ms)
+ [1m[36m (1.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047166", "oauth_nonce"=>"vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"fB3f6GEftVd2GPgYrIfAL0f0d4s="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc"], ["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: vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc\noauth_signature: fB3f6GEftVd2GPgYrIfAL0f0d4s=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047166'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047166", "oauth_nonce"=>"XCiTrbaMaFf7JmWTLztwgBq1pKSy11gJjoNZwVkzo6k", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"qpr4LO///h21NKYpvHnqQRxBZFE="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:49:26.287282', "updated_at" = '2013-10-17 21:59:26.287768', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:26.290824') LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:26.307716') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.2ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:26.324666') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:54:26.339493') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 8ms (Views: 8.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 16ms
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.0ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:58.304897') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 32ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:58.345721') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:54:58.358552') LIMIT 1
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:49:58.372455', "updated_at" = '2013-10-17 21:59:58.373061', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:54:58.376507') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047198", "oauth_nonce"=>"QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"TdB4gRGnPvTwMGH5K9laXSF/J3Q="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc"], ["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: QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc\noauth_signature: TdB4gRGnPvTwMGH5K9laXSF/J3Q=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047198'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047198", "oauth_nonce"=>"p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"UWaaFoohF5J9yL0fTinat3lVnjQ="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00], ["nonce", "p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE"], ["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: p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE\noauth_signature: UWaaFoohF5J9yL0fTinat3lVnjQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047198'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 21:59:58 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047198", "oauth_nonce"=>"ikb7ECFh0mHD3p21x6k1QmshQsm2NhHbNsbCf0jB0g", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"LrTPfxpOEIEAN/tEN9FX9ItgViQ="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047198", "oauth_nonce"=>"GKPWHqMLxE4TOwcba2QY7TKzFBeZFaiZprc2R1NA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"hcD1kBR+KJgTZ97MQbPQRdRKsqA="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.4ms)
-Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.8ms)[0m [1mINSERT 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", "2016-08-15 19:07:23.053322"], ["updated_at", "2016-08-15 19:07:23.053322"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:55:38.033237') LIMIT 1[0m
+Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.2ms)
+ [1m[35m (1.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2016-08-15 18:57:23.057605"], ["updated_at", "2016-08-15 19:07:23.057967"], ["id", 1]]
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:50:38.055650', "updated_at" = '2013-10-17 22:00:38.056169', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:02:23.065485') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.1ms)
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:07:23.073106"], ["updated_at", "2016-08-15 19:07:23.073106"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:55:38.060137') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.2ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:02:23.076691') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:55:38.069658') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 8ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (1.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:55:38.087202') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047238", "oauth_nonce"=>"zKTJJ2q0AWJlSugNVVHiSak0awXGt1mRqwwZHpZfE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"YMcPT3xb//E6/E5S1hGEQdkWNEQ="}
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047238", "oauth_nonce"=>"DR77x2d8S4yWsPxoQFsNToqPYdZ0n57e8IZeFj0N7bc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"K9evPbOG7YBn2CXM3K59YuQn+bg="}
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047238", "oauth_nonce"=>"A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"QlLkDma/lH0mdWo6wN7vtd/8C50="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT 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", "2016-08-15 19:07:23.084808"], ["updated_at", "2016-08-15 19:07:23.084808"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0"], ["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: A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0\noauth_signature: QlLkDma/lH0mdWo6wN7vtd/8C50=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047238'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by LtiProvider::LtiController#consume_launch as HTML
- Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:02:23.086784') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+Redirected to http://test.host/cookie_test?nonce=A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047238", "oauth_nonce"=>"hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"V8czkHSqvlHymRZmkhbaTht8XA0="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00], ["nonce", "hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8"], ["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: hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8\noauth_signature: V8czkHSqvlHymRZmkhbaTht8XA0=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047238'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:00:38 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches"[0m
- [1m[35m (0.5ms)[0m rollback transaction
+Redirected to http://test.host/cookie_test?nonce=hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT 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", "2016-08-15 19:07:23.090298"], ["updated_at", "2016-08-15 19:07:23.090298"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (4.0ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"invalid"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:02:23.092477') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "invalid"]]
- Rendered text template (0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:56:56.741865') LIMIT 1[0m
+Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:51:56.754732', "updated_at" = '2013-10-17 22:01:56.755171', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:56:56.758429') LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:56:56.767909') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.8ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:56:56.788882') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288043", "oauth_nonce"=>"dTWHjPklKoluppFcPdUmhHcxtNbqAjmSguHNuwqo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"b95dkDZl+3uC31Q87OWQO+pu7NE="}
- Rendered text template (0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047316", "oauth_nonce"=>"2xPjKpQjeUDZoelb2kwO2DSYkqsxUk0BfptVCUgdCY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"AfLj2l7PsOHEyAmm6/HIRIyyiUA="}
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288043", "oauth_nonce"=>"z610gHHNbiiUYg4uMWCkBKpZOw7oF46hHA1xLBI2M", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"kyQOUFYPHawFKVzfojDrYLiawek="}
- Rendered text template (0.0ms)
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047316", "oauth_nonce"=>"Cwm5yrwS8zINItZyGBL9yEGYrvsi6AOKHX1fT80h7w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ZZfcJWBMI/5rAFofv3vDFu1Bx3I="}
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288043", "oauth_nonce"=>"N29aj2E8j2g68B71jsYcmHDXSa0CLz7OiLPFCBcxs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"smI1fuUGLoHq2t+1A1x2X6z4i3k="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047316", "oauth_nonce"=>"2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"1w3EJDkr0Az0mO1yVrO97NrT9gk="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: N29aj2E8j2g68B71jsYcmHDXSa0CLz7OiLPFCBcxs\noauth_signature: smI1fuUGLoHq2t+1A1x2X6z4i3k=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288043'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "N29aj2E8j2g68B71jsYcmHDXSa0CLz7OiLPFCBcxs"], ["created_at", "2016-08-15 19:07:23.116117"], ["updated_at", "2016-08-15 19:07:23.116117"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U"], ["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: 2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U\noauth_signature: 1w3EJDkr0Az0mO1yVrO97NrT9gk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047316'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=N29aj2E8j2g68B71jsYcmHDXSa0CLz7OiLPFCBcxs
-Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Redirected to http://test.host/cookie_test?nonce=2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288043", "oauth_nonce"=>"3L3ISbKiL3lytqi8bprRtDIsLVnHlDEuCcfiEkczeNk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"3aOcQJ5fnQwlgjW/3ePtoroQQx8="}
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: 3L3ISbKiL3lytqi8bprRtDIsLVnHlDEuCcfiEkczeNk\noauth_signature: 3aOcQJ5fnQwlgjW/3ePtoroQQx8=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288043'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "3L3ISbKiL3lytqi8bprRtDIsLVnHlDEuCcfiEkczeNk"], ["created_at", "2016-08-15 19:07:23.126639"], ["updated_at", "2016-08-15 19:07:23.126639"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=3L3ISbKiL3lytqi8bprRtDIsLVnHlDEuCcfiEkczeNk
-Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047316", "oauth_nonce"=>"36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ozz/UbQhiRz0Kt9Tb4dYXq4IK2c="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00], ["nonce", "36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU"], ["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: 36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU\noauth_signature: ozz/UbQhiRz0Kt9Tb4dYXq4IK2c=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047316'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:01:56 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
@@ -499,246 +2291,1003 @@
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288088", "oauth_nonce"=>"EZvBNM2EGwdAXwXe2O4KrzwV3eALbMia9xDNC9hPVs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"4OdGhocgI4A3+uUbD227EWY/eDg="}
- Rendered text template (0.0ms)
-Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047374", "oauth_nonce"=>"Ho6l8oO1FwqeKgrgdx6E0BuxzV7YYq6tsKkqWcj3sl8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"tOo0iONEL20U7NXyUYbCuwPWcfE="}
+Completed 200 OK in 33ms (Views: 8.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288088", "oauth_nonce"=>"YULKbRP9307QiZecwzqD96SDNjGXcRkUMiSthxte1vc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"+pQBx/JgmqxNT88dtmFxzPGowzo="}
- Rendered text template (0.0ms)
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047374", "oauth_nonce"=>"qAAXiYuLb0zzVrRIAUvul09XPo8ThFywfF4vKOI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"fR1Ox/THyE4IaV3Yg0wTO+v66HI="}
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288088", "oauth_nonce"=>"UvgmejFHo1oLuhxnDAPkLjI5d2u1rJ9W5VksGcY09Eo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"UfE1Ok1sKV3BLKLhf713OAu/pas="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047374", "oauth_nonce"=>"EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"QWlx0uGjH9yfpL48X9fBPenZQJo="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: UvgmejFHo1oLuhxnDAPkLjI5d2u1rJ9W5VksGcY09Eo\noauth_signature: UfE1Ok1sKV3BLKLhf713OAu/pas=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288088'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "UvgmejFHo1oLuhxnDAPkLjI5d2u1rJ9W5VksGcY09Eo"], ["created_at", "2016-08-15 19:08:08.868145"], ["updated_at", "2016-08-15 19:08:08.868145"]]
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k"], ["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: EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k\noauth_signature: QWlx0uGjH9yfpL48X9fBPenZQJo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047374'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=UvgmejFHo1oLuhxnDAPkLjI5d2u1rJ9W5VksGcY09Eo
-Completed 302 Found in 11ms (ActiveRecord: 0.4ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
- [1m[35m (0.8ms)[0m rollback transaction
+Redirected to http://test.host/cookie_test?nonce=EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k
+Completed 302 Found in 10ms (ActiveRecord: 4.0ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (1.5ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288088", "oauth_nonce"=>"2FAFBJFm0PRO7zzA6wFTCdorSFp3tUW2f2QVkVxVPc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"PnGP+SI5fc9z57xihXE/5D1mz80="}
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: 2FAFBJFm0PRO7zzA6wFTCdorSFp3tUW2f2QVkVxVPc\noauth_signature: PnGP+SI5fc9z57xihXE/5D1mz80=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288088'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "2FAFBJFm0PRO7zzA6wFTCdorSFp3tUW2f2QVkVxVPc"], ["created_at", "2016-08-15 19:08:08.888949"], ["updated_at", "2016-08-15 19:08:08.888949"]]
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047374", "oauth_nonce"=>"hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"S4vWqhydQrNcDR9hVptrkQmokhE="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4"], ["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: hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4\noauth_signature: S4vWqhydQrNcDR9hVptrkQmokhE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047374'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=2FAFBJFm0PRO7zzA6wFTCdorSFp3tUW2f2QVkVxVPc
-Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+Redirected to http://test.host/cookie_test?nonce=hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:08:08.897702"], ["updated_at", "2016-08-15 19:08:08.897702"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 21:57:54.747783') LIMIT 1
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2016-08-15 18:58:08.899068"], ["updated_at", "2016-08-15 19:08:08.899440"], ["id", 1]]
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:52:54.759251', "updated_at" = '2013-10-17 22:02:54.759755', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:08.905006') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:57:54.785673') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT 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", "2016-08-15 19:08:08.908996"], ["updated_at", "2016-08-15 19:08:08.908996"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:57:54.796054') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:02:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 21:57:54.811199') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 104184ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047559", "oauth_nonce"=>"ctQQtcXpzIkEh7JGxFx30hqsvfzP2hUVNzTnfLmiU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VZ38trF5Icy06ZjRX3/tHsmCyqo="}
+Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 1.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047559", "oauth_nonce"=>"V59fjXNwaEw1nnhMWuVEj9hMZm4kgLhBvtiFhzJzY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"d6voQk6nZ5BCk9cAsWpFKnFi688="}
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047559", "oauth_nonce"=>"xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"F2spbecYFQJV7RTNvqDpxTCoSKg="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.7ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00], ["nonce", "xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM"], ["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: xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM\noauth_signature: F2spbecYFQJV7RTNvqDpxTCoSKg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047559'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM
+Completed 302 Found in 15ms (ActiveRecord: 4.8ms)
+ [1m[36m (1.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047559", "oauth_nonce"=>"BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"2VuhVAl8vf0DDzV9MKba4BniVuY="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00], ["nonce", "BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA"], ["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: BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA\noauth_signature: 2VuhVAl8vf0DDzV9MKba4BniVuY=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047559'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA
+Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:00:59.950376') LIMIT 1
+Completed 200 OK in 38ms (Views: 0.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:05:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:55:59.998389', "updated_at" = '2013-10-17 22:05:59.999098', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:08.912245') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:00.004259') LIMIT 1[0m
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:00 UTC +00:00]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:00.017966') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
-Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches"[0m
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:00 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:00 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:00.042106') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 35ms (Views: 35.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT 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", "2016-08-15 19:08:08.920189"], ["updated_at", "2016-08-15 19:08:08.920189"]]
+ [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:14.840183') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (1.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:08.922752') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:14.860344') LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (1.2ms)[0m [1mrollback transaction[0m
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:08:08.930585"], ["updated_at", "2016-08-15 19:08:08.930585"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"invalid"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:08.932880') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "invalid"]]
- Rendered text template (0.0ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:01:14.873418') LIMIT 1
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:56:14.883841', "updated_at" = '2013-10-17 22:06:14.884282', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:14.887034') LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047574", "oauth_nonce"=>"lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"I9ea1ihoXmw4ANQb2YKhY4tG7MQ="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0"], ["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: lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0\noauth_signature: I9ea1ihoXmw4ANQb2YKhY4tG7MQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047574'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047574", "oauth_nonce"=>"9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"nfp9Aoc2f+Yhk/eHVQrwGV+jDU0="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00], ["nonce", "9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA"], ["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: 9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA\noauth_signature: nfp9Aoc2f+Yhk/eHVQrwGV+jDU0=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047574'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:14 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047574", "oauth_nonce"=>"crc0X7wLq1tZG8rsYHiZUyFexVsRzmSN6kRzALbZBg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"rML3/k94l/Rj0VkZNdl++o+I2D0="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047574", "oauth_nonce"=>"EJE7ruVkXPpEuJChVYNKgaF6n7QAZ0c9oU0MYeF21Ds", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"0ADnW7NVXwoSOVoDV1dE/8gLN8Q="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:22.931388') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[36m (1.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:22.955182') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:22 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:01:22.989982') LIMIT 1
+Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:56:23.007036', "updated_at" = '2013-10-17 22:06:23.007476', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:23.010081') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047583", "oauth_nonce"=>"reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"V2+1Z6wfGioRjwV7NEtmyXhHhho="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00], ["nonce", "reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc"], ["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: reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc\noauth_signature: V2+1Z6wfGioRjwV7NEtmyXhHhho=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047583'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047583", "oauth_nonce"=>"yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"duJOrCXfzlyv7VXcWtMXpL03RXI="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00], ["nonce", "yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak"], ["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: yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak\noauth_signature: duJOrCXfzlyv7VXcWtMXpL03RXI=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047583'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:23 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047583", "oauth_nonce"=>"Qd36dImSK0N6EM7G8UbhXQmutk0VQTfT5Ov0DV8t6o", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"MgILanEE5w09sABN/7WItfu5AZE="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047583", "oauth_nonce"=>"ORXDMGVHd4xT02NsuLNzYKavYvVPdutvOS9Xl1QmelI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"WhV2YHw0WpKiN3daQKFruHY/n+k="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 24ms (Views: 24.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288138", "oauth_nonce"=>"weN0nMblqluUlpdQeOf4pUHyNCp7RStwcpbolE2m3Os", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"7h8XOMDEU1oYaOjGKY5TUQXDnaQ="}
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047591", "oauth_nonce"=>"Z7p553ABajvSSHF1zV33gybYEoMJnSjVdBSMYAp4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"6quHaU/hsWLIOhmVU4osuA36CwU="}
Rendered text template (0.0ms)
-Completed 200 OK in 21ms (Views: 13.4ms | ActiveRecord: 1.2ms)
+Completed 200 OK in 18ms (Views: 9.5ms | ActiveRecord: 1.4ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288138", "oauth_nonce"=>"6NFsvUfKIEta5EJgYKQUCmbLlODmXx5lRuewQ7Hh8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"GlS6GZryJsqcZAPq+NHrBjerXZ4="}
- Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047591", "oauth_nonce"=>"QUuRPGTnbBZB3h3i8Q8jUoZGeBGuS2lAHVshTI4LLM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"GtdjrDGa/3fDd5YLCYa/eZGRLCA="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288138", "oauth_nonce"=>"b9GlhL7lPB3hLsvHg40cg4NcYh7hl9A5DC0Bs6Ym8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"OeRQpSZQmDHP4e9vOKJCctCqlB4="}
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: b9GlhL7lPB3hLsvHg40cg4NcYh7hl9A5DC0Bs6Ym8\noauth_signature: OeRQpSZQmDHP4e9vOKJCctCqlB4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288138'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "b9GlhL7lPB3hLsvHg40cg4NcYh7hl9A5DC0Bs6Ym8"], ["created_at", "2016-08-15 19:08:58.044221"], ["updated_at", "2016-08-15 19:08:58.044221"]]
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047591", "oauth_nonce"=>"xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"n9Os07FOK3w5dprmZN92G7a/gBk="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o"], ["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: xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o\noauth_signature: n9Os07FOK3w5dprmZN92G7a/gBk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047591'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o
+Completed 302 Found in 11ms (ActiveRecord: 4.4ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047591", "oauth_nonce"=>"uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"0rzNv9OvJOlvRoqzfUFsBd3rJ4k="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI"], ["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: uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI\noauth_signature: 0rzNv9OvJOlvRoqzfUFsBd3rJ4k=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047591'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:56:31.443240', "updated_at" = '2013-10-17 22:06:31.443806', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:31.447409') LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:01:31.459043') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=b9GlhL7lPB3hLsvHg40cg4NcYh7hl9A5DC0Bs6Ym8
-Completed 302 Found in 17ms (ActiveRecord: 1.3ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
- [1m[35m (0.8ms)[0m rollback transaction
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:31.468692') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:06:31 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:01:31.484156') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288138", "oauth_nonce"=>"OTG7WxNr67l2AZq5mkHWKJPPv0QddLQcyqTQoxN9zEc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"IOE/+AC9jGW2+jTYM3SVi1YUKpo="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047788", "oauth_nonce"=>"CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"fQbKOvD7Rh8zABp4YdObqDEEB7Q="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: OTG7WxNr67l2AZq5mkHWKJPPv0QddLQcyqTQoxN9zEc\noauth_signature: IOE/+AC9jGW2+jTYM3SVi1YUKpo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288138'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "OTG7WxNr67l2AZq5mkHWKJPPv0QddLQcyqTQoxN9zEc"], ["created_at", "2016-08-15 19:08:58.075999"], ["updated_at", "2016-08-15 19:08:58.075999"]]
+ [1m[36mSQL (24.6ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk"], ["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: CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk\noauth_signature: fQbKOvD7Rh8zABp4YdObqDEEB7Q=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047788'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=OTG7WxNr67l2AZq5mkHWKJPPv0QddLQcyqTQoxN9zEc
-Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+Redirected to http://test.host/cookie_test?nonce=CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk
+Completed 302 Found in 39ms (ActiveRecord: 26.0ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047788", "oauth_nonce"=>"f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"g75UPtZlr+W2bl971BzV01BHOEs="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc"], ["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: f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc\noauth_signature: g75UPtZlr+W2bl971BzV01BHOEs=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382047788'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (1.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047788", "oauth_nonce"=>"Hglfto0A51BkeiYPS5YSFByniGP9PHVHQar8CU98D8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"5r+DFBTBUVbwPT5vr2HgvgVl/a4="}
+Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382047788", "oauth_nonce"=>"CmEn0kFbvqYdQWzqgfMknaUfOojzQ5RaZnHXSnHRrRE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ws503nf66UuzNQjVrDWJTEz9nR8="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:08:58.088911"], ["updated_at", "2016-08-15 19:08:58.088911"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:04:48.833432') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2016-08-15 18:58:58.091457"], ["updated_at", "2016-08-15 19:08:58.091802"], ["id", 1]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:58.097099') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
- Rendered text template (0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:04:48.852301') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 21:59:48.864409', "updated_at" = '2013-10-17 22:09:48.864885', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:04:48.867914') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:09:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:04:48.877440') LIMIT 1
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
- [1m[35m (1.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT 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", "2016-08-15 19:08:58.102971"], ["updated_at", "2016-08-15 19:08:58.102971"]]
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (24.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:58.105974') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:13:33.412204') LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
-Completed 302 Found in 8ms (ActiveRecord: 0.4ms)
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:08:58.115738"], ["updated_at", "2016-08-15 19:08:58.115738"]]
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:58.118070') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:13:33.430181') LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:08:58.121856"], ["updated_at", "2016-08-15 19:08:58.121856"]]
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 22:08:33.442223', "updated_at" = '2013-10-17 22:18:33.442655', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:13:33.445146') LIMIT 1[0m
+Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"invalid"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:03:58.123946') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "invalid"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:13:33.461107') LIMIT 1[0m
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382048313", "oauth_nonce"=>"PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"yCz0Qt9Iqk6Kp/VIELldKrX6IKo="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs"], ["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: PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs\noauth_signature: yCz0Qt9Iqk6Kp/VIELldKrX6IKo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382048313'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs
+Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382048313", "oauth_nonce"=>"suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KsH+OWZCaHNzoVAQKe5zhuAhKFc="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00], ["nonce", "suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0"], ["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: suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0\noauth_signature: KsH+OWZCaHNzoVAQKe5zhuAhKFc=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382048313'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:18:33 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382048313", "oauth_nonce"=>"SMmLoclVvKW3ZxT2OHROBPlmlL6DuFK6p2M4jTM6w8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"AZ8u8Anxx96wzoM+isp1gq3GYPc="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382048313", "oauth_nonce"=>"OPfkZ3MpNE1K82g8VzvuW753a64vFCwpzLw5XZ04EIM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"yLJ7fY9rr5j5x6KJuQS0l/I/zDs="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (26.7ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:28:36.410585') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:28:36.428646') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:28:36.441641') LIMIT 1
+Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 22:23:36.452400', "updated_at" = '2013-10-17 22:33:36.452838', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:28:36.455515') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382049216", "oauth_nonce"=>"0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"xjdHFIzgv3Qqb6trIndm0BiVC6s="}
+ [1m[35m (0.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg"], ["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: 0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg\noauth_signature: xjdHFIzgv3Qqb6trIndm0BiVC6s=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382049216'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg
+Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382049216", "oauth_nonce"=>"qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"XamEI+hWm2bTFjY800e3JhRkz94="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00], ["nonce", "qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA"], ["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: qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA\noauth_signature: XamEI+hWm2bTFjY800e3JhRkz94=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382049216'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:33:36 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382049216", "oauth_nonce"=>"BL0Ir854uXVOrzbqMEQTc5tFvbSsajHEuYJGB1NhE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"vBE/i3RyyvkyJtx3nQbN4JT2i1Y="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382049216", "oauth_nonce"=>"8NdjXPOmXT9O32J1i96kNWPXMTcmG3DGMrmhViSaMH4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VBQMSTUed+WpEz3360WDyYe6szo="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
@@ -747,357 +3296,4178 @@
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (5.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:51:51.239068') LIMIT 1[0m
+ Rendered text template (0.0ms)
+Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:51:51.260256') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:51:51.276267') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 22:46:51.288338', "updated_at" = '2013-10-17 22:56:51.288855', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:51:51.292205') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050611", "oauth_nonce"=>"gxKQ9QXOQglTeJP596ntEVGEmRaZcaoJQ8kEvg3QQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"m6XR3b3FP/odIJQXGnT1OpD4IAg="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050611", "oauth_nonce"=>"GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"YTN3mWZmSQTQ8wCe32oS7bptAFk="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT 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", "2016-08-15 19:09:10.220618"], ["updated_at", "2016-08-15 19:09:10.220618"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c"], ["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: GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c\noauth_signature: YTN3mWZmSQTQ8wCe32oS7bptAFk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050611'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Processing by LtiProvider::LtiController#consume_launch as HTML
- Parameters: {"nonce"=>"invalid"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:04:10.226730') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "invalid"]]
+Redirected to http://test.host/cookie_test?nonce=GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050611", "oauth_nonce"=>"EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"U4UacqxFsOII62rhi8FhrkaxeG4="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00], ["nonce", "EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4"], ["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: EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4\noauth_signature: U4UacqxFsOII62rhi8FhrkaxeG4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050611'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:56:51 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050611", "oauth_nonce"=>"RXPXD5P5tVElNkYDMdlxhZWcs8gg3maq12muwcinFo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"sR91MKyd2/DmJAEGI/CWWxdmhBw="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050678", "oauth_nonce"=>"gz8LNKU3bB6lJUWBy7HJtlq45daE6EPQllAXCgtuzY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"laNnB/QOsqg8TbsuiiMrVIB6lnA="}
Rendered text template (0.0ms)
-Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 0.1ms)
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 1.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050678", "oauth_nonce"=>"I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"QNn3YW/68v/ohZtjS6hZWqqX/oQ="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT 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", "2016-08-15 19:09:10.242087"], ["updated_at", "2016-08-15 19:09:10.242087"]]
+ [1m[36mSQL (4.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk"], ["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: I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk\noauth_signature: QNn3YW/68v/ohZtjS6hZWqqX/oQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050678'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk
+Completed 302 Found in 11ms (ActiveRecord: 4.2ms)
+ [1m[36m (1.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050678", "oauth_nonce"=>"6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"rw1ae/S4Zz7AStHNNZO5R+txAr8="}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno"], ["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: 6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno\noauth_signature: rw1ae/S4Zz7AStHNNZO5R+txAr8=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050678'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno
+Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050678", "oauth_nonce"=>"NJ9dWX9aoMFeyI4Mnm1y0gFsLGp3qGOxIKIwQ0byw0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"XH7FToamynvI40Pzv2eoBnu7gDg="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2016-08-15 18:59:10.243405"], ["updated_at", "2016-08-15 19:09:10.243733"], ["id", 1]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 22:47:58.201820', "updated_at" = '2013-10-17 22:57:58.202291', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:04:10.245969') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
- Rendered text template (0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:52:58.205745') LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:52:58.219637') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:52:58.235183') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:57:58 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:52:58.274004') LIMIT 1
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:54:10.845836') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
+ [1m[36m (1.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:09:10.248525"], ["updated_at", "2016-08-15 19:09:10.248525"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (1.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:04:10.251286') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:54:10.864776') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-10-17 22:54:10.882946') LIMIT 1
+Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2013-10-17 22:49:10.893063', "updated_at" = '2013-10-17 22:59:10.893670', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-10-17 22:54:10.896926') LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050750", "oauth_nonce"=>"ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"w+EYoJ4togaH1VObajfKwQ+wVwg="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ"], ["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: ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ\noauth_signature: w+EYoJ4togaH1VObajfKwQ+wVwg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050750'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ
+Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.4ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050750", "oauth_nonce"=>"ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"lLv4wZnmXjdV4RxEcU5+mM6vo/8="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00], ["nonce", "ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8"], ["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: ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8\noauth_signature: lLv4wZnmXjdV4RxEcU5+mM6vo/8=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1382050750'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Thu, 17 Oct 2013 22:59:10 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050750", "oauth_nonce"=>"Eombe6rFenWsyixlXfS6vSdYfZzyloZ0yfgOLDyp1I", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"kPa9Gk7naiAWM9eFr2Khw1CiqgY="}
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1382050750", "oauth_nonce"=>"IxRULxhDUwBUbBYHeFhLfpm5kIQfhNXYwsU4FGReU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"V2cZkfasDA+QFTCCicxLDtzfCBs="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (56.0ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-11-13 18:12:38.709691') LIMIT 1[0m
+Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2013-11-13 18:07:38.755725', "updated_at" = '2013-11-13 18:17:38.756323', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.759918') LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.769711') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.6ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT 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", "2016-08-15 19:09:10.266589"], ["updated_at", "2016-08-15 19:09:10.266589"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:04:10.268826') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.785619') LIMIT 1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches"[0m
- [1m[35m (0.4ms)[0m rollback transaction
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.6ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"YMnk53DMGS2rNyfjP7NZYtiarSEoq0tFJCSi1hzQdfw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"SUhQZCcg10WvX/jLxN5W0yowtfI="}
+Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"RwOtU9a6iCxS388vT2ko5UK9A6nVA6K0Y6zzJyPfBE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Eb21ImcKHFaAUsTJxeNiYC4LHjw="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NIUhzyHbVAP9eFK3TTn2UOfppWg="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs"], ["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: l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs\noauth_signature: NIUhzyHbVAP9eFK3TTn2UOfppWg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1384366658'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NdWVoj4uU8tf813Q49UMBuaxNvM="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg"], ["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: JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg\noauth_signature: NdWVoj4uU8tf813Q49UMBuaxNvM=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1384366658'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg
+Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.1ms)
-Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.1ms)
+Completed 200 OK in 24.8ms (Views: 24.6ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288150", "oauth_nonce"=>"MsKFDZTvONRUvzHqynUG45A098oFJyTaPmFIuAfWJw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"qw397WapGMt+liWLl9Phowv6Qgw="}
- Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288150", "oauth_nonce"=>"DBQRS7OYx9eP68jgecrdkQpLbe6ayqclgh4hf8N1UM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"AJs2lfQ+GkID5/pV79Sel8cawyk="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: DBQRS7OYx9eP68jgecrdkQpLbe6ayqclgh4hf8N1UM\noauth_signature: AJs2lfQ+GkID5/pV79Sel8cawyk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288150'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "DBQRS7OYx9eP68jgecrdkQpLbe6ayqclgh4hf8N1UM"], ["created_at", "2016-08-15 19:09:10.308606"], ["updated_at", "2016-08-15 19:09:10.308606"]]
+ [1m[36mSQL (3.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=DBQRS7OYx9eP68jgecrdkQpLbe6ayqclgh4hf8N1UM
-Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
- [1m[35m (0.3ms)[0m rollback transaction
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:48:44.109428') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6.7ms (ActiveRecord: 1.0ms)
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:48:44.121891') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:48:44.127554') LIMIT 1
+Completed 200 OK in 2.0ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:43:44.134824', "updated_at" = '2014-10-11 02:53:44.135291', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:48:44.138137') LIMIT 1[0m
+Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288150", "oauth_nonce"=>"zQXR55fILMNMXYSi9QJhbnAoobOYbEtS8oWE3kNSuE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"vb7ZSOQYTzaFHEt5M56fodBmLNQ="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996024", "oauth_nonce"=>"GzlSZShK0BiNjwTxkRIvNsYO9GQspwpsK95gCNLPdQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"mT9Xtkw9l4mEzMlI4wtkYi/HjSM="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: zQXR55fILMNMXYSi9QJhbnAoobOYbEtS8oWE3kNSuE\noauth_signature: vb7ZSOQYTzaFHEt5M56fodBmLNQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288150'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "zQXR55fILMNMXYSi9QJhbnAoobOYbEtS8oWE3kNSuE"], ["created_at", "2016-08-15 19:09:10.320326"], ["updated_at", "2016-08-15 19:09:10.320326"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "GzlSZShK0BiNjwTxkRIvNsYO9GQspwpsK95gCNLPdQ"], ["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: GzlSZShK0BiNjwTxkRIvNsYO9GQspwpsK95gCNLPdQ\noauth_signature: mT9Xtkw9l4mEzMlI4wtkYi/HjSM=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996024'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=zQXR55fILMNMXYSi9QJhbnAoobOYbEtS8oWE3kNSuE
-Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
+Redirected to http://test.host/cookie_test?nonce=GzlSZShK0BiNjwTxkRIvNsYO9GQspwpsK95gCNLPdQ
+Completed 302 Found in 25.2ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996024", "oauth_nonce"=>"V8klNkpBGo03TW2a5fFiAFpF473iWiNBIfYWVMloN4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"/1svsmr2mLteooLDLjwUBhD+eFI="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00], ["nonce", "V8klNkpBGo03TW2a5fFiAFpF473iWiNBIfYWVMloN4"], ["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: V8klNkpBGo03TW2a5fFiAFpF473iWiNBIfYWVMloN4\noauth_signature: /1svsmr2mLteooLDLjwUBhD+eFI=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996024'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:53:44 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=V8klNkpBGo03TW2a5fFiAFpF473iWiNBIfYWVMloN4
+Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288150", "oauth_nonce"=>"eVTLTM4SHCRIVjzO6A3MEWGC5KES6efv2ry29W8kM1w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"LxPZXkTYLXzw3s2tgoiG396M1ns="}
- Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996024", "oauth_nonce"=>"GgsANpKuOgMBDe0w4rDFvFoY7JyucRRNYRaXMyMZBQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"uDpyK90V7amVowjXrBKnXyMiGm4="}
+Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996024", "oauth_nonce"=>"vgbCIrwrYQyDC6vZacl51KQQYZAvCoMOmyrQhOlNNUk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"2mauehUmLwuSf+8nJ136AV6t5Kw="}
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 9ms (Views: 9.3ms | ActiveRecord: 0.0ms)
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.1ms)
+Completed 200 OK in 27.9ms (Views: 27.7ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.4ms)[0m [1mINSERT 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", "2016-08-15 19:10:33.385709"], ["updated_at", "2016-08-15 19:10:33.385709"]]
+Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:49:26.505850') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6.5ms (ActiveRecord: 0.8ms)
+ [1m[36m (1.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2016-08-15 19:00:33.391293"], ["updated_at", "2016-08-15 19:10:33.391681"], ["id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:05:33.398983') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:49:26.518080') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:44:26.523246', "updated_at" = '2014-10-11 02:54:26.523567', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:49:26.525693') LIMIT 1[0m
+Completed 200 OK in 2.2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:49:26.535412') LIMIT 1[0m
+Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996066", "oauth_nonce"=>"N7IDeClFOI228qXWVblHeNsOpIdmwRLFWAXPBCh6E40", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"1Uf21nNO9D+99TFeC46CIjUr7x4="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "N7IDeClFOI228qXWVblHeNsOpIdmwRLFWAXPBCh6E40"], ["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: N7IDeClFOI228qXWVblHeNsOpIdmwRLFWAXPBCh6E40\noauth_signature: 1Uf21nNO9D+99TFeC46CIjUr7x4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996066'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=N7IDeClFOI228qXWVblHeNsOpIdmwRLFWAXPBCh6E40
+Completed 302 Found in 3.0ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996066", "oauth_nonce"=>"7HyCQqZJ1fuYsnSIlJLYSPNkAIDm3Ccl952CAne9Q", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KWZ3WuV7MYVqCIuGljSEmn+o89k="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00], ["nonce", "7HyCQqZJ1fuYsnSIlJLYSPNkAIDm3Ccl952CAne9Q"], ["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: 7HyCQqZJ1fuYsnSIlJLYSPNkAIDm3Ccl952CAne9Q\noauth_signature: KWZ3WuV7MYVqCIuGljSEmn+o89k=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996066'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:54:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=7HyCQqZJ1fuYsnSIlJLYSPNkAIDm3Ccl952CAne9Q
+Completed 302 Found in 2.9ms (ActiveRecord: 0.3ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996066", "oauth_nonce"=>"OrjEqByfBiYObJLaBeaxS13o7VRdj0LFhfum4UxE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"1iATkkJkRI/BeZfcCR+LJQDGtJo="}
+Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996066", "oauth_nonce"=>"N6yAvJumtqfIdq1tLYvi4MON5liyWQqo5wEsMgy8gIM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"jHsNTmFHPLoHMsOvEnrQXh5Msmg="}
+Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996187", "oauth_nonce"=>"jRamWYxaCsRPnWreHTuUGkmeGflwg7GBqKVwfcjKM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"cpMsiX9/DB4vYUcjXV53xWN6eU0="}
Rendered text template (0.0ms)
-Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 31.5ms (Views: 25.5ms | ActiveRecord: 1.4ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996187", "oauth_nonce"=>"I3EVwD0U5syXND98MFm2j8hV7KMoUXcEXt57WuTnrTE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"V4vLLdDY6NsGLQWcTXYX+XcQcro="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "I3EVwD0U5syXND98MFm2j8hV7KMoUXcEXt57WuTnrTE"], ["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: I3EVwD0U5syXND98MFm2j8hV7KMoUXcEXt57WuTnrTE\noauth_signature: V4vLLdDY6NsGLQWcTXYX+XcQcro=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996187'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=I3EVwD0U5syXND98MFm2j8hV7KMoUXcEXt57WuTnrTE
+Completed 302 Found in 6.3ms (ActiveRecord: 3.2ms)
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996187", "oauth_nonce"=>"37wL4RvhYPacJUjd8gTpQkQpscZZoHsD0xKdjIvSyE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"SlMRgUffSkC2v5vNQyIFAakIvAo="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "37wL4RvhYPacJUjd8gTpQkQpscZZoHsD0xKdjIvSyE"], ["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: 37wL4RvhYPacJUjd8gTpQkQpscZZoHsD0xKdjIvSyE\noauth_signature: SlMRgUffSkC2v5vNQyIFAakIvAo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996187'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=37wL4RvhYPacJUjd8gTpQkQpscZZoHsD0xKdjIvSyE
+Completed 302 Found in 2.9ms (ActiveRecord: 0.3ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996187", "oauth_nonce"=>"tb9oH617YMJX2iYLthADAEhtneNuZvfsD8O4XP5HEQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ocb2FPh8VcrQEGXchZBLnUGYOd8="}
+Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:10:33.406602"], ["updated_at", "2016-08-15 19:10:33.406602"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:46:27.726489', "updated_at" = '2014-10-11 02:56:27.726848', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:05:33.408622') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:51:27.729938') LIMIT 1[0m
+Completed 200 OK in 2.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:51:27.737422') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 3.4ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:51:27.747094') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:56:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:51:27.753608') LIMIT 1
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 26.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 7.0ms (Views: 6.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.6ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996237", "oauth_nonce"=>"K8Blo7QyQG6RGZPqHAH0kcq3hu8dyE1aEGC6NuPIc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"CwYkcxtnriH7ZcpkN1kGW0CJc4Y="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "K8Blo7QyQG6RGZPqHAH0kcq3hu8dyE1aEGC6NuPIc"], ["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: K8Blo7QyQG6RGZPqHAH0kcq3hu8dyE1aEGC6NuPIc\noauth_signature: CwYkcxtnriH7ZcpkN1kGW0CJc4Y=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996237'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=K8Blo7QyQG6RGZPqHAH0kcq3hu8dyE1aEGC6NuPIc
+Completed 302 Found in 35.2ms (ActiveRecord: 27.5ms)
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996237", "oauth_nonce"=>"ErczkKq93r92xHONcCLSU7lHMshQFfIAMp2DoWZA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"rICpZtli6W/Gl8SSd0THzCH+8PI="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "ErczkKq93r92xHONcCLSU7lHMshQFfIAMp2DoWZA"], ["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: ErczkKq93r92xHONcCLSU7lHMshQFfIAMp2DoWZA\noauth_signature: rICpZtli6W/Gl8SSd0THzCH+8PI=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996237'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=ErczkKq93r92xHONcCLSU7lHMshQFfIAMp2DoWZA
+Completed 302 Found in 3.9ms (ActiveRecord: 0.5ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:10:33.419129"], ["updated_at", "2016-08-15 19:10:33.419129"]]
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996237", "oauth_nonce"=>"I7O8rtajzt7QdNfLEUfD6h3R7nO8qpR5X7HwVfhJ4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"EChxOtm97BkprmCvPAyDXs+6tj8="}
+Completed 200 OK in 2.7ms (Views: 1.9ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996237", "oauth_nonce"=>"af6PrLAVW38u15mHQK6w2F0P4jjJnlRrd43m8xnYP0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"CgHhCUTSksuVTEjOn2wu0k9l4uc="}
+Completed 200 OK in 1.6ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:05:33.421907') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:52:17.682452') LIMIT 1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[35mSQL (0.7ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
+Completed 302 Found in 6.3ms (ActiveRecord: 0.8ms)
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT 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", "2016-08-15 19:10:33.425153"], ["updated_at", "2016-08-15 19:10:33.425153"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
- Parameters: {"nonce"=>"invalid"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:05:33.427156') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "invalid"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
- [1m[35m (0.2ms)[0m rollback transaction
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:52:17.693427') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 2.2ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288233", "oauth_nonce"=>"AS2TohHP3sJvsKnhGJgkxcIawvYAmxNq4f9bAfKow0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"MZkQnLzohDmoEfHftS2M0rYOJcQ="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: AS2TohHP3sJvsKnhGJgkxcIawvYAmxNq4f9bAfKow0\noauth_signature: MZkQnLzohDmoEfHftS2M0rYOJcQ=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288233'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "AS2TohHP3sJvsKnhGJgkxcIawvYAmxNq4f9bAfKow0"], ["created_at", "2016-08-15 19:10:33.435836"], ["updated_at", "2016-08-15 19:10:33.435836"]]
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=AS2TohHP3sJvsKnhGJgkxcIawvYAmxNq4f9bAfKow0
-Completed 302 Found in 11ms (ActiveRecord: 0.6ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
- [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:47:17.700446', "updated_at" = '2014-10-11 02:57:17.700809', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:52:17.703164') LIMIT 1
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:57:17 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:52:17.709485') LIMIT 1
+Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.1ms)
+Completed 200 OK in 6.4ms (Views: 6.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.7ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288233", "oauth_nonce"=>"1VgytcvPLxDbZ1oVTmo81Y8dDBaHLXArO8Wl9XaRZE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"EaWfdTx3cnvldcoXO8UD1uL1O+o="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996303", "oauth_nonce"=>"6UoM014A2oR3C7ZzkIps9ZFQ5G8VtAQac1Jnq011kE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"9j5QXrXmlcOGdjQZZrLprSahIH4="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: 1VgytcvPLxDbZ1oVTmo81Y8dDBaHLXArO8Wl9XaRZE\noauth_signature: EaWfdTx3cnvldcoXO8UD1uL1O+o=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471288233'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "1VgytcvPLxDbZ1oVTmo81Y8dDBaHLXArO8Wl9XaRZE"], ["created_at", "2016-08-15 19:10:33.452021"], ["updated_at", "2016-08-15 19:10:33.452021"]]
+ [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "6UoM014A2oR3C7ZzkIps9ZFQ5G8VtAQac1Jnq011kE"], ["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: 6UoM014A2oR3C7ZzkIps9ZFQ5G8VtAQac1Jnq011kE\noauth_signature: 9j5QXrXmlcOGdjQZZrLprSahIH4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996303'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=1VgytcvPLxDbZ1oVTmo81Y8dDBaHLXArO8Wl9XaRZE
-Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+Redirected to http://test.host/cookie_test?nonce=6UoM014A2oR3C7ZzkIps9ZFQ5G8VtAQac1Jnq011kE
+Completed 302 Found in 13.3ms (ActiveRecord: 5.2ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996303", "oauth_nonce"=>"OBr9QU1bsvtPdNiHOluP1DNGkxB1EM2TCyCfz9AkbR4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"A0mQQOAHV0gopnn09c7TtVdHRwU="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "OBr9QU1bsvtPdNiHOluP1DNGkxB1EM2TCyCfz9AkbR4"], ["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: OBr9QU1bsvtPdNiHOluP1DNGkxB1EM2TCyCfz9AkbR4\noauth_signature: A0mQQOAHV0gopnn09c7TtVdHRwU=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996303'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=OBr9QU1bsvtPdNiHOluP1DNGkxB1EM2TCyCfz9AkbR4
+Completed 302 Found in 3.9ms (ActiveRecord: 0.6ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288233", "oauth_nonce"=>"QUU0HdhmYku6Od7YBL0479QjdEZ8kvJ4zL2hCsV40Q", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KkQH19pdaoPV8zLyS8C8eQoOS0s="}
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996303", "oauth_nonce"=>"BM3QNxUfGlnHJP2iZM6OGFMuGwIAx7bkpnUlccoUjk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"UN8x8He3DHrWqvHU0y1HOgmCA/M="}
+Completed 200 OK in 2.9ms (Views: 1.9ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471288233", "oauth_nonce"=>"QTn7hp19gOJmu0JNQLs1zVjdbgx4dEh6MYoi1L0EpY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"hpeGCwyKzJt6FHVH7fOP6u5EYXQ="}
- Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996303", "oauth_nonce"=>"gwwZF4LlEIWhc9tPZwSbrdIJYEiYwiwCbK9HJvGjNH8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"qL6wCfJL+HW1SVCPFly/s9n01Y8="}
+Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:53:23.879365') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5.9ms (ActiveRecord: 0.9ms)
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:53:23.889283') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:48:23.894034', "updated_at" = '2014-10-11 02:58:23.894375', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:53:23.896668') LIMIT 1
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 02:58:23 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:53:23.901398') LIMIT 1
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 02:58:21.607277') LIMIT 1[0m
+ Rendered text template (0.0ms)
+Completed 200 OK in 9.3ms (Views: 6.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:58:21.624362') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 5.0ms (ActiveRecord: 0.9ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:58:21.634356') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.8ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:53:21.639698', "updated_at" = '2014-10-11 03:03:21.640018', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 02:58:21.642343') LIMIT 1[0m
+Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1.4ms (Views: 1.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.6ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996601", "oauth_nonce"=>"jQJRSDDDZYRFhhvfwl97M4IlRjl9yAsUjRsVl3ebIw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"lBb72gvEqFL3UodKu12xnX9U9Ho="}
+Completed 200 OK in 1.5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996601", "oauth_nonce"=>"oJiPlMllYp6mXe18emUAAyq8HdsiBWubAGQiLAd2U", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"WjWsf1fN23pPR/RZezs+x7WjX5s="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "oJiPlMllYp6mXe18emUAAyq8HdsiBWubAGQiLAd2U"], ["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: oJiPlMllYp6mXe18emUAAyq8HdsiBWubAGQiLAd2U\noauth_signature: WjWsf1fN23pPR/RZezs+x7WjX5s=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996601'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=oJiPlMllYp6mXe18emUAAyq8HdsiBWubAGQiLAd2U
+Completed 302 Found in 2.8ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996601", "oauth_nonce"=>"1JAdrzo22oKfsIOgwP6msfaUNnGnbzA4w0HRKvIFw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"UOD8WoDbNPUy7+yg4NyaheICStk="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00], ["nonce", "1JAdrzo22oKfsIOgwP6msfaUNnGnbzA4w0HRKvIFw"], ["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: 1JAdrzo22oKfsIOgwP6msfaUNnGnbzA4w0HRKvIFw\noauth_signature: UOD8WoDbNPUy7+yg4NyaheICStk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996601'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:03:21 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=1JAdrzo22oKfsIOgwP6msfaUNnGnbzA4w0HRKvIFw
+Completed 302 Found in 5.1ms (ActiveRecord: 0.7ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996601", "oauth_nonce"=>"9wHnVg94Bcv1AVNNsZDWAfRnDcc5Tcbs2WTtFQ2rFh0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"etQeKcB1n3/6zBZgPwDk9eAMJJI="}
+Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996973", "oauth_nonce"=>"F2ZJ7j635tSdQP2yww0tklTWkABiwN9eEtB4fl3w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"zIT6mCdhj0zL0B7mmH2Kd38ocho="}
+ Rendered text template (0.0ms)
+Completed 200 OK in 7.2ms (Views: 6.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996973", "oauth_nonce"=>"YV2r7GEuL9sNXig2mbWgttRuZILmtI6R7AQtUoA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VTJxoIntvO5TvSWgEco2o0ErKJk="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "YV2r7GEuL9sNXig2mbWgttRuZILmtI6R7AQtUoA"], ["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: YV2r7GEuL9sNXig2mbWgttRuZILmtI6R7AQtUoA\noauth_signature: VTJxoIntvO5TvSWgEco2o0ErKJk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996973'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=YV2r7GEuL9sNXig2mbWgttRuZILmtI6R7AQtUoA
+Completed 302 Found in 7.0ms (ActiveRecord: 3.5ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (1.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996973", "oauth_nonce"=>"pXYXTd2jvVoNPnL1AAqo5BEzTqc6dGrpRAVKp9ylIw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"9yKSmwKRtUz9BvBTI8JgY7Bt5QY="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "pXYXTd2jvVoNPnL1AAqo5BEzTqc6dGrpRAVKp9ylIw"], ["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: pXYXTd2jvVoNPnL1AAqo5BEzTqc6dGrpRAVKp9ylIw\noauth_signature: 9yKSmwKRtUz9BvBTI8JgY7Bt5QY=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412996973'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=pXYXTd2jvVoNPnL1AAqo5BEzTqc6dGrpRAVKp9ylIw
+Completed 302 Found in 5.3ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412996973", "oauth_nonce"=>"Seny52UD68aDiRQmJTYpMBi9VARNoc49hEvDcOlQQA", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"/2x6yDIGENsenGCdcKg3WSgMvXw="}
+Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
-Initializing LTI key and secret using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti.yml
-Initializing LTI XML config using configuration in /Users/ngupta/Documents/lti_provider_engine/spec/dummy/config/lti_xml.yml
- [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
-Completed 200 OK in 15ms (Views: 15.0ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1.9ms (Views: 1.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.7ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 02:59:33.794349', "updated_at" = '2014-10-11 03:09:33.794726', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:04:33.798180') LIMIT 1[0m
+Completed 200 OK in 3.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:04:33.806785') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 3.1ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:04:33.813758') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 1.4ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:09:33 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 03:04:33.818949') LIMIT 1
+Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 03:04:05.752141', "updated_at" = '2014-10-11 03:14:05.752496', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:05.755907') LIMIT 1
+Completed 200 OK in 28.5ms (Views: 25.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 03:09:05.791752') LIMIT 1
+Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:05.797173') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:05.805315') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.6ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#cookie_test as HTML
- Rendered /Users/ngupta/Documents/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.1ms)
-Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1.3ms (Views: 1.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#configure as XML
-Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 6.2ms (Views: 6.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 3.8ms (Views: 3.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 03:09:26.169594') LIMIT 1[0m
+Completed 200 OK in 4.9ms (Views: 1.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 03:04:26.180055', "updated_at" = '2014-10-11 03:14:26.180499', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:26.184032') LIMIT 1
+Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:26.190336') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4.2ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:09:26.198838') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.4ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471290348", "oauth_nonce"=>"jmxKbuPZuGgnBxHUVgFCgYipBJZ4gx5mt55towDOE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"va6uNZi5AvtMZNvGVv6x7gyDLDk="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997266", "oauth_nonce"=>"UWGbqGGRptx0Yh4zs7aKEnSYU0omq555DLEjQBYjsk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"aVunKw9WL7OWa6KlxI/F2FIKUa0="}
+Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997266", "oauth_nonce"=>"gifRXok3FKOhwqD7IY3NoeDBrQ8uYfyM6wPkiEjKjc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"VejLF2G7rLd9EETk8sh6v8rxJac="}
+Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997266", "oauth_nonce"=>"4YK09uiM04ODfLmslxf7wvSPoRoG5HaOsY0rZnIzN4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"YUbAC48zzKrSCwOp1Hc7CxBcVg4="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: jmxKbuPZuGgnBxHUVgFCgYipBJZ4gx5mt55towDOE\noauth_signature: va6uNZi5AvtMZNvGVv6x7gyDLDk=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471290348'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "jmxKbuPZuGgnBxHUVgFCgYipBJZ4gx5mt55towDOE"], ["created_at", "2016-08-15 19:45:48.902975"], ["updated_at", "2016-08-15 19:45:48.902975"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "4YK09uiM04ODfLmslxf7wvSPoRoG5HaOsY0rZnIzN4"], ["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: 4YK09uiM04ODfLmslxf7wvSPoRoG5HaOsY0rZnIzN4\noauth_signature: YUbAC48zzKrSCwOp1Hc7CxBcVg4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412997266'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=jmxKbuPZuGgnBxHUVgFCgYipBJZ4gx5mt55towDOE
-Completed 302 Found in 45ms (ActiveRecord: 4.8ms)
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
+Redirected to http://test.host/cookie_test?nonce=4YK09uiM04ODfLmslxf7wvSPoRoG5HaOsY0rZnIzN4
+Completed 302 Found in 4.4ms (ActiveRecord: 0.5ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997266", "oauth_nonce"=>"q568AvlvL7t0dfPZLnIUBmNsbQ4MYhG8ddkn8Kczwc", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ct9xGwDykza5C+CCPfg6Sv3G7+I="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00], ["nonce", "q568AvlvL7t0dfPZLnIUBmNsbQ4MYhG8ddkn8Kczwc"], ["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: q568AvlvL7t0dfPZLnIUBmNsbQ4MYhG8ddkn8Kczwc\noauth_signature: ct9xGwDykza5C+CCPfg6Sv3G7+I=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412997266'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:14:26 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=q568AvlvL7t0dfPZLnIUBmNsbQ4MYhG8ddkn8Kczwc
+Completed 302 Found in 3.2ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.0ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m UPDATE "lti_provider_launches" SET "created_at" = '2014-10-11 03:07:27.358650', "updated_at" = '2014-10-11 03:17:27.359046', "provider_params" = '---
+custom_canvas_course_id: 1
+custom_canvas_user_id: 2
+tool_consumer_instance_guid: 123abc
+' WHERE "lti_provider_launches"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:12:27.362411') LIMIT 1
+Completed 200 OK in 28.2ms (Views: 25.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:12:27.397798') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4.7ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2014-10-11 03:12:27.407898') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1.6ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2014-10-11 03:12:27.413211') LIMIT 1[0m
+Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.3ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471290348", "oauth_nonce"=>"u4k0YQcs4FDCBBBN68xukEljpZ6BNacIkITElKzM0c", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"4Bkv5+LagLf59v2SDLGA3viEWVo="}
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997447", "oauth_nonce"=>"NbQ5uijqDR1tE7nTmkg0ZsKLV8jSEFY5UGX5WWCee2s", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"o9ja3Cqh7apWuz+P7IhHvDa4Ylw="}
+Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997447", "oauth_nonce"=>"q71e3BZz9MJ10YvnkkQr6dosOZ5uJ47jHLoGuYhV4I", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"qVq2BpDYwtNMjqzM3cqYgFlKOLw="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("provider_params", "canvas_url", "nonce", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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: u4k0YQcs4FDCBBBN68xukEljpZ6BNacIkITElKzM0c\noauth_signature: 4Bkv5+LagLf59v2SDLGA3viEWVo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1471290348'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["canvas_url", "http://test.canvas"], ["nonce", "u4k0YQcs4FDCBBBN68xukEljpZ6BNacIkITElKzM0c"], ["created_at", "2016-08-15 19:45:48.936853"], ["updated_at", "2016-08-15 19:45:48.936853"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "q71e3BZz9MJ10YvnkkQr6dosOZ5uJ47jHLoGuYhV4I"], ["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: q71e3BZz9MJ10YvnkkQr6dosOZ5uJ47jHLoGuYhV4I\noauth_signature: qVq2BpDYwtNMjqzM3cqYgFlKOLw=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412997447'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/cookie_test?nonce=u4k0YQcs4FDCBBBN68xukEljpZ6BNacIkITElKzM0c
-Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Redirected to http://test.host/cookie_test?nonce=q71e3BZz9MJ10YvnkkQr6dosOZ5uJ47jHLoGuYhV4I
+Completed 302 Found in 2.8ms (ActiveRecord: 0.4ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471290348", "oauth_nonce"=>"ZPzOrhkTaSE9k0OX7JnD4c6nNyMHdyrGqWwaRNvNrMM", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"mMF349Ry2if6r//cZHJSxjCRX/c="}
- Rendered text template (0.0ms)
-Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997447", "oauth_nonce"=>"j8PaXgowMAGAC9M0ARTfYEbC5EYxEuEHP2saeeGyIG8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Mu8h0BWPbNbIhaq9T10TKRaa8nE="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00], ["nonce", "j8PaXgowMAGAC9M0ARTfYEbC5EYxEuEHP2saeeGyIG8"], ["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: j8PaXgowMAGAC9M0ARTfYEbC5EYxEuEHP2saeeGyIG8\noauth_signature: Mu8h0BWPbNbIhaq9T10TKRaa8nE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412997447'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:17:27 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=j8PaXgowMAGAC9M0ARTfYEbC5EYxEuEHP2saeeGyIG8
+Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412997447", "oauth_nonce"=>"OPG97DS02VudFPCIntKc6uzzNYOxVd0D5khpZzj6OE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"PxX69NaKvVYue/jrhgDZi6FuSS4="}
+Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 8ms (Views: 8.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by LtiProvider::LtiController#launch as HTML
- Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1471290348", "oauth_nonce"=>"SWPjyvqhhDPn0hvPUPRtfcPsZSMTdGeYFHmmlLuYkys", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"+zgOkLZ06/Ma/aq90+eDoT334SI="}
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998760", "oauth_nonce"=>"ipBW6sAoOQBButYCQar8D4oxrfaFKANDof2v163HMqI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"QSZm/QZenW4oSLwNUmpIUGsW7Nk="}
+Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998760", "oauth_nonce"=>"sivpkcwIZHEWPeisdhmTMh1aKyltVg5HK9Pc5cRazk", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"08vh3dWMEfodc8UG2JcrTqYQbc4="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (26.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:39:20 UTC +00:00], ["nonce", "sivpkcwIZHEWPeisdhmTMh1aKyltVg5HK9Pc5cRazk"], ["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: sivpkcwIZHEWPeisdhmTMh1aKyltVg5HK9Pc5cRazk\noauth_signature: 08vh3dWMEfodc8UG2JcrTqYQbc4=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412998760'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:39:20 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=sivpkcwIZHEWPeisdhmTMh1aKyltVg5HK9Pc5cRazk
+Completed 302 Found in 30ms (ActiveRecord: 26.3ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998760", "oauth_nonce"=>"89viYH9ztPf8BQF4y9uaKBO2yifhaR1LQ3v5vZqZvU", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"T/u6e/LdKRnDeEGsSLiJ3wYDMQo="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:39:20 UTC +00:00], ["nonce", "89viYH9ztPf8BQF4y9uaKBO2yifhaR1LQ3v5vZqZvU"], ["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: 89viYH9ztPf8BQF4y9uaKBO2yifhaR1LQ3v5vZqZvU\noauth_signature: T/u6e/LdKRnDeEGsSLiJ3wYDMQo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412998760'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:39:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=89viYH9ztPf8BQF4y9uaKBO2yifhaR1LQ3v5vZqZvU
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998760", "oauth_nonce"=>"OO9mxEVp0hL6AIfRu1lgOYfGjbJmYLH8w7aoaVS1XSg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"T2HREqu1Gx2rwDXhd4KkpLNYyL4="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998850", "oauth_nonce"=>"4uoOqswLqUbdxbeNtYoU2BIAHGHEBYsPAdZHxeZWs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"epMlS5+dwOiOjaFTa+edyHgLq98="}
Rendered text template (0.0ms)
-Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998850", "oauth_nonce"=>"vzRyuX1PIEHHOMsBuu6Q92NNMv0M0eBKd5O3XZe7w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"5BJQhh1KMfCfPEADgvjdUH/n2r8="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (25.1ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "vzRyuX1PIEHHOMsBuu6Q92NNMv0M0eBKd5O3XZe7w"], ["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: vzRyuX1PIEHHOMsBuu6Q92NNMv0M0eBKd5O3XZe7w\noauth_signature: 5BJQhh1KMfCfPEADgvjdUH/n2r8=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412998850'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=vzRyuX1PIEHHOMsBuu6Q92NNMv0M0eBKd5O3XZe7w
+Completed 302 Found in 29ms (ActiveRecord: 25.2ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998850", "oauth_nonce"=>"AB9ouncShFB7D8YnFSZW8OGcRqWxE6qCBb56VdChc8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"hDPTLzlNUCjVqVcZXBG1T4/PswU="}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "AB9ouncShFB7D8YnFSZW8OGcRqWxE6qCBb56VdChc8"], ["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: AB9ouncShFB7D8YnFSZW8OGcRqWxE6qCBb56VdChc8\noauth_signature: hDPTLzlNUCjVqVcZXBG1T4/PswU=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412998850'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=AB9ouncShFB7D8YnFSZW8OGcRqWxE6qCBb56VdChc8
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412998850", "oauth_nonce"=>"cFPLwPVjWW7Ph0WSullMYKGBcWtuvY8cHaZgqkws9w", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"aOa74HUIuxMeD0m1asXoR5c71GY="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:45:48.977153"], ["updated_at", "2016-08-15 19:45:48.977153"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2016-08-15 19:35:48.978697"], ["updated_at", "2016-08-15 19:45:48.979075"], ["id", 1]]
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ?, "provider_params" = ? WHERE "lti_provider_launches"."id" = 1[0m [["created_at", Sat, 11 Oct 2014 03:30:50 UTC +00:00], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:40:48.988173') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:35:50.211343') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:35:50.218815') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches"[0m
[1m[35m (0.4ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT 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", "2016-08-15 19:45:48.991566"], ["updated_at", "2016-08-15 19:45:48.991566"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:40:48.995153') AND "lti_provider_launches"."nonce" = ? LIMIT 1[0m [["nonce", "abcd"]]
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:35:50.228066') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Sat, 11 Oct 2014 03:40:50 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:35:50.236208') AND "lti_provider_launches"."nonce" = 'invalid' LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
+Completed 200 OK in 38ms (Views: 37.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412999031", "oauth_nonce"=>"m5smpJNh8fA6HJTVSuGM8sOkUgeaCN6AxkSyJur0oiE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"iYD254IaLVrjnm81OR8BZPomMyY="}
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2014-10-11 03:43:51.132244"], ["nonce", "m5smpJNh8fA6HJTVSuGM8sOkUgeaCN6AxkSyJur0oiE"], ["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: m5smpJNh8fA6HJTVSuGM8sOkUgeaCN6AxkSyJur0oiE\noauth_signature: iYD254IaLVrjnm81OR8BZPomMyY=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412999031'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-10-11 03:43:51.132244"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=m5smpJNh8fA6HJTVSuGM8sOkUgeaCN6AxkSyJur0oiE
+Completed 302 Found in 15ms (ActiveRecord: 1.9ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412999031", "oauth_nonce"=>"m5yidBHiBBN747hU4ATg0TzKtQc85sjuhk8dtY3oqC4", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ouxrlmuvk+z2NvGgI+srs19C42Q="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", "2014-10-11 03:43:51.145076"], ["nonce", "m5yidBHiBBN747hU4ATg0TzKtQc85sjuhk8dtY3oqC4"], ["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: m5yidBHiBBN747hU4ATg0TzKtQc85sjuhk8dtY3oqC4\noauth_signature: ouxrlmuvk+z2NvGgI+srs19C42Q=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1412999031'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-10-11 03:43:51.145076"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=m5yidBHiBBN747hU4ATg0TzKtQc85sjuhk8dtY3oqC4
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412999031", "oauth_nonce"=>"H3QYGgG6M1XWQyYqSVYycNpG12pbfggn2WYCpgPg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"6TSQ4AcDrUVY4ds0FZZ+dT0c4pg="}
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1412999031", "oauth_nonce"=>"Z1Y8qQvsOCydB1ZGuQ25GoNgemPBX4cc3GPuvxfyQ", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"MeFxo4WnGFfiQEDPj8+cWh51F20="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-10-11 03:43:51.201020"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-10-11 03:43:51.201020"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:38:51.204050') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-10-11 03:43:51.216605"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-10-11 03:43:51.216605"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:38:51.219530') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
-Completed 302 Found in 19ms (ActiveRecord: 0.6ms)
- [1m[36m (0.9ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-10-11 03:43:51.225774"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-10-11 03:43:51.225774"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:45:49.019271"], ["updated_at", "2016-08-15 19:45:49.019271"]]
+ [1m[35mSQL (0.3ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "provider_params" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = 1 [["created_at", "2014-10-11 03:33:51.227478"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-10-11 03:43:51.227679"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"abcd"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:40:49.022329') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "abcd"]]
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:38:51.229999') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-10-11 03:43:51.232680"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-10-11 03:43:51.232680"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-10-11 03:38:51.234753') AND "lti_provider_launches"."nonce" = 'invalid' LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Connecting to database specified by database.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 36ms (Views: 36.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:53:51.718111"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-11-25 19:53:51.718111"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:48:51.723954') AND "lti_provider_launches"."nonce" = 'invalid' LIMIT 1[0m
+Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:53:51.736084"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-11-25 19:53:51.736084"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "provider_params" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = 1 [["created_at", "2014-11-25 19:43:51.738197"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-11-25 19:53:51.738454"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:48:51.741653') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:53:51.745786"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-11-25 19:53:51.745786"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.2ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:48:51.749247') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 34ms (ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:53:51.787408"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", "2014-11-25 19:53:51.787408"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:48:51.791571') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/
-Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945231", "oauth_nonce"=>"hgFwAeeIt4Il98g9Ru2xSk9qtubRTcs8kHYdK50Fo", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"wu7VF0qIfJhsB/iun/E6m95mBGg="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945231", "oauth_nonce"=>"tOvhJwkzVSMccAKhXkn2uiEIpihCNCgM5qwaaF5KHs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"TILAcnLOrFCPo4g1o+HVnYbnjkE="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945231", "oauth_nonce"=>"5YfCfBxxOY0KQUYZuZobArjUzxSf20z4eAZwoD8QB8", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"+hPLRfRgaXVwmm0GGynGxuOIkLo="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2014-11-25 19:53:51.819444"], ["nonce", "5YfCfBxxOY0KQUYZuZobArjUzxSf20z4eAZwoD8QB8"], ["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: 5YfCfBxxOY0KQUYZuZobArjUzxSf20z4eAZwoD8QB8\noauth_signature: +hPLRfRgaXVwmm0GGynGxuOIkLo=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1416945231'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-11-25 19:53:51.819444"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=5YfCfBxxOY0KQUYZuZobArjUzxSf20z4eAZwoD8QB8
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945231", "oauth_nonce"=>"MZk5scWUWPPnyax5DdvHxAEz88tnvxgmVFZK60zOziE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"8IVA09/a2UzP0cQt6dfKQXd3P2k="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2014-11-25 19:53:51.828930"], ["nonce", "MZk5scWUWPPnyax5DdvHxAEz88tnvxgmVFZK60zOziE"], ["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: MZk5scWUWPPnyax5DdvHxAEz88tnvxgmVFZK60zOziE\noauth_signature: 8IVA09/a2UzP0cQt6dfKQXd3P2k=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1416945231'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-11-25 19:53:51.828930"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=MZk5scWUWPPnyax5DdvHxAEz88tnvxgmVFZK60zOziE
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 37ms (Views: 37.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:55:44.315678"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2014-11-25 19:55:44.315678"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:50:44.322850') AND "lti_provider_launches"."nonce" = 'invalid' LIMIT 1[0m
+Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:55:44.333440"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2014-11-25 19:55:44.333440"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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", "2016-08-15 19:45:49.026842"], ["updated_at", "2016-08-15 19:45:49.026842"]]
+ [1m[35mSQL (0.9ms)[0m UPDATE "lti_provider_launches" SET "created_at" = ?, "provider_params" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = 1 [["created_at", "2014-11-25 19:45:44.335403"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2014-11-25 19:55:44.335642"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:50:44.338866') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:55:44.342255"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2014-11-25 19:55:44.342255"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:50:44.345490') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 30ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2014-11-25 19:55:44.378753"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2014-11-25 19:55:44.378753"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2014-11-25 19:50:44.382118') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945344", "oauth_nonce"=>"qkjr2snuEmgy37j01QGv3R4POfE4evZkY5QDvbAC7o", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"MJf6bU5jYltvp6M1BOL6i7jlK9M="}
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945344", "oauth_nonce"=>"Qnwm8qGIcTLsyM0PNJOT0EtFYbLjcWSRQn7WYu9hE0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"r8XzLH5iq9HDOr/Mbcf6Oji1YhI="}
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945344", "oauth_nonce"=>"D2bsTX4WLWncEwPH1TA2AEgDuSl1rdEjvcebQcftVI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"KqgEpAx+d1crRLgH6jC7oVWdB98="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2014-11-25 19:55:44.406498"], ["nonce", "D2bsTX4WLWncEwPH1TA2AEgDuSl1rdEjvcebQcftVI"], ["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: D2bsTX4WLWncEwPH1TA2AEgDuSl1rdEjvcebQcftVI\noauth_signature: KqgEpAx+d1crRLgH6jC7oVWdB98=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1416945344'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-11-25 19:55:44.406498"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=D2bsTX4WLWncEwPH1TA2AEgDuSl1rdEjvcebQcftVI
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1416945344", "oauth_nonce"=>"ZGPvV4gwXerMzzlENVRfU6RmPM1mrt45rb99TBaE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"f4XaeXYBH/+moYOlOdFXoQ5gKMA="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2014-11-25 19:55:44.415862"], ["nonce", "ZGPvV4gwXerMzzlENVRfU6RmPM1mrt45rb99TBaE"], ["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: ZGPvV4gwXerMzzlENVRfU6RmPM1mrt45rb99TBaE\noauth_signature: f4XaeXYBH/+moYOlOdFXoQ5gKMA=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1416945344'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2014-11-25 19:55:44.415862"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=ZGPvV4gwXerMzzlENVRfU6RmPM1mrt45rb99TBaE
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2015-08-20 19:45:59.693313"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2015-08-20 19:45:59.693313"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
Parameters: {"nonce"=>"invalid"}
- [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2016-08-15 19:40:49.030354') AND "lti_provider_launches"."nonce" = ? LIMIT 1 [["nonce", "invalid"]]
- Rendered text template (0.0ms)
-Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
- [1m[36m (1.0ms)[0m [1mrollback transaction[0m
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2015-08-20 19:40:59.704699') AND "lti_provider_launches"."nonce" = 'invalid' LIMIT 1[0m
+Completed 200 OK in 37ms (Views: 13.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://canvas"], ["created_at", "2015-08-20 19:45:59.743967"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2015-08-20 19:45:59.743967"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2015-08-20 19:40:59.745988') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2015-08-20 19:45:59.760962"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2015-08-20 19:45:59.760962"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2015-08-20 19:40:59.763792') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "lti_provider_launches"
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", "2015-08-20 19:45:59.769436"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2015-08-20 19:45:59.769436"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "lti_provider_launches" SET "created_at" = ?, "provider_params" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = 1[0m [["created_at", "2015-08-20 19:35:59.770866"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["updated_at", "2015-08-20 19:45:59.771142"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2015-08-20 19:40:59.773739') AND "lti_provider_launches"."nonce" = 'abcd' LIMIT 1[0m
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1440099959", "oauth_nonce"=>"DHlkQcKFRHyL4uXMEUGZUQPkGvWdHEvXSRsybpbgq0", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"ky8aMdeQ92j+geXeK3TGH8Hp2m4="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1440099959", "oauth_nonce"=>"BhJqsEX8tlf2Xglq6wubYqqEb1lTe8DLcdauwFZLjI", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"f+colh7Dm4s/bgPWUNXdrFR4BQE="}
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["created_at", "2015-08-20 19:45:59.843502"], ["nonce", "BhJqsEX8tlf2Xglq6wubYqqEb1lTe8DLcdauwFZLjI"], ["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: BhJqsEX8tlf2Xglq6wubYqqEb1lTe8DLcdauwFZLjI\noauth_signature: f+colh7Dm4s/bgPWUNXdrFR4BQE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1440099959'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2015-08-20 19:45:59.843502"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/cookie_test?nonce=BhJqsEX8tlf2Xglq6wubYqqEb1lTe8DLcdauwFZLjI
+Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1440099959", "oauth_nonce"=>"pqFhiL3kYP00C1MBdvWbj5JWMrt7jtzkVPYGGF9WwyY", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"nvONUqLctztRpU6ngUzjYundu7s="}
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", "2015-08-20 19:45:59.854697"], ["nonce", "pqFhiL3kYP00C1MBdvWbj5JWMrt7jtzkVPYGGF9WwyY"], ["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: pqFhiL3kYP00C1MBdvWbj5JWMrt7jtzkVPYGGF9WwyY\noauth_signature: nvONUqLctztRpU6ngUzjYundu7s=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1440099959'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", "2015-08-20 19:45:59.854697"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=pqFhiL3kYP00C1MBdvWbj5JWMrt7jtzkVPYGGF9WwyY
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+ [1m[35mLtiProvider::Launch Load (0.1ms)[0m SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1440099959", "oauth_nonce"=>"uwyU9DRiF7ndpctwTb6S48WUKQ5RQUCY0TIUSubz6Y", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"8oJlfVCs8AuR9F2H6S0KW3ecE8Q="}
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 12ms (Views: 12.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"dmRiIM8bRe4SEjnOLvRxdQcW48m9lAHnNOFuO77pIs", "oauth_signature"=>"Yxv9ANb00McFEfoShjysAD25Zao=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878788", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.9ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"BbFNb1KCri6wekShMrn8ppfuLJoAKLLf8uOArVsLw", "oauth_signature"=>"Mu4RWbwDSTvHH+i6KUCA51yQiOQ=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878788", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"sWQ0ER12zuOPrGdWGPPFd8GfaMDIBAXw3sdFod58", "oauth_signature"=>"y1FTZozUZ6XhKX3DHCTNYxH6CNE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878788", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"UnBnq2zOQI70ZvfTzU3lFu2JqcGlD3TW6oVoc5gQ", "oauth_signature"=>"5w4mQd3+9n0JLGhWi7Qo/Ol7F1w=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878788", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[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", "2017-08-04 20:33:08.501211"], ["updated_at", "2017-08-04 20:33:08.501211"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:23:08.517161"], ["updated_at", "2017-08-04 20:33:08.517634"], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:28:08.521985') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:33:08.528134"], ["updated_at", "2017-08-04 20:33:08.528134"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:28:08.531288') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:33:08.540695"], ["updated_at", "2017-08-04 20:33:08.540695"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:28:08.543751') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:33:08.549654"], ["updated_at", "2017-08-04 20:33:08.549654"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:28:08.552196') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.3ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[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", "2017-08-04 20:36:36.875739"], ["updated_at", "2017-08-04 20:36:36.875739"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:31:36.889611') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:36:36.898302"], ["updated_at", "2017-08-04 20:36:36.898302"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:31:36.900346') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:36:36.903780"], ["updated_at", "2017-08-04 20:36:36.903780"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:31:36.905443') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:36:36.908990"], ["updated_at", "2017-08-04 20:36:36.908990"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:26:36.910240"], ["updated_at", "2017-08-04 20:36:36.910543"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:31:36.912800') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"FadrgEtgKXtiqVzTlTzCihLBJpriGEk4S7f5pN6Wtk", "oauth_signature"=>"7AlHi2VOYvfmhlxiO1U/l966ueY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878996", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"vmYwFotQXMNQogTSrJZ882kgubNczwwO2tDncWnLkig", "oauth_signature"=>"Rb4jH1Sm+3D9rBHojUG/KUyG1zU=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878996", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"DLnR3CVcLO8Pk7QYmOpGxCR3keDhI0yBra0FWHYftkk", "oauth_signature"=>"csqvnq2JRqCrh1iNiqrI/+k8fYY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878996", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"s5icXJ4vDozjuU0w19F5yLnnTpCqKv2O4NrFni0DAA", "oauth_signature"=>"cKKr1XiPeBi4jIaSoiTpdgd54Jg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501878996", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"pmcZUeL3kQDPNwSN3mQLN4vi3WhDPyekFTxslVww", "oauth_signature"=>"gFKUOLcUWzntfTuoaVjPFOocVwI=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879168", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 15ms (Views: 4.4ms | ActiveRecord: 2.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"ssDt9LNa5b8dbypSdaz9dH315elyRZ2ui5g18g7u9qc", "oauth_signature"=>"mjZoaZNV5p0dMrTjAYB/zy8yjBk=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879168", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"EubXKb1Xv49B4EvmuxvFUE1SChSKy70NI8c0dceLk", "oauth_signature"=>"eTG9zinUpUv2jsJT5FPcwyBZrJg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879168", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"DrOS1WIRHwjn8rS8JGJYfliw0NakpO4GxZm4R6Luu18", "oauth_signature"=>"5DT0tygHFfEkxuiRxXXUmRqZV4A=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879168", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[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", "2017-08-04 20:39:28.981107"], ["updated_at", "2017-08-04 20:39:28.981107"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:34:28.994286') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:39:29.002588"], ["updated_at", "2017-08-04 20:39:29.002588"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:34:29.004758') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:39:29.009129"], ["updated_at", "2017-08-04 20:39:29.009129"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:34:29.011211') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:39:29.014998"], ["updated_at", "2017-08-04 20:39:29.014998"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:29:29.016506"], ["updated_at", "2017-08-04 20:39:29.016818"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:34:29.024284') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[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", "2017-08-04 20:40:31.388712"], ["updated_at", "2017-08-04 20:40:31.388712"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:31.400594') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
+ [1m[35m (1.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:40:31.412458"], ["updated_at", "2017-08-04 20:40:31.412458"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:31.414503') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:40:31.418448"], ["updated_at", "2017-08-04 20:40:31.418448"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:30:31.419566"], ["updated_at", "2017-08-04 20:40:31.419870"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:31.423099') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:40:31.429449"], ["updated_at", "2017-08-04 20:40:31.429449"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:31.431120') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"HdzEMwJzJ4xMRAXf1k5tFXVJ6iYTEt3izV6A2Dtyc", "oauth_signature"=>"WJpRbKHk5aDdSMcWhSJfhLztTFM=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879231", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"mw92O2bypVsm5XLahK8UQKzZddVrIajAh5v4FaTIR0M", "oauth_signature"=>"1TwAsvhO74IdkpeZuGFLeTfmc9g=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879231", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"K1oErw8n48snKePI9HO19UVqzTJGfdY9QWTgBebZaY", "oauth_signature"=>"vely3cwKUSHVjoVqYdGUvACLR5I=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879231", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"ZdeakJpNsa0NhfrOTj7vOzOIfzgo8tOpodawzlBW0", "oauth_signature"=>"0KJRKnUnxk8Nja7FHf1byiPp6Ec=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879231", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[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", "2017-08-04 20:40:47.349184"], ["updated_at", "2017-08-04 20:40:47.349184"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:47.360570') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (2.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:40:47.368388"], ["updated_at", "2017-08-04 20:40:47.368388"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:47.370846') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[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", "2017-08-04 20:40:47.378205"], ["updated_at", "2017-08-04 20:40:47.378205"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:47.381378') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:40:47.386345"], ["updated_at", "2017-08-04 20:40:47.386345"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:30:47.387921"], ["updated_at", "2017-08-04 20:40:47.388257"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:35:47.390562') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[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", "2017-08-04 20:49:49.885323"], ["updated_at", "2017-08-04 20:49:49.885323"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:39:49.898489"], ["updated_at", "2017-08-04 20:49:49.898809"], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:44:49.902702') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:49:49.912230"], ["updated_at", "2017-08-04 20:49:49.912230"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:44:49.914306') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:49:49.918363"], ["updated_at", "2017-08-04 20:49:49.918363"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:44:49.919963') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:49:49.927757"], ["updated_at", "2017-08-04 20:49:49.927757"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:44:49.929724') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"XJZnKgbEGrrtJGXizO5OdFRY1IIASjlKE2qZpoJQ", "oauth_signature"=>"bJoz5m3qBi3T+Bf0H3saDc+7FJA=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879789", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"Spi38YnvMdYlWXBYAcSLtJr692huoLGesut2CObl9uY", "oauth_signature"=>"ROxyuYKKmUtqjcFJS1QJGG8PA7c=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879789", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"77eZjA9pf95iALojVGkp5BMtY8VUuReOxGBJtQzpBn0", "oauth_signature"=>"79TCCBt26Vs3uZtX0UBrvA6ljn8=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879789", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"WrFKopomHNZzcLIAD1F4u53PM7bsKcTcd6y6Kiww8", "oauth_signature"=>"Qf4HatC2fLMSTXKXXsNn7Vt0mQ4=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879789", "oauth_version"=>"1.0"}
+Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.3ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[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", "2017-08-04 20:50:18.566184"], ["updated_at", "2017-08-04 20:50:18.566184"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:45:18.578112') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
+ [1m[35m (2.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:50:18.589623"], ["updated_at", "2017-08-04 20:50:18.589623"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:45:18.591909') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:50:18.598180"], ["updated_at", "2017-08-04 20:50:18.598180"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:40:18.599690"], ["updated_at", "2017-08-04 20:50:18.600170"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:45:18.602885') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:50:18.611135"], ["updated_at", "2017-08-04 20:50:18.611135"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:45:18.612978') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"S3WV2UBQpCm7CCMEpoFnVVI3HgWhHjIopbNnvhqA", "oauth_signature"=>"wVwjLf76/gtd+kznSkQBfmp8PSA=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879818", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"NCU0Caf9MmWhofJgv0fb7dAfRaS8ATmEbnuwizTq6m0", "oauth_signature"=>"/fo6zDZC85jdhYx5PJdxA1k0kv0=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879818", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"ZC2xqDwLuAEIN2iFnIalAVNbrZIi2eYUBZ9HB35D8", "oauth_signature"=>"S4bjeRVhc6a+uJTqC7XMoSfWnJ4=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879818", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"MQ2n6duS4gaJeud3JohdQrnwUc0rzib78yivLMEUI", "oauth_signature"=>"kuvG3ARYOaI/DzxmNYokslkFC8A=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501879818", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.3ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[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", "2017-08-04 20:53:42.908058"], ["updated_at", "2017-08-04 20:53:42.908058"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:43:42.918441"], ["updated_at", "2017-08-04 20:53:42.918739"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:48:42.921168') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:53:42.925890"], ["updated_at", "2017-08-04 20:53:42.925890"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:48:42.927551') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:53:42.936752"], ["updated_at", "2017-08-04 20:53:42.936752"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:48:42.938947') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:53:42.943378"], ["updated_at", "2017-08-04 20:53:42.943378"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:48:42.945059') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"IkVIZb0l72pLrMptDnYzdSPnVWyGH1JXqBvG46rjqVE", "oauth_signature"=>"i6bXXHBy586HUMVrG4wHd2wVmgE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880022", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.1ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"sfphXKHogkLELSqTeY8VDS5neQN5fYSoLfvcZyla9Mw", "oauth_signature"=>"LZhayMt13fYYumFYNNFyebFhVx8=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880022", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"mbNuvCD1HC9N0A89aGzbzHfUJjhHJcdfd6Iw8Er9o", "oauth_signature"=>"RGCXMu82KeOrT3Uy5nLNRqIp0Cs=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880022", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"smUw5XSHcy9by7AMfYT9SpQfI8QMWkvARZdYdLZDo", "oauth_signature"=>"qf40iDVpCkb+/SR0hkbkCd0B7Hw=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880022", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[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", "2017-08-04 20:54:18.757100"], ["updated_at", "2017-08-04 20:54:18.757100"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:49:18.771359') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:54:18.781201"], ["updated_at", "2017-08-04 20:54:18.781201"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:44:18.782303"], ["updated_at", "2017-08-04 20:54:18.782572"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:49:18.784494') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:54:18.787262"], ["updated_at", "2017-08-04 20:54:18.787262"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:49:18.788944') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:54:18.797774"], ["updated_at", "2017-08-04 20:54:18.797774"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:49:18.799912') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.3ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"YswRK4aJZs7pd4YFvxzESV1lfHGpL2Ivjw9vcgvh8", "oauth_signature"=>"HbsMZ6haHBGEGH2VRkeI2jVa6TQ=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880058", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"M87qBM3bNdMS7xhqfxJOwhvK6MuUtYlxo3rwcH48", "oauth_signature"=>"cep93ZxtKQ0HAWKehzg8MrsqMvg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880058", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"NtShAEyvVPxr4PnuuwJqHpZuaXKaurWGPpxi7Wit4", "oauth_signature"=>"H/zLYz7GC0jQlRvJmKiPmMsK12A=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880058", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"LwC1jRE7Yb5IUXMInWulaYHLU95cnWNpFPeBhpM39A", "oauth_signature"=>"birX30YO6JE4gRgmWJBH4umxlfU=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880119", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.3ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"deCggPhaI2PBXbCS4ZEEcceZXge3X5JITbZ76jqWk", "oauth_signature"=>"/Taq7aO/JT6GpoVC0h6Q9o6ecn8=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880124", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 22ms (Views: 4.9ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"5CUAFLymuKJPMoxrGgIFN3pcGpJ4DgOJhyhrdzI", "oauth_signature"=>"NTNvmFG0bQQlfcsN2UgKrKvtSk0=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880124", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[36mLtiProvider::Launch Load (0.3ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"OJp3zXM3Egf9lY937VFxxVAwRnyRC6pqTxCAjYUwBQ", "oauth_signature"=>"jQGj362wN5gKTywrFXLIEPYByJY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880124", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"5Te0zZitElIf1CdwpjRx5ReEul4Eux1laUMtq9TB7LY", "oauth_signature"=>"dK0iK4q7yb7i5tGUCMa9Q8sKtho=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880124", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[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", "2017-08-04 20:55:24.538081"], ["updated_at", "2017-08-04 20:55:24.538081"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:50:24.541633') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:55:24.552321"], ["updated_at", "2017-08-04 20:55:24.552321"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:50:24.555220') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:55:24.564891"], ["updated_at", "2017-08-04 20:55:24.564891"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:50:24.566685') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 20:55:24.569519"], ["updated_at", "2017-08-04 20:55:24.569519"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 20:45:24.570936"], ["updated_at", "2017-08-04 20:55:24.571247"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 20:50:24.574048') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"nYkKPdff1bBlHPu41g67Q10RTHKX8gu6LDc7mBPbs", "oauth_signature"=>"CnEwFHm7eoPxCxH+C/2AnLZagbQ=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880227", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 262354ms (Views: 6.8ms | ActiveRecord: 4.3ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"0fMEY4iMvb89RAcAGBKhJfFc3fAgGJkLjOcEI1ZwGU", "oauth_signature"=>"vjqfXaI0SneVsKKQ2WYjI48Z8cU=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880493", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 32850ms (Views: 5.5ms | ActiveRecord: 4.4ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"XamzRlhWPjlCxwuqbTF9ShIHDCQDn097gl6lqtJkAGs", "oauth_signature"=>"CUCKqQQWtxFz5HoQb7IjTtgurEI=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880529", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 10847ms (Views: 4.9ms | ActiveRecord: 1.6ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"YZMC4NlAFpoTYH8HyZJcOO3HqvhgHahEF0q39EHnx08", "oauth_signature"=>"ypFCBZplYZjFoLAyM/kTYWHfn/s=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880543", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 119959ms (Views: 4.8ms | ActiveRecord: 1.6ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"TC1n939oBUYe9Kq8OebczFXhV0WsQfVhgyaci1jHQY0", "oauth_signature"=>"23ae9Rszc5eVNKNCslGt6o/+ZnY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880667", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 120534ms (Views: 6.4ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"Rhn5ce0qww11RL7n9gj2JUOfUN5UKzdAoaT8W6P9INw", "oauth_signature"=>"suowrdcDZAHRgvpHvV7Gd6q1AJs=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501880792", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 289442ms (Views: 21.3ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"Sa2AoBQ8kPPJjf9Ymds7xP8C3q3OgcQQdhOKhggV0", "oauth_signature"=>"/kPLlolGfR5ZuRb+eFWaYEa0d2U=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881614", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 3454ms (Views: 3.8ms | ActiveRecord: 7.4ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"EOdghZ1MCBbkSwW2WtJjlSHDRV23TKLNuwX47IXcTk", "oauth_signature"=>"0N6LuE8Vf2xPp25k1kbyzu35Fgg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881667", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 86543ms (Views: 4.2ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"wuap6RB0YqB58kKwhBDVkfRSTjbxpTctCICkgY", "oauth_signature"=>"9khe5F08mQS77Z1mHQ92DL0sGQY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881769", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 15ms (Views: 3.9ms | ActiveRecord: 1.8ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"62XOpeT30fq765d37ZUljERnPyisjKYmDqXlrF0Hw", "oauth_signature"=>"fOZTmrelhFB/x/xKRQYz6zbZCqc=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881769", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"UrtixWs2PdDaYlvcNkS2fX1y61fD3o9m3PC8OAovrsc", "oauth_signature"=>"piBU5hW9K9Qfr9J8BZ3bMraaQOE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881769", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.6ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "UrtixWs2PdDaYlvcNkS2fX1y61fD3o9m3PC8OAovrsc"], ["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: UrtixWs2PdDaYlvcNkS2fX1y61fD3o9m3PC8OAovrsc\noauth_signature: piBU5hW9K9Qfr9J8BZ3bMraaQOE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881769'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:22:49.063669"], ["updated_at", "2017-08-04 21:22:49.063669"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=UrtixWs2PdDaYlvcNkS2fX1y61fD3o9m3PC8OAovrsc
+Completed 302 Found in 44ms (ActiveRecord: 2.7ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"dMshYT2IW5owWbWAJzKnUJhr02XO3unIA70cTT9gIs", "oauth_signature"=>"3wa0T0RobQcxQljhLzgNaSzF7IE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881769", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "dMshYT2IW5owWbWAJzKnUJhr02XO3unIA70cTT9gIs"], ["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: dMshYT2IW5owWbWAJzKnUJhr02XO3unIA70cTT9gIs\noauth_signature: 3wa0T0RobQcxQljhLzgNaSzF7IE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881769'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:22:49.120941"], ["updated_at", "2017-08-04 21:22:49.120941"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=dMshYT2IW5owWbWAJzKnUJhr02XO3unIA70cTT9gIs
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+ [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]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:22:49.146963"], ["updated_at", "2017-08-04 21:22:49.146963"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 21:12:49.148373"], ["updated_at", "2017-08-04 21:22:49.148678"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:17:49.151601') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:22:49.160796"], ["updated_at", "2017-08-04 21:22:49.160796"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:17:49.162832') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:22:49.165439"], ["updated_at", "2017-08-04 21:22:49.165439"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:17:49.167199') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 11ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:22:49.180737"], ["updated_at", "2017-08-04 21:22:49.180737"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:17:49.183187') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.4ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 14ms (Views: 14.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[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", "2017-08-04 21:25:04.086069"], ["updated_at", "2017-08-04 21:25:04.086069"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 21:15:04.098019"], ["updated_at", "2017-08-04 21:25:04.098359"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:04.101826') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:04.111643"], ["updated_at", "2017-08-04 21:25:04.111643"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:04.113560') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:04.122330"], ["updated_at", "2017-08-04 21:25:04.122330"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:04.124117') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:04.127354"], ["updated_at", "2017-08-04 21:25:04.127354"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:04.129278') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"JOromyTuIb6Yjs1km483JXfC54p3ikYcwJTXqQf9Q", "oauth_signature"=>"+X/UYnU9WrSmrfP6iROWczTwwOg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881904", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"B24YEGnMEk4wKRz7ztoJ0QVh8vAEHbnZW4zLOdHU", "oauth_signature"=>"8geV7eEjUC/OmrKQKbgu/4b+s5g=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881904", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "B24YEGnMEk4wKRz7ztoJ0QVh8vAEHbnZW4zLOdHU"], ["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: B24YEGnMEk4wKRz7ztoJ0QVh8vAEHbnZW4zLOdHU\noauth_signature: 8geV7eEjUC/OmrKQKbgu/4b+s5g=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881904'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:25:04.174259"], ["updated_at", "2017-08-04 21:25:04.174259"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=B24YEGnMEk4wKRz7ztoJ0QVh8vAEHbnZW4zLOdHU
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"LIzMqgZNzuIvu4JQ6NWf5bvGTdwVBStphJ46lfXKA", "oauth_signature"=>"o2+CJ+bISEPqLwtXh9j7giIAbJs=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881904", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "LIzMqgZNzuIvu4JQ6NWf5bvGTdwVBStphJ46lfXKA"], ["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: LIzMqgZNzuIvu4JQ6NWf5bvGTdwVBStphJ46lfXKA\noauth_signature: o2+CJ+bISEPqLwtXh9j7giIAbJs=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881904'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:25:04.183786"], ["updated_at", "2017-08-04 21:25:04.183786"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=LIzMqgZNzuIvu4JQ6NWf5bvGTdwVBStphJ46lfXKA
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"ypWvf0OncSNXQ5YQIszfIqGP5BKqgmJMfu0ALuglIY", "oauth_signature"=>"kVM+w8Wuol9di/d7C7InU/JsIQw=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881904", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[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", "2017-08-04 21:25:18.376174"], ["updated_at", "2017-08-04 21:25:18.376174"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 21:15:18.386652"], ["updated_at", "2017-08-04 21:25:18.387042"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.3ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:18.389801') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:18.406965"], ["updated_at", "2017-08-04 21:25:18.406965"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:18.409181') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:18.412395"], ["updated_at", "2017-08-04 21:25:18.412395"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.2ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:18.416561') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:25:18.424493"], ["updated_at", "2017-08-04 21:25:18.424493"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:20:18.426350') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"v18sVR0F9XrsVSWWXr9yZIFWHSJI3HSp7ig6GWHF4i8", "oauth_signature"=>"olIqW15wk/sOHUpnAjoRnZfHqiQ=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881918", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"TamgABRyVkkWWWoMO4olIvrQN5VBQ1F8ExsIMaoA", "oauth_signature"=>"TQmX4HNE2O2Iahx9sodYQX3K+fM=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881918", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "TamgABRyVkkWWWoMO4olIvrQN5VBQ1F8ExsIMaoA"], ["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: TamgABRyVkkWWWoMO4olIvrQN5VBQ1F8ExsIMaoA\noauth_signature: TQmX4HNE2O2Iahx9sodYQX3K+fM=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881918'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:25:18.453790"], ["updated_at", "2017-08-04 21:25:18.453790"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=TamgABRyVkkWWWoMO4olIvrQN5VBQ1F8ExsIMaoA
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"CjUMV6rZsPnK7CWkopjspvCe5yzmbb4ZorFMlcnIVZY", "oauth_signature"=>"G27pXaq9BEQoX/NzbcRh6H0+uFc=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881918", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "CjUMV6rZsPnK7CWkopjspvCe5yzmbb4ZorFMlcnIVZY"], ["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: CjUMV6rZsPnK7CWkopjspvCe5yzmbb4ZorFMlcnIVZY\noauth_signature: G27pXaq9BEQoX/NzbcRh6H0+uFc=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881918'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:25:18.463296"], ["updated_at", "2017-08-04 21:25:18.463296"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=CjUMV6rZsPnK7CWkopjspvCe5yzmbb4ZorFMlcnIVZY
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"elNN4TIdAYTvnDJdKffEI1yIy5ETg6XiiezWpzyzAjo", "oauth_signature"=>"JQP9BGI1x3CgHIRdtY4EBxNYFF4=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881918", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.1ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 13ms (Views: 5.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[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", "2017-08-04 21:26:17.118817"], ["updated_at", "2017-08-04 21:26:17.118817"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:21:17.129504') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:26:17.137309"], ["updated_at", "2017-08-04 21:26:17.137309"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 21:16:17.138606"], ["updated_at", "2017-08-04 21:26:17.138876"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:21:17.140916') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:26:17.143723"], ["updated_at", "2017-08-04 21:26:17.143723"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:21:17.145360') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 21:26:17.151588"], ["updated_at", "2017-08-04 21:26:17.151588"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:21:17.153278') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"wbbwrCqa9pHrqjPa6wllzgR9WU2U1gzhjJSAxs93Y", "oauth_signature"=>"2qUWlOmnEVGrRmfeLix7JXKWcZA=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881977", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"B1fJ5sg14Vd5Cnw1V6MWtxP8yoreiigATCfuss", "oauth_signature"=>"K8VqvvT2ETUo/dw0slQ8bN1mCBI=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881977", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "B1fJ5sg14Vd5Cnw1V6MWtxP8yoreiigATCfuss"], ["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: B1fJ5sg14Vd5Cnw1V6MWtxP8yoreiigATCfuss\noauth_signature: K8VqvvT2ETUo/dw0slQ8bN1mCBI=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881977'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:26:17.173849"], ["updated_at", "2017-08-04 21:26:17.173849"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=B1fJ5sg14Vd5Cnw1V6MWtxP8yoreiigATCfuss
+Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"UQP14UmL9tvC7UErAriJTx1NpgbFm6BFWstdRRSHI", "oauth_signature"=>"1/5s9TqkNQID5GTuUx5eTx4Yneg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881977", "oauth_version"=>"1.0"}
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "UQP14UmL9tvC7UErAriJTx1NpgbFm6BFWstdRRSHI"], ["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: UQP14UmL9tvC7UErAriJTx1NpgbFm6BFWstdRRSHI\noauth_signature: 1/5s9TqkNQID5GTuUx5eTx4Yneg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501881977'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 21:26:17.181389"], ["updated_at", "2017-08-04 21:26:17.181389"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=UQP14UmL9tvC7UErAriJTx1NpgbFm6BFWstdRRSHI
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"YSevlwoVjtS9i3E1ggIQhFgi4O62kLAhFb6XU9E8c", "oauth_signature"=>"UlgXgi7pI9OrP7xBQkIfxGVyPFg=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501881977", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
+Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#configure as XML
+Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[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", "2017-08-04 22:03:49.759520"], ["updated_at", "2017-08-04 22:03:49.759520"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"invalid"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:58:49.774782') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "invalid"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 22:03:49.783163"], ["updated_at", "2017-08-04 22:03:49.783163"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ?[0m [["created_at", "2017-08-04 21:53:49.785584"], ["updated_at", "2017-08-04 22:03:49.785898"], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:58:49.787948') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 22:03:49.790587"], ["updated_at", "2017-08-04 22:03:49.790587"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:58:49.792317') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "lti_provider_launches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (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", "2017-08-04 22:03:49.799957"], ["updated_at", "2017-08-04 22:03:49.799957"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Processing by LtiProvider::LtiController#consume_launch as HTML
+ Parameters: {"nonce"=>"abcd"}
+ [1m[36mLtiProvider::Launch Load (0.1ms)[0m [1m[34mSELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2017-08-04 21:58:49.801699') AND "lti_provider_launches"."nonce" = ? LIMIT ?[0m [["nonce", "abcd"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m [1m[31mDELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/
+Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#cookie_test as HTML
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"USLAZxsgdmhurfEoEVV5snZ500OwJ4hDK83f0UoTzQ", "oauth_signature"=>"CE6MefXaF/Oxtq+cfGSSprEDs5M=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501884229", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"Tbj0DUniADH5ymQKzUKLedGRjtW55PxX8y9G1fOo", "oauth_signature"=>"yOxWItHFaFKdME8pbGpIOv3X4L8=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501884229", "oauth_version"=>"1.0"}
+ Rendering text template
+ Rendered text template (0.0ms)
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
+Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"9O9EEe8GHgtglIGsvPogwXKiohL39DbFePmIKYht048", "oauth_signature"=>"FvFLfCwo/Nq2sR9L0fAZ+C7VM80=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501884229", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "9O9EEe8GHgtglIGsvPogwXKiohL39DbFePmIKYht048"], ["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: 9O9EEe8GHgtglIGsvPogwXKiohL39DbFePmIKYht048\noauth_signature: FvFLfCwo/Nq2sR9L0fAZ+C7VM80=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501884229'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 22:03:49.847874"], ["updated_at", "2017-08-04 22:03:49.847874"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=9O9EEe8GHgtglIGsvPogwXKiohL39DbFePmIKYht048
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+Processing by LtiProvider::LtiController#launch as HTML
+ 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"=>"LpUmHCQx946FdLBUX53PlByPXC4EJUEQRGudhBcb44", "oauth_signature"=>"iSk7B/1Zi2fJzzSerIxzLcd/U4M=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1501884229", "oauth_version"=>"1.0"}
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_url", "http://test.canvas"], ["nonce", "LpUmHCQx946FdLBUX53PlByPXC4EJUEQRGudhBcb44"], ["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: LpUmHCQx946FdLBUX53PlByPXC4EJUEQRGudhBcb44\noauth_signature: iSk7B/1Zi2fJzzSerIxzLcd/U4M=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1501884229'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2017-08-04 22:03:49.865221"], ["updated_at", "2017-08-04 22:03:49.865221"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/cookie_test?nonce=LpUmHCQx946FdLBUX53PlByPXC4EJUEQRGudhBcb44
+Completed 302 Found in 10ms (ActiveRecord: 0.4ms)
+ [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]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m