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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (48.7ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.7ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.9ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.6ms) 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  (0.3ms) begin transaction 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 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.0ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.6ms)  (1.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.8ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y Completed 302 Found in 7ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.7ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (98.4ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw Completed 302 Found in 180ms (ActiveRecord: 131.4ms)  (0.8ms) rollback transaction  (0.1ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk Completed 302 Found in 7ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.8ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 31ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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  (0.1ms) rollback transaction  (0.0ms) begin transaction 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  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 66ms (Views: 65.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction 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  (0.0ms) rollback transaction  (0.0ms) begin transaction 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  (0.0ms) rollback transaction  (0.0ms) begin transaction 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  (0.0ms) rollback transaction  (0.0ms) begin transaction 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) 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  (0.1ms) select sqlite_version(*)  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateLtiProviderLaunches (20130319050206)  (0.0ms) begin transaction  (0.3ms) 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)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130319050206')  (1.4ms) commit transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  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  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (80.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Rendered text template (0.0ms) Completed 200 OK in 42ms (Views: 32.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 29ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.4ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.5ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.4ms) begin transaction  (0.1ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (76.4ms) 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", "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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w Completed 302 Found in 93ms (ActiveRecord: 78.1ms)  (0.5ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 29ms (ActiveRecord: 0.6ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.2ms) SELECT "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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 33ms (ActiveRecord: 0.6ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY Completed 302 Found in 8ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (1.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.5ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (5.3ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (96.6ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 39ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.1ms)  (144.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (9.5ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (24.1ms) rollback transaction  (0.1ms) 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI Completed 302 Found in 8ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.5ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (3.9ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk Completed 302 Found in 19ms (ActiveRecord: 5.5ms)  (1.2ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8 Completed 302 Found in 8ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (4.2ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA Completed 302 Found in 12ms (ActiveRecord: 4.3ms)  (1.3ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc Completed 302 Found in 6ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.7ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.2ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 16ms  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 32ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.2ms) SELECT "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 Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.2ms)  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU Completed 302 Found in 8ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (3.9ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k Completed 302 Found in 10ms (ActiveRecord: 4.0ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (1.5ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 104184ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (4.7ms) 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", "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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM Completed 302 Found in 15ms (ActiveRecord: 4.8ms)  (1.4ms) rollback transaction  (0.1ms) 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA Completed 302 Found in 9ms (ActiveRecord: 0.6ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (1.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 500 Internal Server Error in 1ms  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.0ms) 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 24ms (Views: 24.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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 18ms (Views: 9.5ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (4.3ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o Completed 302 Found in 11ms (ActiveRecord: 4.4ms)  (0.9ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI Completed 302 Found in 7ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (24.6ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk Completed 302 Found in 39ms (ActiveRecord: 26.0ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc Completed 302 Found in 7ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (1.6ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.6ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (24.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.9ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (26.7ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (1.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg Completed 302 Found in 13ms (ActiveRecord: 1.5ms)  (0.6ms) rollback transaction  (0.1ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA Completed 302 Found in 7ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.8ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (5.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "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  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c Completed 302 Found in 6ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) 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  (0.3ms) begin transaction 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 17ms (Views: 8.4ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (4.1ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk Completed 302 Found in 11ms (ActiveRecord: 4.2ms)  (1.5ms) rollback transaction  (0.1ms) 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno Completed 302 Found in 9ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.5ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.2ms) SELECT "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 Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.9ms) rollback transaction  (0.4ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.7ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.4ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (56.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.6ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg Completed 302 Found in 6ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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 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  (0.2ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6.7ms (ActiveRecord: 1.0ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=GzlSZShK0BiNjwTxkRIvNsYO9GQspwpsK95gCNLPdQ Completed 302 Found in 25.2ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=V8klNkpBGo03TW2a5fFiAFpF473iWiNBIfYWVMloN4 Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.2ms) begin transaction 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 27.9ms (Views: 27.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6.5ms (ActiveRecord: 0.8ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 2.2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=N7IDeClFOI228qXWVblHeNsOpIdmwRLFWAXPBCh6E40 Completed 302 Found in 3.0ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=7HyCQqZJ1fuYsnSIlJLYSPNkAIDm3Ccl952CAne9Q Completed 302 Found in 2.9ms (ActiveRecord: 0.3ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.3ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.2ms) begin transaction 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 31.5ms (Views: 25.5ms | ActiveRecord: 1.4ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=I3EVwD0U5syXND98MFm2j8hV7KMoUXcEXt57WuTnrTE Completed 302 Found in 6.3ms (ActiveRecord: 3.2ms)  (1.0ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=37wL4RvhYPacJUjd8gTpQkQpscZZoHsD0xKdjIvSyE Completed 302 Found in 2.9ms (ActiveRecord: 0.3ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.4ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.9ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 2.8ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3.4ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 26.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.2ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.6ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=K8Blo7QyQG6RGZPqHAH0kcq3hu8dyE1aEGC6NuPIc Completed 302 Found in 35.2ms (ActiveRecord: 27.5ms)  (1.0ms) rollback transaction  (0.1ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=ErczkKq93r92xHONcCLSU7lHMshQFfIAMp2DoWZA Completed 302 Found in 3.9ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6.3ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2.2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.4ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.7ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.5ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (3.7ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=6UoM014A2oR3C7ZzkIps9ZFQ5G8VtAQac1Jnq011kE Completed 302 Found in 13.3ms (ActiveRecord: 5.2ms)  (0.4ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=OBr9QU1bsvtPdNiHOluP1DNGkxB1EM2TCyCfz9AkbR4 Completed 302 Found in 3.9ms (ActiveRecord: 0.6ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5.9ms (ActiveRecord: 0.9ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.5ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Rendered text template (0.0ms) Completed 200 OK in 9.3ms (Views: 6.2ms | ActiveRecord: 0.1ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5.0ms (ActiveRecord: 0.9ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.8ms (ActiveRecord: 0.3ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1.4ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.6ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=oJiPlMllYp6mXe18emUAAyq8HdsiBWubAGQiLAd2U Completed 302 Found in 2.8ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=1JAdrzo22oKfsIOgwP6msfaUNnGnbzA4w0HRKvIFw Completed 302 Found in 5.1ms (ActiveRecord: 0.7ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.4ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=YV2r7GEuL9sNXig2mbWgttRuZILmtI6R7AQtUoA Completed 302 Found in 7.0ms (ActiveRecord: 3.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=pXYXTd2jvVoNPnL1AAqo5BEzTqc6dGrpRAVKp9ylIw Completed 302 Found in 5.3ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1.9ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.7ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.7ms) UPDATE "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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 3.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3.1ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"   (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.4ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.4ms) 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  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.9ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.6ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1.3ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 6.2ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 3.8ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 4.9ms (Views: 1.4ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.7ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4.2ms (ActiveRecord: 0.4ms)  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.4ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=4YK09uiM04ODfLmslxf7wvSPoRoG5HaOsY0rZnIzN4 Completed 302 Found in 4.4ms (ActiveRecord: 0.5ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=q568AvlvL7t0dfPZLnIUBmNsbQ4MYhG8ddkn8Kczwc Completed 302 Found in 3.2ms (ActiveRecord: 0.4ms)  (0.5ms) 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  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.8ms) 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  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4.7ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 1.6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=q71e3BZz9MJ10YvnkkQr6dosOZ5uJ47jHLoGuYhV4I Completed 302 Found in 2.8ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=j8PaXgowMAGAC9M0ARTfYEbC5EYxEuEHP2saeeGyIG8 Completed 302 Found in 3.8ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 0.5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) 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 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 8ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#launch as HTML 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (26.2ms) 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: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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=sivpkcwIZHEWPeisdhmTMh1aKyltVg5HK9Pc5cRazk Completed 302 Found in 30ms (ActiveRecord: 26.3ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=89viYH9ztPf8BQF4y9uaKBO2yifhaR1LQ3v5vZqZvU Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction 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 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (25.1ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=vzRyuX1PIEHHOMsBuu6Q92NNMv0M0eBKd5O3XZe7w Completed 302 Found in 29ms (ActiveRecord: 25.2ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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: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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=AB9ouncShFB7D8YnFSZW8OGcRqWxE6qCBb56VdChc8 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ?, "provider_params" = ? WHERE "lti_provider_launches"."id" = 1 [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.2ms) SELECT "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  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.5ms) 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  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=m5smpJNh8fA6HJTVSuGM8sOkUgeaCN6AxkSyJur0oiE Completed 302 Found in 15ms (ActiveRecord: 1.9ms)  (0.4ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=m5yidBHiBBN747hU4ATg0TzKtQc85sjuhk8dtY3oqC4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) 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)  (0.3ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 36ms (Views: 36.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.2ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 34ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=5YfCfBxxOY0KQUYZuZobArjUzxSf20z4eAZwoD8QB8 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=MZk5scWUWPPnyax5DdvHxAEz88tnvxgmVFZK60zOziE Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.5ms) 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  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 37ms (Views: 37.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 30ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=D2bsTX4WLWncEwPH1TA2AEgDuSl1rdEjvcebQcftVI Completed 302 Found in 4ms (ActiveRecord: 0.3ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=ZGPvV4gwXerMzzlENVRfU6RmPM1mrt45rb99TBaE Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction 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  (0.4ms) begin transaction Processing by LtiProvider::LtiController#configure as XML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"invalid"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 37ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "lti_provider_launches" SET "created_at" = ?, "provider_params" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = 1 [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by LtiProvider::LtiController#consume_launch as HTML Parameters: {"nonce"=>"abcd"} LtiProvider::Launch Load (0.1ms) SELECT "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 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by LtiProvider::LtiController#cookie_test as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=BhJqsEX8tlf2Xglq6wubYqqEb1lTe8DLcdauwFZLjI Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) 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="}  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/cookie_test?nonce=pqFhiL3kYP00C1MBdvWbj5JWMrt7jtzkVPYGGF9WwyY Completed 302 Found in 3ms (ActiveRecord: 0.3ms) LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction