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