lti_provider_engine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +145 -0
  3. data/Rakefile +28 -0
  4. data/app/controllers/lti_provider/application_controller.rb +5 -0
  5. data/app/controllers/lti_provider/lti_controller.rb +61 -0
  6. data/app/models/lti_provider/launch.rb +105 -0
  7. data/app/views/layouts/lti_provider/application.html.erb +12 -0
  8. data/app/views/lti_provider/lti/cookie_test.html.erb +4 -0
  9. data/config/lti.yml.example +13 -0
  10. data/config/lti_xml.yml.example +22 -0
  11. data/config/routes.rb +6 -0
  12. data/db/migrate/20130319050003_create_lti_provider_launches.rb +11 -0
  13. data/lib/lti_provider.rb +20 -0
  14. data/lib/lti_provider/config.rb +1 -0
  15. data/lib/lti_provider/engine.rb +19 -0
  16. data/lib/lti_provider/lti_application.rb +56 -0
  17. data/lib/lti_provider/lti_config.rb +28 -0
  18. data/lib/lti_provider/lti_xml_config.rb +23 -0
  19. data/lib/lti_provider/version.rb +3 -0
  20. data/lib/lti_provider/xml_config.rb +1 -0
  21. data/lib/tasks/lti_provider_tasks.rake +4 -0
  22. data/spec/controllers/lti_provider/lti_controller_spec.rb +141 -0
  23. data/spec/dummy/Rakefile +7 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  25. data/spec/dummy/app/controllers/welcome_controller.rb +5 -0
  26. data/spec/dummy/config.ru +4 -0
  27. data/spec/dummy/config/application.rb +58 -0
  28. data/spec/dummy/config/boot.rb +10 -0
  29. data/spec/dummy/config/cucumber.yml +8 -0
  30. data/spec/dummy/config/database.yml +25 -0
  31. data/spec/dummy/config/environment.rb +5 -0
  32. data/spec/dummy/config/environments/development.rb +37 -0
  33. data/spec/dummy/config/environments/production.rb +67 -0
  34. data/spec/dummy/config/environments/test.rb +37 -0
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/dummy/config/initializers/inflections.rb +15 -0
  37. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  38. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  39. data/spec/dummy/config/initializers/session_store.rb +8 -0
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/spec/dummy/config/locales/en.yml +5 -0
  42. data/spec/dummy/config/lti.yml +13 -0
  43. data/spec/dummy/config/lti_xml.yml +24 -0
  44. data/spec/dummy/config/routes.rb +4 -0
  45. data/spec/dummy/db/development.sqlite3 +0 -0
  46. data/spec/dummy/db/migrate/20130319050206_create_lti_provider_launches.lti_provider.rb +12 -0
  47. data/spec/dummy/db/schema.rb +24 -0
  48. data/spec/dummy/db/test.sqlite3 +0 -0
  49. data/spec/dummy/log/development.log +266 -0
  50. data/spec/dummy/log/test.log +3643 -0
  51. data/spec/dummy/public/404.html +26 -0
  52. data/spec/dummy/public/422.html +26 -0
  53. data/spec/dummy/public/500.html +25 -0
  54. data/spec/dummy/public/favicon.ico +0 -0
  55. data/spec/dummy/public/robots.txt +5 -0
  56. data/spec/dummy/script/rails +6 -0
  57. data/spec/models/lti_provider/launch_spec.rb +80 -0
  58. data/spec/spec_helper.rb +55 -0
  59. metadata +337 -0
@@ -0,0 +1,3643 @@
1
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2
+ Connecting to database specified by database.yml
3
+  (0.3ms) begin transaction
4
+ Processing by LtiProvider::LtiController#cookie_test as HTML
5
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
6
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
7
+  (0.1ms) rollback transaction
8
+  (0.0ms) begin transaction
9
+ Processing by LtiProvider::LtiController#cookie_test as HTML
10
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
11
+  (0.0ms) rollback transaction
12
+  (0.0ms) begin transaction
13
+ Processing by LtiProvider::LtiController#launch as HTML
14
+ 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="}
15
+ Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 4.8ms)
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+ Processing by LtiProvider::LtiController#launch as HTML
19
+ 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="}
20
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
21
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
22
+  (0.0ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+ Processing by LtiProvider::LtiController#launch as HTML
25
+ 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="}
26
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
27
+  (0.0ms) rollback transaction
28
+  (0.0ms) begin transaction
29
+ Processing by LtiProvider::LtiController#launch as HTML
30
+ 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="}
31
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
32
+  (0.0ms) rollback transaction
33
+  (0.1ms) begin transaction
34
+  (0.0ms) SAVEPOINT active_record_1
35
+ 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]]
36
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37
+ Processing by LtiProvider::LtiController#consume_launch as HTML
38
+ Parameters: {"nonce"=>"abcd"}
39
+ 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
40
+  (0.0ms) SAVEPOINT active_record_1
41
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
42
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43
+ Redirected to http://test.host/
44
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
45
+  (0.7ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+  (0.0ms) SAVEPOINT active_record_1
48
+ 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]]
49
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50
+ Processing by LtiProvider::LtiController#consume_launch as HTML
51
+ Parameters: {"nonce"=>"abcd"}
52
+ 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
53
+  (0.0ms) SAVEPOINT active_record_1
54
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
55
+  (0.0ms) RELEASE SAVEPOINT active_record_1
56
+ Redirected to http://test.host/
57
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
58
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches" 
59
+  (0.6ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+  (0.0ms) SAVEPOINT active_record_1
62
+ 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]]
63
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64
+  (0.0ms) SAVEPOINT active_record_1
65
+  (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" = '---
66
+ custom_canvas_course_id: 1
67
+ custom_canvas_user_id: 2
68
+ tool_consumer_instance_guid: 123abc
69
+ ' WHERE "lti_provider_launches"."id" = 1
70
+  (0.0ms) RELEASE SAVEPOINT active_record_1
71
+ Processing by LtiProvider::LtiController#consume_launch as HTML
72
+ Parameters: {"nonce"=>"abcd"}
73
+ 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
74
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
75
+  (0.7ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+  (0.0ms) SAVEPOINT active_record_1
78
+ 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]]
79
+  (0.0ms) RELEASE SAVEPOINT active_record_1
80
+ Processing by LtiProvider::LtiController#consume_launch as HTML
81
+ Parameters: {"nonce"=>"invalid"}
82
+ 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
83
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
84
+  (0.6ms) rollback transaction
85
+  (0.0ms) begin transaction
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+  (0.0ms) rollback transaction
89
+  (0.0ms) begin transaction
90
+  (0.0ms) rollback transaction
91
+  (0.0ms) begin transaction
92
+  (0.0ms) rollback transaction
93
+  (0.0ms) begin transaction
94
+  (0.0ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+  (0.0ms) rollback transaction
97
+  (0.0ms) begin transaction
98
+  (0.0ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+  (0.0ms) rollback transaction
101
+  (0.0ms) begin transaction
102
+  (0.0ms) rollback transaction
103
+  (0.0ms) begin transaction
104
+  (0.0ms) rollback transaction
105
+  (0.0ms) begin transaction
106
+  (0.1ms) rollback transaction
107
+  (0.0ms) begin transaction
108
+  (0.1ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+  (0.0ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+  (0.0ms) rollback transaction
113
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
114
+ Connecting to database specified by database.yml
115
+  (0.3ms) begin transaction
116
+  (0.1ms) rollback transaction
117
+  (0.1ms) begin transaction
118
+  (0.1ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+  (0.0ms) rollback transaction
121
+  (0.0ms) begin transaction
122
+  (0.0ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.0ms) SAVEPOINT active_record_1
125
+ 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]]
126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
127
+  (0.0ms) SAVEPOINT active_record_1
128
+  (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" = '---
129
+ custom_canvas_course_id: 1
130
+ custom_canvas_user_id: 2
131
+ tool_consumer_instance_guid: 123abc
132
+ ' WHERE "lti_provider_launches"."id" = 1
133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
134
+ Processing by LtiProvider::LtiController#consume_launch as HTML
135
+ Parameters: {"nonce"=>"abcd"}
136
+ 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
137
+ Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.1ms)
138
+  (1.2ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+  (0.0ms) SAVEPOINT active_record_1
141
+ 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]]
142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
143
+ Processing by LtiProvider::LtiController#consume_launch as HTML
144
+ Parameters: {"nonce"=>"invalid"}
145
+ 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
146
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
147
+  (0.5ms) rollback transaction
148
+  (0.0ms) begin transaction
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ 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]]
151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
152
+ Processing by LtiProvider::LtiController#consume_launch as HTML
153
+ Parameters: {"nonce"=>"abcd"}
154
+ 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
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
158
+ Redirected to http://test.host/
159
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
160
+  (0.7ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+  (0.0ms) SAVEPOINT active_record_1
163
+ 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]]
164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
165
+ Processing by LtiProvider::LtiController#consume_launch as HTML
166
+ Parameters: {"nonce"=>"abcd"}
167
+ 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
168
+  (0.0ms) SAVEPOINT active_record_1
169
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
171
+ Redirected to http://test.host/
172
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
173
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
174
+  (0.7ms) rollback transaction
175
+  (0.0ms) begin transaction
176
+  (0.0ms) rollback transaction
177
+  (0.0ms) begin transaction
178
+  (0.0ms) rollback transaction
179
+  (0.0ms) begin transaction
180
+  (0.0ms) rollback transaction
181
+  (0.0ms) begin transaction
182
+  (0.0ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+  (0.0ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+  (0.0ms) rollback transaction
189
+  (0.0ms) begin transaction
190
+  (0.0ms) rollback transaction
191
+  (0.0ms) begin transaction
192
+  (0.0ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+  (0.1ms) rollback transaction
195
+  (0.0ms) begin transaction
196
+  (0.0ms) rollback transaction
197
+  (0.1ms) begin transaction
198
+  (0.0ms) rollback transaction
199
+  (0.0ms) begin transaction
200
+  (0.0ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+  (0.0ms) rollback transaction
203
+  (0.1ms) begin transaction
204
+  (0.0ms) rollback transaction
205
+  (0.0ms) begin transaction
206
+  (0.0ms) rollback transaction
207
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
208
+ Connecting to database specified by database.yml
209
+  (0.3ms) begin transaction
210
+  (0.1ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+  (0.0ms) rollback transaction
215
+  (0.0ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+  (0.0ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+  (0.0ms) rollback transaction
223
+  (0.0ms) begin transaction
224
+  (0.0ms) rollback transaction
225
+  (0.0ms) begin transaction
226
+  (0.0ms) rollback transaction
227
+  (0.0ms) begin transaction
228
+  (0.0ms) rollback transaction
229
+  (0.0ms) begin transaction
230
+  (0.0ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+  (0.0ms) rollback transaction
233
+  (0.0ms) begin transaction
234
+  (0.0ms) rollback transaction
235
+  (0.0ms) begin transaction
236
+  (0.0ms) rollback transaction
237
+  (0.0ms) begin transaction
238
+  (0.1ms) rollback transaction
239
+  (0.0ms) begin transaction
240
+  (0.0ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+  (0.0ms) rollback transaction
243
+  (0.0ms) begin transaction
244
+  (0.0ms) rollback transaction
245
+  (0.0ms) begin transaction
246
+  (0.0ms) rollback transaction
247
+  (0.0ms) begin transaction
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ 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]]
252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+ Processing by LtiProvider::LtiController#consume_launch as HTML
254
+ Parameters: {"nonce"=>"abcd"}
255
+ 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
256
+  (0.0ms) SAVEPOINT active_record_1
257
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
259
+ Redirected to http://test.host/
260
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
261
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
262
+  (1.3ms) rollback transaction
263
+  (0.1ms) begin transaction
264
+  (0.0ms) SAVEPOINT active_record_1
265
+ 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]]
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+ Processing by LtiProvider::LtiController#consume_launch as HTML
268
+ Parameters: {"nonce"=>"abcd"}
269
+ 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
270
+  (0.0ms) SAVEPOINT active_record_1
271
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
273
+ Redirected to http://test.host/
274
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
275
+  (0.6ms) rollback transaction
276
+  (0.0ms) begin transaction
277
+  (0.0ms) SAVEPOINT active_record_1
278
+ 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]]
279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
280
+  (0.0ms) SAVEPOINT active_record_1
281
+  (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" = '---
282
+ custom_canvas_course_id: 1
283
+ custom_canvas_user_id: 2
284
+ tool_consumer_instance_guid: 123abc
285
+ ' WHERE "lti_provider_launches"."id" = 1
286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
287
+ Processing by LtiProvider::LtiController#consume_launch as HTML
288
+ Parameters: {"nonce"=>"abcd"}
289
+ 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
290
+ Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms)
291
+  (0.6ms) rollback transaction
292
+  (0.1ms) begin transaction
293
+  (0.0ms) SAVEPOINT active_record_1
294
+ 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]]
295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
296
+ Processing by LtiProvider::LtiController#consume_launch as HTML
297
+ Parameters: {"nonce"=>"invalid"}
298
+ 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
299
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
300
+  (0.6ms) rollback transaction
301
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
302
+ Connecting to database specified by database.yml
303
+  (0.3ms) begin transaction
304
+ Processing by LtiProvider::LtiController#cookie_test as HTML
305
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
306
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
307
+  (0.1ms) rollback transaction
308
+  (0.0ms) begin transaction
309
+ Processing by LtiProvider::LtiController#cookie_test as HTML
310
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
311
+  (0.0ms) rollback transaction
312
+  (0.0ms) begin transaction
313
+ Processing by LtiProvider::LtiController#launch as HTML
314
+ 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="}
315
+ Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.4ms)
316
+  (0.1ms) rollback transaction
317
+  (0.0ms) begin transaction
318
+ Processing by LtiProvider::LtiController#launch as HTML
319
+ 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="}
320
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
321
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
322
+  (0.0ms) rollback transaction
323
+  (0.0ms) begin transaction
324
+ Processing by LtiProvider::LtiController#launch as HTML
325
+ 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="}
326
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
327
+  (0.1ms) rollback transaction
328
+  (0.0ms) begin transaction
329
+ Processing by LtiProvider::LtiController#launch as HTML
330
+ 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="}
331
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
332
+  (0.1ms) rollback transaction
333
+  (0.1ms) begin transaction
334
+  (0.0ms) SAVEPOINT active_record_1
335
+ 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]]
336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
337
+ Processing by LtiProvider::LtiController#consume_launch as HTML
338
+ Parameters: {"nonce"=>"abcd"}
339
+ 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
340
+  (0.1ms) SAVEPOINT active_record_1
341
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
343
+ Redirected to http://test.host/
344
+ Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
345
+  (1.4ms) rollback transaction
346
+  (0.0ms) begin transaction
347
+  (0.0ms) SAVEPOINT active_record_1
348
+ 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]]
349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
350
+ Processing by LtiProvider::LtiController#consume_launch as HTML
351
+ Parameters: {"nonce"=>"abcd"}
352
+ 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
353
+  (0.0ms) SAVEPOINT active_record_1
354
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
356
+ Redirected to http://test.host/
357
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
358
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
359
+  (0.7ms) rollback transaction
360
+  (0.0ms) begin transaction
361
+  (0.0ms) SAVEPOINT active_record_1
362
+ 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]]
363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
364
+  (0.0ms) SAVEPOINT active_record_1
365
+  (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" = '---
366
+ custom_canvas_course_id: 1
367
+ custom_canvas_user_id: 2
368
+ tool_consumer_instance_guid: 123abc
369
+ ' WHERE "lti_provider_launches"."id" = 1
370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
371
+ Processing by LtiProvider::LtiController#consume_launch as HTML
372
+ Parameters: {"nonce"=>"abcd"}
373
+ 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
374
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
375
+  (0.9ms) rollback transaction
376
+  (0.0ms) begin transaction
377
+  (0.0ms) SAVEPOINT active_record_1
378
+ 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]]
379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
380
+ Processing by LtiProvider::LtiController#consume_launch as HTML
381
+ Parameters: {"nonce"=>"invalid"}
382
+ 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
383
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
384
+  (0.6ms) rollback transaction
385
+  (0.1ms) begin transaction
386
+  (0.0ms) rollback transaction
387
+  (0.1ms) begin transaction
388
+  (0.0ms) rollback transaction
389
+  (0.0ms) begin transaction
390
+  (0.0ms) rollback transaction
391
+  (0.0ms) begin transaction
392
+  (0.0ms) rollback transaction
393
+  (0.0ms) begin transaction
394
+  (0.0ms) rollback transaction
395
+  (0.0ms) begin transaction
396
+  (0.0ms) rollback transaction
397
+  (0.0ms) begin transaction
398
+  (0.0ms) rollback transaction
399
+  (0.0ms) begin transaction
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+  (0.0ms) rollback transaction
403
+  (0.0ms) begin transaction
404
+  (0.0ms) rollback transaction
405
+  (0.0ms) begin transaction
406
+  (0.0ms) rollback transaction
407
+  (0.0ms) begin transaction
408
+  (0.0ms) rollback transaction
409
+  (0.0ms) begin transaction
410
+  (0.0ms) rollback transaction
411
+  (0.0ms) begin transaction
412
+  (0.1ms) rollback transaction
413
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
414
+ Connecting to database specified by database.yml
415
+  (0.3ms) begin transaction
416
+ Processing by LtiProvider::LtiController#cookie_test as HTML
417
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
418
+ Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
419
+  (0.1ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ Processing by LtiProvider::LtiController#cookie_test as HTML
422
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
423
+  (0.0ms) rollback transaction
424
+  (0.0ms) begin transaction
425
+  (0.0ms) SAVEPOINT active_record_1
426
+ 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]]
427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
428
+ Processing by LtiProvider::LtiController#consume_launch as HTML
429
+ Parameters: {"nonce"=>"abcd"}
430
+ 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
431
+  (0.0ms) SAVEPOINT active_record_1
432
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
434
+ Redirected to http://test.host/
435
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
436
+  (0.6ms) rollback transaction
437
+  (0.0ms) begin transaction
438
+  (0.0ms) SAVEPOINT active_record_1
439
+ 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]]
440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
441
+ Processing by LtiProvider::LtiController#consume_launch as HTML
442
+ Parameters: {"nonce"=>"abcd"}
443
+ 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
444
+  (0.0ms) SAVEPOINT active_record_1
445
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
447
+ Redirected to http://test.host/
448
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
449
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"
450
+  (0.6ms) rollback transaction
451
+  (0.0ms) begin transaction
452
+  (0.0ms) SAVEPOINT active_record_1
453
+ 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]]
454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
455
+ Processing by LtiProvider::LtiController#consume_launch as HTML
456
+ Parameters: {"nonce"=>"invalid"}
457
+ 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
458
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
459
+  (0.7ms) rollback transaction
460
+  (0.0ms) begin transaction
461
+  (0.1ms) SAVEPOINT active_record_1
462
+ 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]]
463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
464
+  (0.0ms) SAVEPOINT active_record_1
465
+  (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" = '---
466
+ custom_canvas_course_id: 1
467
+ custom_canvas_user_id: 2
468
+ tool_consumer_instance_guid: 123abc
469
+ ' WHERE "lti_provider_launches"."id" = 1
470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
471
+ Processing by LtiProvider::LtiController#consume_launch as HTML
472
+ Parameters: {"nonce"=>"abcd"}
473
+ 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
474
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
475
+  (0.8ms) rollback transaction
476
+  (0.0ms) begin transaction
477
+ Processing by LtiProvider::LtiController#launch as HTML
478
+ 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="}
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ 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]]
481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
482
+ Redirected to http://test.host/cookie_test?nonce=o7GWsRyFFzenZ2PC8bJWzqGr3Zth7u14YfxmYmtSteo
483
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
484
+  (0.8ms) rollback transaction
485
+  (0.0ms) begin transaction
486
+ Processing by LtiProvider::LtiController#launch as HTML
487
+ 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="}
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ 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]]
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+ Redirected to http://test.host/cookie_test?nonce=aeXKvHdBtLI7hTw2QaDF9oM1YaXfyJQ59gVzds9Y
492
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
493
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
494
+  (0.7ms) rollback transaction
495
+  (0.0ms) begin transaction
496
+ Processing by LtiProvider::LtiController#launch as HTML
497
+ 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="}
498
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
499
+  (0.0ms) rollback transaction
500
+  (0.0ms) begin transaction
501
+ Processing by LtiProvider::LtiController#launch as HTML
502
+ 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="}
503
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
504
+  (0.0ms) rollback transaction
505
+  (0.0ms) begin transaction
506
+  (0.1ms) rollback transaction
507
+  (0.0ms) begin transaction
508
+  (0.0ms) rollback transaction
509
+  (0.0ms) begin transaction
510
+  (0.0ms) rollback transaction
511
+  (0.0ms) begin transaction
512
+  (0.0ms) rollback transaction
513
+  (0.0ms) begin transaction
514
+  (0.0ms) rollback transaction
515
+  (0.0ms) begin transaction
516
+  (0.0ms) rollback transaction
517
+  (0.0ms) begin transaction
518
+  (0.0ms) rollback transaction
519
+  (0.0ms) begin transaction
520
+  (0.0ms) rollback transaction
521
+  (0.0ms) begin transaction
522
+  (0.0ms) rollback transaction
523
+  (0.0ms) begin transaction
524
+  (0.1ms) rollback transaction
525
+  (0.0ms) begin transaction
526
+  (0.0ms) rollback transaction
527
+  (0.0ms) begin transaction
528
+  (0.0ms) rollback transaction
529
+  (0.0ms) begin transaction
530
+  (0.0ms) rollback transaction
531
+  (0.0ms) begin transaction
532
+  (0.0ms) rollback transaction
533
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
534
+ Connecting to database specified by database.yml
535
+  (0.3ms) begin transaction
536
+ Processing by LtiProvider::LtiController#cookie_test as HTML
537
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.4ms)
538
+ Completed 200 OK in 59ms (Views: 58.4ms | ActiveRecord: 0.0ms)
539
+  (0.1ms) rollback transaction
540
+  (0.1ms) begin transaction
541
+ Processing by LtiProvider::LtiController#cookie_test as HTML
542
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
543
+  (0.1ms) rollback transaction
544
+  (0.0ms) begin transaction
545
+ Processing by LtiProvider::LtiController#launch as HTML
546
+ 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="}
547
+  (0.0ms) SAVEPOINT active_record_1
548
+ 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]]
549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
550
+ Redirected to http://test.host/cookie_test?nonce=4kIZ4L8j99cbRqyPPmH23BJaigG2nI5fN1M0ffJAjw
551
+ Completed 302 Found in 180ms (ActiveRecord: 131.4ms)
552
+  (0.8ms) rollback transaction
553
+  (0.1ms) begin transaction
554
+ Processing by LtiProvider::LtiController#launch as HTML
555
+ 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="}
556
+  (0.0ms) SAVEPOINT active_record_1
557
+ 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]]
558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
559
+ Redirected to http://test.host/cookie_test?nonce=nfPiQ20qVdnae4TFmNFcQfvRkRG6BYiJTF6eEufxk
560
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
561
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
562
+  (0.8ms) rollback transaction
563
+  (0.0ms) begin transaction
564
+ Processing by LtiProvider::LtiController#launch as HTML
565
+ 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="}
566
+ Completed 200 OK in 52ms (Views: 50.9ms | ActiveRecord: 0.0ms)
567
+  (0.1ms) rollback transaction
568
+  (0.0ms) begin transaction
569
+ Processing by LtiProvider::LtiController#launch as HTML
570
+ 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="}
571
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
572
+  (0.0ms) rollback transaction
573
+  (0.0ms) begin transaction
574
+  (0.0ms) SAVEPOINT active_record_1
575
+ 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]]
576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
577
+ Processing by LtiProvider::LtiController#consume_launch as HTML
578
+ Parameters: {"nonce"=>"abcd"}
579
+ 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
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
583
+ Redirected to http://test.host/
584
+ Completed 302 Found in 31ms (ActiveRecord: 0.5ms)
585
+  (0.6ms) rollback transaction
586
+  (0.0ms) begin transaction
587
+  (0.0ms) SAVEPOINT active_record_1
588
+ 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]]
589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
590
+ Processing by LtiProvider::LtiController#consume_launch as HTML
591
+ Parameters: {"nonce"=>"abcd"}
592
+ 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
593
+  (0.0ms) SAVEPOINT active_record_1
594
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ Redirected to http://test.host/
597
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
598
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
599
+  (0.8ms) rollback transaction
600
+  (0.0ms) begin transaction
601
+  (0.0ms) SAVEPOINT active_record_1
602
+ 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]]
603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
604
+  (0.0ms) SAVEPOINT active_record_1
605
+  (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" = '---
606
+ custom_canvas_course_id: 1
607
+ custom_canvas_user_id: 2
608
+ tool_consumer_instance_guid: 123abc
609
+ ' WHERE "lti_provider_launches"."id" = 1
610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+ Processing by LtiProvider::LtiController#consume_launch as HTML
612
+ Parameters: {"nonce"=>"abcd"}
613
+ 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
614
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
615
+  (0.7ms) rollback transaction
616
+  (0.0ms) begin transaction
617
+  (0.0ms) SAVEPOINT active_record_1
618
+ 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]]
619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
620
+ Processing by LtiProvider::LtiController#consume_launch as HTML
621
+ Parameters: {"nonce"=>"invalid"}
622
+ 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
623
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
624
+  (0.6ms) rollback transaction
625
+  (0.0ms) begin transaction
626
+  (0.0ms) rollback transaction
627
+  (0.0ms) begin transaction
628
+  (0.0ms) rollback transaction
629
+  (0.0ms) begin transaction
630
+  (0.0ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+  (0.0ms) rollback transaction
633
+  (0.0ms) begin transaction
634
+  (0.0ms) rollback transaction
635
+  (0.0ms) begin transaction
636
+  (0.0ms) rollback transaction
637
+  (0.0ms) begin transaction
638
+  (0.0ms) rollback transaction
639
+  (0.0ms) begin transaction
640
+  (0.0ms) rollback transaction
641
+  (0.0ms) begin transaction
642
+  (0.0ms) rollback transaction
643
+  (0.0ms) begin transaction
644
+  (0.1ms) rollback transaction
645
+  (0.0ms) begin transaction
646
+  (0.0ms) rollback transaction
647
+  (0.0ms) begin transaction
648
+  (0.0ms) rollback transaction
649
+  (0.0ms) begin transaction
650
+  (0.0ms) rollback transaction
651
+  (0.0ms) begin transaction
652
+  (0.0ms) rollback transaction
653
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
654
+ Connecting to database specified by database.yml
655
+  (0.3ms) begin transaction
656
+ Processing by LtiProvider::LtiController#launch as HTML
657
+ 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="}
658
+ Completed 500 Internal Server Error in 14ms
659
+  (0.1ms) rollback transaction
660
+  (0.0ms) begin transaction
661
+ Processing by LtiProvider::LtiController#launch as HTML
662
+ 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="}
663
+ Completed 500 Internal Server Error in 0ms
664
+  (0.0ms) rollback transaction
665
+  (0.0ms) begin transaction
666
+ Processing by LtiProvider::LtiController#launch as HTML
667
+ 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="}
668
+ Completed 500 Internal Server Error in 0ms
669
+  (0.0ms) rollback transaction
670
+  (0.0ms) begin transaction
671
+ Processing by LtiProvider::LtiController#launch as HTML
672
+ 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="}
673
+ Completed 500 Internal Server Error in 0ms
674
+  (0.0ms) rollback transaction
675
+  (0.0ms) begin transaction
676
+ Processing by LtiProvider::LtiController#cookie_test as HTML
677
+ Completed 200 OK in 66ms (Views: 65.7ms | ActiveRecord: 0.0ms)
678
+  (0.1ms) rollback transaction
679
+  (0.0ms) begin transaction
680
+ Processing by LtiProvider::LtiController#cookie_test as HTML
681
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
682
+  (0.0ms) rollback transaction
683
+  (0.1ms) begin transaction
684
+  (0.0ms) rollback transaction
685
+  (0.0ms) begin transaction
686
+  (0.0ms) rollback transaction
687
+  (0.0ms) begin transaction
688
+  (0.0ms) rollback transaction
689
+  (0.0ms) begin transaction
690
+  (0.0ms) rollback transaction
691
+  (0.0ms) begin transaction
692
+  (0.0ms) rollback transaction
693
+  (0.0ms) begin transaction
694
+  (0.0ms) rollback transaction
695
+  (0.0ms) begin transaction
696
+  (0.0ms) rollback transaction
697
+  (0.0ms) begin transaction
698
+  (0.0ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+  (0.0ms) rollback transaction
701
+  (0.0ms) begin transaction
702
+  (0.0ms) rollback transaction
703
+  (0.0ms) begin transaction
704
+  (0.0ms) rollback transaction
705
+  (0.0ms) begin transaction
706
+  (0.0ms) rollback transaction
707
+  (0.0ms) begin transaction
708
+  (0.0ms) rollback transaction
709
+  (0.0ms) begin transaction
710
+  (0.1ms) rollback transaction
711
+  (0.0ms) begin transaction
712
+  (0.1ms) rollback transaction
713
+  (0.0ms) begin transaction
714
+  (0.1ms) rollback transaction
715
+  (0.0ms) begin transaction
716
+  (0.0ms) rollback transaction
717
+  (0.0ms) begin transaction
718
+  (0.0ms) rollback transaction
719
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
720
+ Connecting to database specified by database.yml
721
+  (0.3ms) begin transaction
722
+  (0.0ms) rollback transaction
723
+  (0.0ms) begin transaction
724
+  (0.0ms) rollback transaction
725
+  (0.0ms) begin transaction
726
+  (0.0ms) rollback transaction
727
+  (0.0ms) begin transaction
728
+  (0.0ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+  (0.0ms) rollback transaction
731
+  (0.0ms) begin transaction
732
+  (0.0ms) rollback transaction
733
+  (0.1ms) begin transaction
734
+  (0.0ms) rollback transaction
735
+  (0.0ms) begin transaction
736
+  (0.0ms) rollback transaction
737
+  (0.0ms) begin transaction
738
+  (0.0ms) rollback transaction
739
+  (0.0ms) begin transaction
740
+  (0.0ms) rollback transaction
741
+  (0.0ms) begin transaction
742
+  (0.0ms) rollback transaction
743
+  (0.0ms) begin transaction
744
+  (0.0ms) rollback transaction
745
+  (0.0ms) begin transaction
746
+  (0.0ms) rollback transaction
747
+  (0.0ms) begin transaction
748
+  (0.0ms) rollback transaction
749
+  (0.0ms) begin transaction
750
+ Processing by LtiProvider::LtiController#launch as HTML
751
+ 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="}
752
+ Completed 500 Internal Server Error in 1ms
753
+  (0.0ms) rollback transaction
754
+  (0.0ms) begin transaction
755
+ Processing by LtiProvider::LtiController#launch as HTML
756
+ 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="}
757
+ Completed 500 Internal Server Error in 0ms
758
+  (0.0ms) rollback transaction
759
+  (0.0ms) begin transaction
760
+ Processing by LtiProvider::LtiController#launch as HTML
761
+ 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="}
762
+ Completed 500 Internal Server Error in 0ms
763
+  (0.0ms) rollback transaction
764
+  (0.0ms) begin transaction
765
+ Processing by LtiProvider::LtiController#launch as HTML
766
+ 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="}
767
+ Completed 500 Internal Server Error in 0ms
768
+  (0.0ms) rollback transaction
769
+  (0.0ms) begin transaction
770
+  (0.0ms) rollback transaction
771
+  (0.0ms) begin transaction
772
+  (0.0ms) rollback transaction
773
+  (0.0ms) begin transaction
774
+  (0.0ms) rollback transaction
775
+  (0.0ms) begin transaction
776
+  (0.0ms) rollback transaction
777
+  (0.0ms) begin transaction
778
+ Processing by LtiProvider::LtiController#cookie_test as HTML
779
+ Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms)
780
+  (0.1ms) rollback transaction
781
+  (0.0ms) begin transaction
782
+ Processing by LtiProvider::LtiController#cookie_test as HTML
783
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
784
+  (0.0ms) rollback transaction
785
+ Connecting to database specified by database.yml
786
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
787
+  (0.1ms) select sqlite_version(*)
788
+  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
789
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
790
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
791
+ Migrating to CreateLtiProviderLaunches (20130319050206)
792
+  (0.0ms) begin transaction
793
+  (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)
794
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130319050206')
795
+  (1.4ms) commit transaction
796
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
797
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
798
+ Connecting to database specified by database.yml
799
+  (0.3ms) begin transaction
800
+  (0.0ms) SAVEPOINT active_record_1
801
+ 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]]
802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
803
+ Processing by LtiProvider::LtiController#consume_launch as HTML
804
+ Parameters: {"nonce"=>"invalid"}
805
+ 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
806
+ Rendered text template (0.0ms)
807
+ Completed 200 OK in 42ms (Views: 32.4ms | ActiveRecord: 0.1ms)
808
+  (0.5ms) rollback transaction
809
+  (0.0ms) begin transaction
810
+  (0.0ms) SAVEPOINT active_record_1
811
+ 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]]
812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
813
+  (0.0ms) SAVEPOINT active_record_1
814
+  (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" = '---
815
+ custom_canvas_course_id: 1
816
+ custom_canvas_user_id: 2
817
+ tool_consumer_instance_guid: 123abc
818
+ ' WHERE "lti_provider_launches"."id" = 1
819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
820
+ Processing by LtiProvider::LtiController#consume_launch as HTML
821
+ Parameters: {"nonce"=>"abcd"}
822
+ 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
823
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
824
+  (0.6ms) rollback transaction
825
+  (0.1ms) begin transaction
826
+  (0.0ms) SAVEPOINT active_record_1
827
+ 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]]
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+ Processing by LtiProvider::LtiController#consume_launch as HTML
830
+ Parameters: {"nonce"=>"abcd"}
831
+ 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
832
+  (0.1ms) SAVEPOINT active_record_1
833
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
835
+ Redirected to http://test.host/
836
+ Completed 302 Found in 29ms (ActiveRecord: 0.5ms)
837
+  (0.9ms) rollback transaction
838
+  (0.1ms) begin transaction
839
+  (0.0ms) SAVEPOINT active_record_1
840
+ 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]]
841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
842
+ Processing by LtiProvider::LtiController#consume_launch as HTML
843
+ Parameters: {"nonce"=>"abcd"}
844
+ 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
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
848
+ Redirected to http://test.host/
849
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
850
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
851
+  (0.5ms) rollback transaction
852
+  (0.0ms) begin transaction
853
+ Processing by LtiProvider::LtiController#launch as HTML
854
+ 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="}
855
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
856
+  (0.1ms) rollback transaction
857
+  (0.0ms) begin transaction
858
+ Processing by LtiProvider::LtiController#launch as HTML
859
+ 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="}
860
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
861
+  (0.0ms) rollback transaction
862
+  (0.0ms) begin transaction
863
+ Processing by LtiProvider::LtiController#launch as HTML
864
+ 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="}
865
+  (0.0ms) SAVEPOINT active_record_1
866
+ 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]]
867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
868
+ Redirected to http://test.host/cookie_test?nonce=IA3DldJLQsxNnl2nlVd9eIHusOUi19aDeI9sPWHmbw
869
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
870
+  (0.5ms) rollback transaction
871
+  (0.0ms) begin transaction
872
+ Processing by LtiProvider::LtiController#launch as HTML
873
+ 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="}
874
+  (0.0ms) SAVEPOINT active_record_1
875
+ 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]]
876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
877
+ Redirected to http://test.host/cookie_test?nonce=Gq1ea5FnXP7nt9KTOBsACeC6lyynrYi1s4trZqvY
878
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
879
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
880
+  (0.5ms) rollback transaction
881
+  (0.0ms) begin transaction
882
+ Processing by LtiProvider::LtiController#cookie_test as HTML
883
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
884
+  (0.0ms) rollback transaction
885
+  (0.0ms) begin transaction
886
+ Processing by LtiProvider::LtiController#cookie_test as HTML
887
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
888
+  (0.0ms) rollback transaction
889
+  (0.0ms) begin transaction
890
+  (0.0ms) rollback transaction
891
+  (0.0ms) begin transaction
892
+  (0.0ms) rollback transaction
893
+  (0.0ms) begin transaction
894
+  (0.0ms) rollback transaction
895
+  (0.0ms) begin transaction
896
+  (0.0ms) rollback transaction
897
+  (0.0ms) begin transaction
898
+  (0.0ms) rollback transaction
899
+  (0.0ms) begin transaction
900
+  (0.0ms) rollback transaction
901
+  (0.0ms) begin transaction
902
+  (0.0ms) rollback transaction
903
+  (0.0ms) begin transaction
904
+  (0.0ms) rollback transaction
905
+  (0.0ms) begin transaction
906
+  (0.1ms) rollback transaction
907
+  (0.0ms) begin transaction
908
+  (0.0ms) rollback transaction
909
+  (0.0ms) begin transaction
910
+  (0.1ms) rollback transaction
911
+  (0.0ms) begin transaction
912
+  (0.1ms) rollback transaction
913
+  (0.1ms) begin transaction
914
+  (0.0ms) rollback transaction
915
+  (0.0ms) begin transaction
916
+  (0.0ms) rollback transaction
917
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
918
+ Connecting to database specified by database.yml
919
+  (0.4ms) begin transaction
920
+  (0.1ms) rollback transaction
921
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
922
+ Connecting to database specified by database.yml
923
+  (0.3ms) begin transaction
924
+ Processing by LtiProvider::LtiController#configure as XML
925
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
926
+  (0.1ms) rollback transaction
927
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
928
+ Connecting to database specified by database.yml
929
+  (0.3ms) begin transaction
930
+ Processing by LtiProvider::LtiController#configure as XML
931
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
932
+  (0.1ms) rollback transaction
933
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
934
+ Connecting to database specified by database.yml
935
+  (0.3ms) begin transaction
936
+ Processing by LtiProvider::LtiController#configure as XML
937
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
938
+  (0.1ms) rollback transaction
939
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
940
+ Connecting to database specified by database.yml
941
+  (0.3ms) begin transaction
942
+  (0.1ms) rollback transaction
943
+  (0.0ms) begin transaction
944
+  (0.0ms) rollback transaction
945
+  (0.0ms) begin transaction
946
+  (0.0ms) rollback transaction
947
+  (0.0ms) begin transaction
948
+  (0.0ms) rollback transaction
949
+  (0.0ms) begin transaction
950
+  (0.0ms) rollback transaction
951
+  (0.0ms) begin transaction
952
+  (0.0ms) rollback transaction
953
+  (0.0ms) begin transaction
954
+  (0.0ms) rollback transaction
955
+  (0.0ms) begin transaction
956
+  (0.0ms) rollback transaction
957
+  (0.0ms) begin transaction
958
+  (0.0ms) rollback transaction
959
+  (0.0ms) begin transaction
960
+  (0.1ms) rollback transaction
961
+  (0.0ms) begin transaction
962
+  (0.0ms) rollback transaction
963
+  (0.0ms) begin transaction
964
+  (0.0ms) rollback transaction
965
+  (0.0ms) begin transaction
966
+  (0.0ms) rollback transaction
967
+  (0.0ms) begin transaction
968
+  (0.0ms) rollback transaction
969
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
970
+ Connecting to database specified by database.yml
971
+  (0.3ms) begin transaction
972
+  (0.1ms) rollback transaction
973
+  (0.0ms) begin transaction
974
+  (0.0ms) rollback transaction
975
+  (0.0ms) begin transaction
976
+  (0.0ms) rollback transaction
977
+  (0.0ms) begin transaction
978
+  (0.1ms) rollback transaction
979
+  (0.0ms) begin transaction
980
+  (0.0ms) rollback transaction
981
+  (0.0ms) begin transaction
982
+  (0.1ms) rollback transaction
983
+  (0.0ms) begin transaction
984
+  (0.0ms) rollback transaction
985
+  (0.0ms) begin transaction
986
+  (0.0ms) rollback transaction
987
+  (0.0ms) begin transaction
988
+  (0.0ms) rollback transaction
989
+  (0.0ms) begin transaction
990
+  (0.0ms) rollback transaction
991
+  (0.0ms) begin transaction
992
+  (0.0ms) rollback transaction
993
+  (0.0ms) begin transaction
994
+  (0.1ms) rollback transaction
995
+  (0.0ms) begin transaction
996
+  (0.0ms) rollback transaction
997
+  (0.0ms) begin transaction
998
+  (0.0ms) rollback transaction
999
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1000
+ Connecting to database specified by database.yml
1001
+  (0.3ms) begin transaction
1002
+  (0.1ms) rollback transaction
1003
+  (0.0ms) begin transaction
1004
+  (0.0ms) rollback transaction
1005
+  (0.0ms) begin transaction
1006
+  (0.1ms) rollback transaction
1007
+  (0.0ms) begin transaction
1008
+  (0.0ms) rollback transaction
1009
+  (0.0ms) begin transaction
1010
+  (0.0ms) rollback transaction
1011
+  (0.0ms) begin transaction
1012
+  (0.0ms) rollback transaction
1013
+  (0.0ms) begin transaction
1014
+  (0.0ms) rollback transaction
1015
+  (0.0ms) begin transaction
1016
+  (0.0ms) rollback transaction
1017
+  (0.0ms) begin transaction
1018
+  (0.0ms) rollback transaction
1019
+  (0.0ms) begin transaction
1020
+  (0.0ms) rollback transaction
1021
+  (0.0ms) begin transaction
1022
+  (0.0ms) rollback transaction
1023
+  (0.0ms) begin transaction
1024
+  (0.0ms) rollback transaction
1025
+  (0.0ms) begin transaction
1026
+  (0.0ms) rollback transaction
1027
+  (0.0ms) begin transaction
1028
+  (0.0ms) rollback transaction
1029
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1030
+ Connecting to database specified by database.yml
1031
+  (0.3ms) begin transaction
1032
+  (0.1ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+  (0.0ms) rollback transaction
1035
+  (0.0ms) begin transaction
1036
+  (0.0ms) rollback transaction
1037
+  (0.1ms) begin transaction
1038
+  (0.0ms) rollback transaction
1039
+  (0.0ms) begin transaction
1040
+  (0.0ms) rollback transaction
1041
+  (0.0ms) begin transaction
1042
+  (0.0ms) rollback transaction
1043
+  (0.0ms) begin transaction
1044
+  (0.0ms) rollback transaction
1045
+  (0.0ms) begin transaction
1046
+  (0.1ms) rollback transaction
1047
+  (0.0ms) begin transaction
1048
+  (0.0ms) rollback transaction
1049
+  (0.0ms) begin transaction
1050
+  (0.0ms) rollback transaction
1051
+  (0.0ms) begin transaction
1052
+  (0.0ms) rollback transaction
1053
+  (0.0ms) begin transaction
1054
+  (0.0ms) rollback transaction
1055
+  (0.0ms) begin transaction
1056
+  (0.0ms) rollback transaction
1057
+  (0.0ms) begin transaction
1058
+  (0.0ms) rollback transaction
1059
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1060
+ Connecting to database specified by database.yml
1061
+  (0.3ms) begin transaction
1062
+  (0.0ms) rollback transaction
1063
+  (0.0ms) begin transaction
1064
+  (0.0ms) rollback transaction
1065
+  (0.0ms) begin transaction
1066
+  (0.1ms) rollback transaction
1067
+  (0.0ms) begin transaction
1068
+  (0.0ms) rollback transaction
1069
+  (0.1ms) begin transaction
1070
+  (0.0ms) rollback transaction
1071
+  (0.0ms) begin transaction
1072
+  (0.1ms) rollback transaction
1073
+  (0.0ms) begin transaction
1074
+  (0.1ms) rollback transaction
1075
+  (0.1ms) begin transaction
1076
+  (0.0ms) rollback transaction
1077
+  (0.0ms) begin transaction
1078
+  (0.0ms) rollback transaction
1079
+  (0.0ms) begin transaction
1080
+  (0.0ms) rollback transaction
1081
+  (0.0ms) begin transaction
1082
+  (0.0ms) rollback transaction
1083
+  (0.0ms) begin transaction
1084
+  (0.1ms) rollback transaction
1085
+  (0.0ms) begin transaction
1086
+  (0.0ms) rollback transaction
1087
+  (0.0ms) begin transaction
1088
+  (0.0ms) rollback transaction
1089
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1090
+ Connecting to database specified by database.yml
1091
+  (0.3ms) begin transaction
1092
+  (0.1ms) rollback transaction
1093
+  (0.1ms) begin transaction
1094
+  (0.1ms) rollback transaction
1095
+  (0.1ms) begin transaction
1096
+  (0.0ms) rollback transaction
1097
+  (0.0ms) begin transaction
1098
+  (0.0ms) rollback transaction
1099
+  (0.0ms) begin transaction
1100
+  (0.0ms) rollback transaction
1101
+  (0.1ms) begin transaction
1102
+  (0.1ms) rollback transaction
1103
+  (0.1ms) begin transaction
1104
+  (0.1ms) rollback transaction
1105
+  (0.1ms) begin transaction
1106
+  (0.0ms) rollback transaction
1107
+  (0.1ms) begin transaction
1108
+  (0.1ms) rollback transaction
1109
+  (0.1ms) begin transaction
1110
+  (0.0ms) rollback transaction
1111
+  (0.1ms) begin transaction
1112
+  (0.1ms) rollback transaction
1113
+  (0.1ms) begin transaction
1114
+  (0.1ms) rollback transaction
1115
+  (0.1ms) begin transaction
1116
+  (0.0ms) rollback transaction
1117
+  (0.1ms) begin transaction
1118
+  (0.1ms) rollback transaction
1119
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1120
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1121
+ Connecting to database specified by database.yml
1122
+  (0.3ms) begin transaction
1123
+  (0.1ms) rollback transaction
1124
+  (0.1ms) begin transaction
1125
+  (0.1ms) rollback transaction
1126
+  (0.1ms) begin transaction
1127
+  (0.1ms) rollback transaction
1128
+  (0.1ms) begin transaction
1129
+  (0.1ms) rollback transaction
1130
+  (0.1ms) begin transaction
1131
+  (0.1ms) rollback transaction
1132
+  (0.1ms) begin transaction
1133
+  (0.1ms) rollback transaction
1134
+  (0.1ms) begin transaction
1135
+  (0.0ms) rollback transaction
1136
+  (0.1ms) begin transaction
1137
+  (0.1ms) rollback transaction
1138
+  (0.1ms) begin transaction
1139
+  (0.1ms) rollback transaction
1140
+  (0.1ms) begin transaction
1141
+  (0.0ms) rollback transaction
1142
+  (0.1ms) begin transaction
1143
+  (0.1ms) rollback transaction
1144
+  (0.1ms) begin transaction
1145
+  (0.1ms) rollback transaction
1146
+  (0.1ms) begin transaction
1147
+  (0.1ms) rollback transaction
1148
+  (0.1ms) begin transaction
1149
+  (0.1ms) rollback transaction
1150
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1151
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1152
+ Connecting to database specified by database.yml
1153
+  (0.3ms) begin transaction
1154
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1155
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
1156
+ Completed 200 OK in 18ms (Views: 18.1ms | ActiveRecord: 0.0ms)
1157
+  (0.1ms) rollback transaction
1158
+  (0.0ms) begin transaction
1159
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1160
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1161
+  (0.0ms) rollback transaction
1162
+  (0.0ms) begin transaction
1163
+ Processing by LtiProvider::LtiController#launch as HTML
1164
+ 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="}
1165
+  (0.0ms) SAVEPOINT active_record_1
1166
+ 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]]
1167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1168
+ Redirected to http://test.host/cookie_test?nonce=Q8tMN4844vBwTQIMZ62IpLGBm32IvaXcGGVt5qJGc0w
1169
+ Completed 302 Found in 93ms (ActiveRecord: 78.1ms)
1170
+  (0.5ms) rollback transaction
1171
+  (0.0ms) begin transaction
1172
+ Processing by LtiProvider::LtiController#launch as HTML
1173
+ 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="}
1174
+  (0.0ms) SAVEPOINT active_record_1
1175
+ 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]]
1176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1177
+ Redirected to http://test.host/cookie_test?nonce=jHOocSQNhiqK4WRstTalPoTYXauk0KZqwprDorqhzI
1178
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
1179
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1180
+  (0.6ms) rollback transaction
1181
+  (0.0ms) begin transaction
1182
+ Processing by LtiProvider::LtiController#launch as HTML
1183
+ 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="}
1184
+ Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.0ms)
1185
+  (0.1ms) rollback transaction
1186
+  (0.0ms) begin transaction
1187
+ Processing by LtiProvider::LtiController#launch as HTML
1188
+ 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="}
1189
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1190
+  (0.0ms) rollback transaction
1191
+  (0.0ms) begin transaction
1192
+ Processing by LtiProvider::LtiController#configure as XML
1193
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1194
+  (0.0ms) rollback transaction
1195
+  (0.0ms) begin transaction
1196
+  (0.0ms) SAVEPOINT active_record_1
1197
+ 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]]
1198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1199
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1200
+ Parameters: {"nonce"=>"abcd"}
1201
+ 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
1202
+  (0.1ms) SAVEPOINT active_record_1
1203
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1205
+ Redirected to http://test.host/
1206
+ Completed 302 Found in 29ms (ActiveRecord: 0.6ms)
1207
+  (0.7ms) rollback transaction
1208
+  (0.0ms) begin transaction
1209
+  (0.0ms) SAVEPOINT active_record_1
1210
+ 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]]
1211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1212
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1213
+ Parameters: {"nonce"=>"abcd"}
1214
+ 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
1215
+  (0.0ms) SAVEPOINT active_record_1
1216
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1218
+ Redirected to http://test.host/
1219
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
1220
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
1221
+  (0.6ms) rollback transaction
1222
+  (0.1ms) begin transaction
1223
+  (0.0ms) SAVEPOINT active_record_1
1224
+ 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]]
1225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.0ms) SAVEPOINT active_record_1
1227
+  (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" = '---
1228
+ custom_canvas_course_id: 1
1229
+ custom_canvas_user_id: 2
1230
+ tool_consumer_instance_guid: 123abc
1231
+ ' WHERE "lti_provider_launches"."id" = 1
1232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1233
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1234
+ Parameters: {"nonce"=>"abcd"}
1235
+ 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
1236
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1237
+  (0.7ms) rollback transaction
1238
+  (0.0ms) begin transaction
1239
+  (0.0ms) SAVEPOINT active_record_1
1240
+ 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]]
1241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1242
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1243
+ Parameters: {"nonce"=>"invalid"}
1244
+ 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
1245
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1246
+  (0.6ms) rollback transaction
1247
+  (0.0ms) begin transaction
1248
+  (0.0ms) rollback transaction
1249
+  (0.0ms) begin transaction
1250
+  (0.0ms) rollback transaction
1251
+  (0.0ms) begin transaction
1252
+  (0.0ms) rollback transaction
1253
+  (0.0ms) begin transaction
1254
+  (0.0ms) rollback transaction
1255
+  (0.0ms) begin transaction
1256
+  (0.0ms) rollback transaction
1257
+  (0.0ms) begin transaction
1258
+  (0.0ms) rollback transaction
1259
+  (0.0ms) begin transaction
1260
+  (0.0ms) rollback transaction
1261
+  (0.0ms) begin transaction
1262
+  (0.0ms) rollback transaction
1263
+  (0.0ms) begin transaction
1264
+  (0.0ms) rollback transaction
1265
+  (0.0ms) begin transaction
1266
+  (0.0ms) rollback transaction
1267
+  (0.0ms) begin transaction
1268
+  (0.0ms) rollback transaction
1269
+  (0.0ms) begin transaction
1270
+  (0.0ms) rollback transaction
1271
+  (0.0ms) begin transaction
1272
+  (0.0ms) rollback transaction
1273
+  (0.0ms) begin transaction
1274
+  (0.0ms) rollback transaction
1275
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1276
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1277
+ Connecting to database specified by database.yml
1278
+  (0.3ms) begin transaction
1279
+  (0.0ms) SAVEPOINT active_record_1
1280
+ 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]]
1281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1282
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1283
+ Parameters: {"nonce"=>"abcd"}
1284
+ 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
1285
+  (0.1ms) SAVEPOINT active_record_1
1286
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1288
+ Redirected to http://test.host/
1289
+ Completed 302 Found in 33ms (ActiveRecord: 0.6ms)
1290
+  (1.1ms) rollback transaction
1291
+  (0.0ms) begin transaction
1292
+  (0.0ms) SAVEPOINT active_record_1
1293
+ 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]]
1294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1295
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1296
+ Parameters: {"nonce"=>"abcd"}
1297
+ 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
1298
+  (0.0ms) SAVEPOINT active_record_1
1299
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+ Redirected to http://test.host/
1302
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1303
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
1304
+  (0.6ms) rollback transaction
1305
+  (0.0ms) begin transaction
1306
+  (0.0ms) SAVEPOINT active_record_1
1307
+ 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]]
1308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1309
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1310
+ Parameters: {"nonce"=>"invalid"}
1311
+ 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
1312
+ Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.1ms)
1313
+  (0.6ms) rollback transaction
1314
+  (0.1ms) begin transaction
1315
+  (0.1ms) SAVEPOINT active_record_1
1316
+ 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]]
1317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.0ms) SAVEPOINT active_record_1
1319
+  (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" = '---
1320
+ custom_canvas_course_id: 1
1321
+ custom_canvas_user_id: 2
1322
+ tool_consumer_instance_guid: 123abc
1323
+ ' WHERE "lti_provider_launches"."id" = 1
1324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1325
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1326
+ Parameters: {"nonce"=>"abcd"}
1327
+ 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
1328
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1329
+  (0.6ms) rollback transaction
1330
+  (0.0ms) begin transaction
1331
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1332
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1333
+  (0.0ms) rollback transaction
1334
+  (0.0ms) begin transaction
1335
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1336
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1337
+  (0.0ms) rollback transaction
1338
+  (0.0ms) begin transaction
1339
+ Processing by LtiProvider::LtiController#launch as HTML
1340
+ 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="}
1341
+  (0.0ms) SAVEPOINT active_record_1
1342
+ 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]]
1343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1344
+ Redirected to http://test.host/cookie_test?nonce=HwM8pftQ9bjCoUU2FvqrxdOLLeeDzI7PVGBT56G6o
1345
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
1346
+  (0.8ms) rollback transaction
1347
+  (0.1ms) begin transaction
1348
+ Processing by LtiProvider::LtiController#launch as HTML
1349
+ 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="}
1350
+  (0.1ms) SAVEPOINT active_record_1
1351
+ 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]]
1352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1353
+ Redirected to http://test.host/cookie_test?nonce=H25D5BXci8wKCEw7eCpaCe2MZUdE5FdMgIieLlzvY
1354
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
1355
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1356
+  (0.6ms) rollback transaction
1357
+  (0.0ms) begin transaction
1358
+ Processing by LtiProvider::LtiController#launch as HTML
1359
+ 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="}
1360
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1361
+  (0.1ms) rollback transaction
1362
+  (0.0ms) begin transaction
1363
+ Processing by LtiProvider::LtiController#launch as HTML
1364
+ 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="}
1365
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1366
+  (0.0ms) rollback transaction
1367
+  (0.0ms) begin transaction
1368
+ Processing by LtiProvider::LtiController#configure as XML
1369
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1370
+  (0.0ms) rollback transaction
1371
+  (0.1ms) begin transaction
1372
+  (0.0ms) rollback transaction
1373
+  (0.1ms) begin transaction
1374
+  (0.0ms) rollback transaction
1375
+  (0.0ms) begin transaction
1376
+  (0.0ms) rollback transaction
1377
+  (0.0ms) begin transaction
1378
+  (0.0ms) rollback transaction
1379
+  (0.0ms) begin transaction
1380
+  (0.0ms) rollback transaction
1381
+  (0.0ms) begin transaction
1382
+  (0.0ms) rollback transaction
1383
+  (0.0ms) begin transaction
1384
+  (0.0ms) rollback transaction
1385
+  (0.0ms) begin transaction
1386
+  (0.0ms) rollback transaction
1387
+  (0.0ms) begin transaction
1388
+  (0.0ms) rollback transaction
1389
+  (0.0ms) begin transaction
1390
+  (0.0ms) rollback transaction
1391
+  (0.0ms) begin transaction
1392
+  (0.0ms) rollback transaction
1393
+  (0.0ms) begin transaction
1394
+  (0.0ms) rollback transaction
1395
+  (0.1ms) begin transaction
1396
+  (0.0ms) rollback transaction
1397
+  (0.1ms) begin transaction
1398
+  (0.0ms) rollback transaction
1399
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1400
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1401
+ Connecting to database specified by database.yml
1402
+  (0.3ms) begin transaction
1403
+  (0.0ms) SAVEPOINT active_record_1
1404
+ 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]]
1405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1406
+  (0.0ms) SAVEPOINT active_record_1
1407
+  (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" = '---
1408
+ custom_canvas_course_id: 1
1409
+ custom_canvas_user_id: 2
1410
+ tool_consumer_instance_guid: 123abc
1411
+ ' WHERE "lti_provider_launches"."id" = 1
1412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1413
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1414
+ Parameters: {"nonce"=>"abcd"}
1415
+ 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
1416
+ Rendered text template (0.0ms)
1417
+ Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 0.1ms)
1418
+  (1.3ms) rollback transaction
1419
+  (0.0ms) begin transaction
1420
+  (0.0ms) SAVEPOINT active_record_1
1421
+ 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]]
1422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1423
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1424
+ Parameters: {"nonce"=>"invalid"}
1425
+ 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
1426
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1427
+  (0.5ms) rollback transaction
1428
+  (0.0ms) begin transaction
1429
+  (0.0ms) SAVEPOINT active_record_1
1430
+ 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]]
1431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1432
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1433
+ Parameters: {"nonce"=>"abcd"}
1434
+ 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
1435
+  (0.1ms) SAVEPOINT active_record_1
1436
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1438
+ Redirected to http://test.host/
1439
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
1440
+  (0.8ms) rollback transaction
1441
+  (0.1ms) begin transaction
1442
+  (0.0ms) SAVEPOINT active_record_1
1443
+ 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]]
1444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1445
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1446
+ Parameters: {"nonce"=>"abcd"}
1447
+ 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
1448
+  (0.0ms) SAVEPOINT active_record_1
1449
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1451
+ Redirected to http://test.host/
1452
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
1453
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
1454
+  (0.5ms) rollback transaction
1455
+  (0.0ms) begin transaction
1456
+ Processing by LtiProvider::LtiController#configure as XML
1457
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1458
+  (0.1ms) rollback transaction
1459
+  (0.0ms) begin transaction
1460
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1461
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1462
+  (0.0ms) rollback transaction
1463
+  (0.0ms) begin transaction
1464
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1465
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1466
+  (0.0ms) rollback transaction
1467
+  (0.0ms) begin transaction
1468
+ Processing by LtiProvider::LtiController#launch as HTML
1469
+ 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="}
1470
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1471
+  (0.1ms) rollback transaction
1472
+  (0.0ms) begin transaction
1473
+ Processing by LtiProvider::LtiController#launch as HTML
1474
+ 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="}
1475
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1476
+  (0.0ms) rollback transaction
1477
+  (0.0ms) begin transaction
1478
+ Processing by LtiProvider::LtiController#launch as HTML
1479
+ 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="}
1480
+  (0.1ms) SAVEPOINT active_record_1
1481
+ 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]]
1482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1483
+ Redirected to http://test.host/cookie_test?nonce=RQ96RL4fz4yAFeiuj9lA9qY0HDdCdg379P643ietNjA
1484
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
1485
+  (5.3ms) rollback transaction
1486
+  (0.0ms) begin transaction
1487
+ Processing by LtiProvider::LtiController#launch as HTML
1488
+ 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="}
1489
+  (0.0ms) SAVEPOINT active_record_1
1490
+ 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]]
1491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1492
+ Redirected to http://test.host/cookie_test?nonce=AbVyVMumR1Bma6LLqp6VOr0v9hHBMiL2TnobbsNL8
1493
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
1494
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1495
+  (0.6ms) rollback transaction
1496
+  (0.0ms) begin transaction
1497
+  (0.0ms) rollback transaction
1498
+  (0.0ms) begin transaction
1499
+  (0.0ms) rollback transaction
1500
+  (0.0ms) begin transaction
1501
+  (0.0ms) rollback transaction
1502
+  (0.0ms) begin transaction
1503
+  (0.0ms) rollback transaction
1504
+  (0.0ms) begin transaction
1505
+  (0.0ms) rollback transaction
1506
+  (0.0ms) begin transaction
1507
+  (0.0ms) rollback transaction
1508
+  (0.0ms) begin transaction
1509
+  (0.0ms) rollback transaction
1510
+  (0.0ms) begin transaction
1511
+  (0.0ms) rollback transaction
1512
+  (0.0ms) begin transaction
1513
+  (0.1ms) rollback transaction
1514
+  (0.0ms) begin transaction
1515
+  (0.0ms) rollback transaction
1516
+  (0.0ms) begin transaction
1517
+  (0.0ms) rollback transaction
1518
+  (0.0ms) begin transaction
1519
+  (0.1ms) rollback transaction
1520
+  (0.0ms) begin transaction
1521
+  (0.1ms) rollback transaction
1522
+  (0.0ms) begin transaction
1523
+  (0.0ms) rollback transaction
1524
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1525
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1526
+ Connecting to database specified by database.yml
1527
+  (0.3ms) begin transaction
1528
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1529
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
1530
+ Completed 200 OK in 46ms (Views: 45.9ms | ActiveRecord: 0.0ms)
1531
+  (0.1ms) rollback transaction
1532
+  (0.1ms) begin transaction
1533
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1534
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1535
+  (0.0ms) rollback transaction
1536
+  (0.0ms) begin transaction
1537
+  (0.1ms) SAVEPOINT active_record_1
1538
+ 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]]
1539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1540
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1541
+ Parameters: {"nonce"=>"abcd"}
1542
+ 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
1543
+  (0.0ms) SAVEPOINT active_record_1
1544
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1546
+ Redirected to http://test.host/
1547
+ Completed 302 Found in 39ms (ActiveRecord: 0.5ms)
1548
+  (0.9ms) rollback transaction
1549
+  (0.1ms) begin transaction
1550
+  (0.1ms) SAVEPOINT active_record_1
1551
+ 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]]
1552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1553
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1554
+ Parameters: {"nonce"=>"abcd"}
1555
+ 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
1556
+  (0.0ms) SAVEPOINT active_record_1
1557
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1559
+ Redirected to http://test.host/
1560
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1561
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
1562
+  (0.7ms) rollback transaction
1563
+  (0.0ms) begin transaction
1564
+  (0.0ms) SAVEPOINT active_record_1
1565
+ 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]]
1566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1567
+  (0.0ms) SAVEPOINT active_record_1
1568
+  (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" = '---
1569
+ custom_canvas_course_id: 1
1570
+ custom_canvas_user_id: 2
1571
+ tool_consumer_instance_guid: 123abc
1572
+ ' WHERE "lti_provider_launches"."id" = 1
1573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1574
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1575
+ Parameters: {"nonce"=>"abcd"}
1576
+ 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
1577
+ Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.1ms)
1578
+  (144.2ms) rollback transaction
1579
+  (0.1ms) begin transaction
1580
+  (0.1ms) SAVEPOINT active_record_1
1581
+ 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]]
1582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1583
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1584
+ Parameters: {"nonce"=>"invalid"}
1585
+ 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
1586
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1587
+  (9.5ms) rollback transaction
1588
+  (0.1ms) begin transaction
1589
+ Processing by LtiProvider::LtiController#launch as HTML
1590
+ 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="}
1591
+  (0.1ms) SAVEPOINT active_record_1
1592
+ 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]]
1593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1594
+ Redirected to http://test.host/cookie_test?nonce=rmYFazGvOckq1lyeLlVSerXtKWUDGGRPLT2DyH2xo
1595
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
1596
+  (24.1ms) rollback transaction
1597
+  (0.1ms) begin transaction
1598
+ Processing by LtiProvider::LtiController#launch as HTML
1599
+ 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="}
1600
+  (0.1ms) SAVEPOINT active_record_1
1601
+ 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]]
1602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1603
+ Redirected to http://test.host/cookie_test?nonce=vHUPH58geWFOw9AFovZEQUiTdHqwX7eu1HS5xTzpMI
1604
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
1605
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1606
+  (0.5ms) rollback transaction
1607
+  (0.0ms) begin transaction
1608
+ Processing by LtiProvider::LtiController#launch as HTML
1609
+ 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="}
1610
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1611
+  (0.1ms) rollback transaction
1612
+  (0.0ms) begin transaction
1613
+ Processing by LtiProvider::LtiController#launch as HTML
1614
+ 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="}
1615
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1616
+  (0.1ms) rollback transaction
1617
+  (0.0ms) begin transaction
1618
+ Processing by LtiProvider::LtiController#configure as XML
1619
+ Completed 500 Internal Server Error in 1ms
1620
+  (0.0ms) rollback transaction
1621
+  (0.1ms) begin transaction
1622
+  (0.1ms) rollback transaction
1623
+  (0.0ms) begin transaction
1624
+  (0.0ms) rollback transaction
1625
+  (0.0ms) begin transaction
1626
+  (0.0ms) rollback transaction
1627
+  (0.0ms) begin transaction
1628
+  (0.1ms) rollback transaction
1629
+  (0.0ms) begin transaction
1630
+  (0.0ms) rollback transaction
1631
+  (0.0ms) begin transaction
1632
+  (0.0ms) rollback transaction
1633
+  (0.0ms) begin transaction
1634
+  (0.0ms) rollback transaction
1635
+  (0.0ms) begin transaction
1636
+  (0.0ms) rollback transaction
1637
+  (0.0ms) begin transaction
1638
+  (0.0ms) rollback transaction
1639
+  (0.0ms) begin transaction
1640
+  (0.0ms) rollback transaction
1641
+  (0.0ms) begin transaction
1642
+  (0.0ms) rollback transaction
1643
+  (0.0ms) begin transaction
1644
+  (0.0ms) rollback transaction
1645
+  (0.0ms) begin transaction
1646
+  (0.0ms) rollback transaction
1647
+  (0.0ms) begin transaction
1648
+  (0.0ms) rollback transaction
1649
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1650
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1651
+ Connecting to database specified by database.yml
1652
+  (0.3ms) begin transaction
1653
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1654
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
1655
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
1656
+  (0.1ms) rollback transaction
1657
+  (0.0ms) begin transaction
1658
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1659
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1660
+  (0.0ms) rollback transaction
1661
+  (0.0ms) begin transaction
1662
+ Processing by LtiProvider::LtiController#launch as HTML
1663
+ 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="}
1664
+  (0.0ms) SAVEPOINT active_record_1
1665
+ 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]]
1666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1667
+ Redirected to http://test.host/cookie_test?nonce=KKhBCIhcqqXDl6DUjZzTh8wRn3kQ91jJHgc4iExk
1668
+ Completed 302 Found in 19ms (ActiveRecord: 5.5ms)
1669
+  (1.2ms) rollback transaction
1670
+  (0.0ms) begin transaction
1671
+ Processing by LtiProvider::LtiController#launch as HTML
1672
+ 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="}
1673
+  (0.0ms) SAVEPOINT active_record_1
1674
+ 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]]
1675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1676
+ Redirected to http://test.host/cookie_test?nonce=7UxrCz4wqrCqEM1ZeuqgViagbx3r68NGjHJ5PkiXYZ8
1677
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
1678
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1679
+  (0.6ms) rollback transaction
1680
+  (0.0ms) begin transaction
1681
+ Processing by LtiProvider::LtiController#launch as HTML
1682
+ 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="}
1683
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
1684
+  (0.1ms) rollback transaction
1685
+  (0.0ms) begin transaction
1686
+ Processing by LtiProvider::LtiController#launch as HTML
1687
+ 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="}
1688
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1689
+  (0.1ms) rollback transaction
1690
+  (0.0ms) begin transaction
1691
+  (0.1ms) SAVEPOINT active_record_1
1692
+ 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]]
1693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1694
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1695
+ Parameters: {"nonce"=>"abcd"}
1696
+ 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
1697
+  (0.0ms) SAVEPOINT active_record_1
1698
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1700
+ Redirected to http://test.host/
1701
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
1702
+  (0.7ms) rollback transaction
1703
+  (0.0ms) begin transaction
1704
+  (0.0ms) SAVEPOINT active_record_1
1705
+ 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]]
1706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1707
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1708
+ Parameters: {"nonce"=>"abcd"}
1709
+ 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
1710
+  (0.0ms) SAVEPOINT active_record_1
1711
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1713
+ Redirected to http://test.host/
1714
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
1715
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches" 
1716
+  (0.7ms) rollback transaction
1717
+  (0.0ms) begin transaction
1718
+  (0.0ms) SAVEPOINT active_record_1
1719
+ 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]]
1720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1721
+  (0.0ms) SAVEPOINT active_record_1
1722
+  (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" = '---
1723
+ custom_canvas_course_id: 1
1724
+ custom_canvas_user_id: 2
1725
+ tool_consumer_instance_guid: 123abc
1726
+ ' WHERE "lti_provider_launches"."id" = 1
1727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1728
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1729
+ Parameters: {"nonce"=>"abcd"}
1730
+ 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
1731
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1732
+  (0.9ms) rollback transaction
1733
+  (0.0ms) begin transaction
1734
+  (0.0ms) SAVEPOINT active_record_1
1735
+ 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]]
1736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1737
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1738
+ Parameters: {"nonce"=>"invalid"}
1739
+ 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
1740
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1741
+  (0.6ms) rollback transaction
1742
+  (0.0ms) begin transaction
1743
+ Processing by LtiProvider::LtiController#configure as XML
1744
+ Completed 500 Internal Server Error in 5ms
1745
+  (0.1ms) rollback transaction
1746
+  (0.0ms) begin transaction
1747
+  (0.0ms) rollback transaction
1748
+  (0.0ms) begin transaction
1749
+  (0.1ms) rollback transaction
1750
+  (0.1ms) begin transaction
1751
+  (0.1ms) rollback transaction
1752
+  (0.0ms) begin transaction
1753
+  (0.0ms) rollback transaction
1754
+  (0.0ms) begin transaction
1755
+  (0.0ms) rollback transaction
1756
+  (0.0ms) begin transaction
1757
+  (0.0ms) rollback transaction
1758
+  (0.0ms) begin transaction
1759
+  (0.0ms) rollback transaction
1760
+  (0.0ms) begin transaction
1761
+  (0.0ms) rollback transaction
1762
+  (0.0ms) begin transaction
1763
+  (0.0ms) rollback transaction
1764
+  (0.0ms) begin transaction
1765
+  (0.0ms) rollback transaction
1766
+  (0.0ms) begin transaction
1767
+  (0.0ms) rollback transaction
1768
+  (0.0ms) begin transaction
1769
+  (0.0ms) rollback transaction
1770
+  (0.0ms) begin transaction
1771
+  (0.0ms) rollback transaction
1772
+  (0.0ms) begin transaction
1773
+  (0.0ms) rollback transaction
1774
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1775
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1776
+ Connecting to database specified by database.yml
1777
+  (0.3ms) begin transaction
1778
+ Processing by LtiProvider::LtiController#configure as XML
1779
+ Completed 500 Internal Server Error in 1ms
1780
+  (0.1ms) rollback transaction
1781
+  (0.0ms) begin transaction
1782
+ Processing by LtiProvider::LtiController#launch as HTML
1783
+ 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="}
1784
+ Completed 200 OK in 17ms (Views: 8.7ms | ActiveRecord: 1.4ms)
1785
+  (0.1ms) rollback transaction
1786
+  (0.0ms) begin transaction
1787
+ Processing by LtiProvider::LtiController#launch as HTML
1788
+ 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="}
1789
+  (0.1ms) SAVEPOINT active_record_1
1790
+ 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]]
1791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1792
+ Redirected to http://test.host/cookie_test?nonce=GtGfGwkfg4VbQ8zLpOyZTtyWqmk0NikjlU764miUwyA
1793
+ Completed 302 Found in 12ms (ActiveRecord: 4.3ms)
1794
+  (1.3ms) rollback transaction
1795
+  (0.0ms) begin transaction
1796
+ Processing by LtiProvider::LtiController#launch as HTML
1797
+ 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="}
1798
+  (0.0ms) SAVEPOINT active_record_1
1799
+ 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]]
1800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1801
+ Redirected to http://test.host/cookie_test?nonce=vTkeGvgG7BO24fyZew4lqaYfd6d5MZEEy9re2MxWc
1802
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
1803
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
1804
+  (0.7ms) rollback transaction
1805
+  (0.0ms) begin transaction
1806
+ Processing by LtiProvider::LtiController#launch as HTML
1807
+ 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="}
1808
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1809
+  (0.1ms) rollback transaction
1810
+  (0.0ms) begin transaction
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+ 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]]
1813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1814
+  (0.0ms) SAVEPOINT active_record_1
1815
+  (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" = '---
1816
+ custom_canvas_course_id: 1
1817
+ custom_canvas_user_id: 2
1818
+ tool_consumer_instance_guid: 123abc
1819
+ ' WHERE "lti_provider_launches"."id" = 1
1820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1821
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1822
+ Parameters: {"nonce"=>"abcd"}
1823
+ 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
1824
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1825
+  (0.7ms) rollback transaction
1826
+  (0.1ms) begin transaction
1827
+  (0.1ms) SAVEPOINT active_record_1
1828
+ 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]]
1829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1830
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1831
+ Parameters: {"nonce"=>"abcd"}
1832
+ 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
1833
+  (0.0ms) SAVEPOINT active_record_1
1834
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1836
+ Redirected to http://test.host/
1837
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
1838
+  (0.6ms) rollback transaction
1839
+  (0.0ms) begin transaction
1840
+  (0.0ms) SAVEPOINT active_record_1
1841
+ 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]]
1842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1843
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1844
+ Parameters: {"nonce"=>"abcd"}
1845
+ 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
1846
+  (0.0ms) SAVEPOINT active_record_1
1847
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1849
+ Redirected to http://test.host/
1850
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
1851
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
1852
+  (0.7ms) rollback transaction
1853
+  (0.0ms) begin transaction
1854
+  (0.0ms) SAVEPOINT active_record_1
1855
+ 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]]
1856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1857
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1858
+ Parameters: {"nonce"=>"invalid"}
1859
+ 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
1860
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1861
+  (0.5ms) rollback transaction
1862
+  (0.0ms) begin transaction
1863
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1864
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1865
+  (0.1ms) rollback transaction
1866
+  (0.0ms) begin transaction
1867
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1868
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1869
+  (0.0ms) rollback transaction
1870
+  (0.0ms) begin transaction
1871
+  (0.0ms) rollback transaction
1872
+  (0.0ms) begin transaction
1873
+  (0.0ms) rollback transaction
1874
+  (0.0ms) begin transaction
1875
+  (0.0ms) rollback transaction
1876
+  (0.0ms) begin transaction
1877
+  (0.0ms) rollback transaction
1878
+  (0.0ms) begin transaction
1879
+  (0.0ms) rollback transaction
1880
+  (0.0ms) begin transaction
1881
+  (0.0ms) rollback transaction
1882
+  (0.0ms) begin transaction
1883
+  (0.0ms) rollback transaction
1884
+  (0.0ms) begin transaction
1885
+  (0.0ms) rollback transaction
1886
+  (0.0ms) begin transaction
1887
+  (0.1ms) rollback transaction
1888
+  (0.0ms) begin transaction
1889
+  (0.0ms) rollback transaction
1890
+  (0.0ms) begin transaction
1891
+  (0.0ms) rollback transaction
1892
+  (0.0ms) begin transaction
1893
+  (0.0ms) rollback transaction
1894
+  (0.0ms) begin transaction
1895
+  (0.0ms) rollback transaction
1896
+  (0.0ms) begin transaction
1897
+  (0.0ms) rollback transaction
1898
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
1899
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
1900
+ Connecting to database specified by database.yml
1901
+  (0.3ms) begin transaction
1902
+  (0.1ms) rollback transaction
1903
+  (0.0ms) begin transaction
1904
+  (0.0ms) rollback transaction
1905
+  (0.0ms) begin transaction
1906
+  (0.0ms) rollback transaction
1907
+  (0.0ms) begin transaction
1908
+  (0.1ms) rollback transaction
1909
+  (0.0ms) begin transaction
1910
+  (0.0ms) rollback transaction
1911
+  (0.0ms) begin transaction
1912
+  (0.1ms) rollback transaction
1913
+  (0.0ms) begin transaction
1914
+  (0.1ms) rollback transaction
1915
+  (0.0ms) begin transaction
1916
+  (0.0ms) rollback transaction
1917
+  (0.0ms) begin transaction
1918
+  (0.0ms) rollback transaction
1919
+  (0.0ms) begin transaction
1920
+  (0.0ms) rollback transaction
1921
+  (0.0ms) begin transaction
1922
+  (0.0ms) rollback transaction
1923
+  (0.0ms) begin transaction
1924
+  (0.0ms) rollback transaction
1925
+  (0.0ms) begin transaction
1926
+  (0.0ms) rollback transaction
1927
+  (0.0ms) begin transaction
1928
+  (0.0ms) rollback transaction
1929
+  (0.1ms) begin transaction
1930
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1931
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
1932
+ Completed 200 OK in 8ms (Views: 8.2ms | ActiveRecord: 0.0ms)
1933
+  (0.1ms) rollback transaction
1934
+  (0.0ms) begin transaction
1935
+ Processing by LtiProvider::LtiController#cookie_test as HTML
1936
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1937
+  (0.0ms) rollback transaction
1938
+  (0.0ms) begin transaction
1939
+ Processing by LtiProvider::LtiController#configure as XML
1940
+ Completed 500 Internal Server Error in 16ms
1941
+  (0.0ms) rollback transaction
1942
+  (0.0ms) begin transaction
1943
+  (0.0ms) SAVEPOINT active_record_1
1944
+ 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]]
1945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1946
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1947
+ Parameters: {"nonce"=>"abcd"}
1948
+ 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
1949
+  (0.0ms) SAVEPOINT active_record_1
1950
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1952
+ Redirected to http://test.host/
1953
+ Completed 302 Found in 32ms (ActiveRecord: 0.5ms)
1954
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
1955
+  (0.7ms) rollback transaction
1956
+  (0.0ms) begin transaction
1957
+  (0.0ms) SAVEPOINT active_record_1
1958
+ 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]]
1959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1960
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1961
+ Parameters: {"nonce"=>"abcd"}
1962
+ 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
1963
+  (0.0ms) SAVEPOINT active_record_1
1964
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
1965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1966
+ Redirected to http://test.host/
1967
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1968
+  (0.9ms) rollback transaction
1969
+  (0.0ms) begin transaction
1970
+  (0.0ms) SAVEPOINT active_record_1
1971
+ 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]]
1972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1973
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1974
+ Parameters: {"nonce"=>"invalid"}
1975
+ 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
1976
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1977
+  (0.7ms) rollback transaction
1978
+  (0.1ms) begin transaction
1979
+  (0.1ms) SAVEPOINT active_record_1
1980
+ 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]]
1981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1982
+  (0.0ms) SAVEPOINT active_record_1
1983
+  (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" = '---
1984
+ custom_canvas_course_id: 1
1985
+ custom_canvas_user_id: 2
1986
+ tool_consumer_instance_guid: 123abc
1987
+ ' WHERE "lti_provider_launches"."id" = 1
1988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1989
+ Processing by LtiProvider::LtiController#consume_launch as HTML
1990
+ Parameters: {"nonce"=>"abcd"}
1991
+ 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
1992
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1993
+  (0.6ms) rollback transaction
1994
+  (0.1ms) begin transaction
1995
+ Processing by LtiProvider::LtiController#launch as HTML
1996
+ 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="}
1997
+  (0.1ms) SAVEPOINT active_record_1
1998
+ 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]]
1999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2000
+ Redirected to http://test.host/cookie_test?nonce=QEdKdyYQjnvS5yXr2gLhZhnliwjUvRjkGcnwOAcGZc
2001
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2002
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2003
+  (0.7ms) rollback transaction
2004
+  (0.1ms) begin transaction
2005
+ Processing by LtiProvider::LtiController#launch as HTML
2006
+ 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="}
2007
+  (0.1ms) SAVEPOINT active_record_1
2008
+ 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]]
2009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2010
+ Redirected to http://test.host/cookie_test?nonce=p3hHpqpw9ZjlEtdXKG2CUMZb9GUCY7qy7HB7cQVjzE
2011
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
2012
+  (0.6ms) rollback transaction
2013
+  (0.0ms) begin transaction
2014
+ Processing by LtiProvider::LtiController#launch as HTML
2015
+ 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="}
2016
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2017
+  (0.1ms) rollback transaction
2018
+  (0.0ms) begin transaction
2019
+ Processing by LtiProvider::LtiController#launch as HTML
2020
+ 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="}
2021
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2022
+  (0.0ms) rollback transaction
2023
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2024
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2025
+ Connecting to database specified by database.yml
2026
+  (0.3ms) begin transaction
2027
+  (0.0ms) rollback transaction
2028
+  (0.0ms) begin transaction
2029
+  (0.0ms) rollback transaction
2030
+  (0.0ms) begin transaction
2031
+  (0.0ms) rollback transaction
2032
+  (0.0ms) begin transaction
2033
+  (0.0ms) rollback transaction
2034
+  (0.0ms) begin transaction
2035
+  (0.0ms) rollback transaction
2036
+  (0.0ms) begin transaction
2037
+  (0.1ms) rollback transaction
2038
+  (0.0ms) begin transaction
2039
+  (0.0ms) rollback transaction
2040
+  (0.0ms) begin transaction
2041
+  (0.0ms) rollback transaction
2042
+  (0.0ms) begin transaction
2043
+  (0.1ms) rollback transaction
2044
+  (0.0ms) begin transaction
2045
+  (0.0ms) rollback transaction
2046
+  (0.0ms) begin transaction
2047
+  (0.0ms) rollback transaction
2048
+  (0.0ms) begin transaction
2049
+  (0.1ms) rollback transaction
2050
+  (0.0ms) begin transaction
2051
+  (0.0ms) rollback transaction
2052
+  (0.0ms) begin transaction
2053
+  (0.0ms) rollback transaction
2054
+  (0.0ms) begin transaction
2055
+ Processing by LtiProvider::LtiController#configure as XML
2056
+ Completed 500 Internal Server Error in 1ms
2057
+  (0.1ms) rollback transaction
2058
+  (0.0ms) begin transaction
2059
+  (0.0ms) SAVEPOINT active_record_1
2060
+ 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]]
2061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2062
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2063
+ Parameters: {"nonce"=>"invalid"}
2064
+ 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
2065
+ Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.2ms)
2066
+  (1.3ms) rollback transaction
2067
+  (0.1ms) begin transaction
2068
+  (0.0ms) SAVEPOINT active_record_1
2069
+ 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]]
2070
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2071
+  (0.0ms) SAVEPOINT active_record_1
2072
+  (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" = '---
2073
+ custom_canvas_course_id: 1
2074
+ custom_canvas_user_id: 2
2075
+ tool_consumer_instance_guid: 123abc
2076
+ ' WHERE "lti_provider_launches"."id" = 1
2077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2078
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2079
+ Parameters: {"nonce"=>"abcd"}
2080
+ 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
2081
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2082
+  (0.7ms) rollback transaction
2083
+  (0.0ms) begin transaction
2084
+  (0.0ms) SAVEPOINT active_record_1
2085
+ 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]]
2086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2087
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2088
+ Parameters: {"nonce"=>"abcd"}
2089
+ 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
2090
+  (0.0ms) SAVEPOINT active_record_1
2091
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2093
+ Redirected to http://test.host/
2094
+ Completed 302 Found in 8ms (ActiveRecord: 0.4ms)
2095
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
2096
+  (1.2ms) rollback transaction
2097
+  (0.0ms) begin transaction
2098
+  (0.0ms) SAVEPOINT active_record_1
2099
+ 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]]
2100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2101
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2102
+ Parameters: {"nonce"=>"abcd"}
2103
+ 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
2104
+  (0.0ms) SAVEPOINT active_record_1
2105
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2107
+ Redirected to http://test.host/
2108
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2109
+  (0.7ms) rollback transaction
2110
+  (0.0ms) begin transaction
2111
+ Processing by LtiProvider::LtiController#launch as HTML
2112
+ 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="}
2113
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2114
+  (0.1ms) rollback transaction
2115
+  (0.0ms) begin transaction
2116
+ Processing by LtiProvider::LtiController#launch as HTML
2117
+ 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="}
2118
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2119
+  (0.1ms) rollback transaction
2120
+  (0.0ms) begin transaction
2121
+ Processing by LtiProvider::LtiController#launch as HTML
2122
+ 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="}
2123
+  (0.0ms) SAVEPOINT active_record_1
2124
+ 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]]
2125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+ Redirected to http://test.host/cookie_test?nonce=A27Z7hlwNlA0ZXM7qFM8t3RCJgEzW5gnU1KTCLZam0
2127
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
2128
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2129
+  (0.9ms) rollback transaction
2130
+  (0.0ms) begin transaction
2131
+ Processing by LtiProvider::LtiController#launch as HTML
2132
+ 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="}
2133
+  (0.1ms) SAVEPOINT active_record_1
2134
+ 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]]
2135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2136
+ Redirected to http://test.host/cookie_test?nonce=hls3rx0HEo07lgyPWsmFs50TFgaFuxmhtSccmAGa8
2137
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2138
+  (0.7ms) rollback transaction
2139
+  (0.0ms) begin transaction
2140
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2141
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2142
+  (0.0ms) rollback transaction
2143
+  (0.0ms) begin transaction
2144
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2145
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2146
+  (0.1ms) rollback transaction
2147
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2148
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2149
+ Connecting to database specified by database.yml
2150
+  (0.3ms) begin transaction
2151
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2152
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
2153
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
2154
+  (0.1ms) rollback transaction
2155
+  (0.0ms) begin transaction
2156
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2157
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2158
+  (0.1ms) rollback transaction
2159
+  (0.0ms) begin transaction
2160
+  (0.0ms) SAVEPOINT active_record_1
2161
+ 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]]
2162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2163
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2164
+ Parameters: {"nonce"=>"invalid"}
2165
+ 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
2166
+ Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2167
+  (0.8ms) rollback transaction
2168
+  (0.0ms) begin transaction
2169
+  (0.0ms) SAVEPOINT active_record_1
2170
+ 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]]
2171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2172
+  (0.0ms) SAVEPOINT active_record_1
2173
+  (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" = '---
2174
+ custom_canvas_course_id: 1
2175
+ custom_canvas_user_id: 2
2176
+ tool_consumer_instance_guid: 123abc
2177
+ ' WHERE "lti_provider_launches"."id" = 1
2178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2179
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2180
+ Parameters: {"nonce"=>"abcd"}
2181
+ 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
2182
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2183
+  (0.6ms) rollback transaction
2184
+  (0.1ms) begin transaction
2185
+  (0.0ms) SAVEPOINT active_record_1
2186
+ 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]]
2187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2188
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2189
+ Parameters: {"nonce"=>"abcd"}
2190
+ 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
2191
+  (0.0ms) SAVEPOINT active_record_1
2192
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2194
+ Redirected to http://test.host/
2195
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2196
+  (0.8ms) rollback transaction
2197
+  (0.1ms) begin transaction
2198
+  (0.1ms) SAVEPOINT active_record_1
2199
+ 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]]
2200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2201
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2202
+ Parameters: {"nonce"=>"abcd"}
2203
+ 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
2204
+  (0.0ms) SAVEPOINT active_record_1
2205
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2207
+ Redirected to http://test.host/
2208
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2209
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
2210
+  (0.7ms) rollback transaction
2211
+  (0.0ms) begin transaction
2212
+ Processing by LtiProvider::LtiController#launch as HTML
2213
+ 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="}
2214
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2215
+  (0.1ms) rollback transaction
2216
+  (0.0ms) begin transaction
2217
+ Processing by LtiProvider::LtiController#launch as HTML
2218
+ 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="}
2219
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2220
+  (0.0ms) rollback transaction
2221
+  (0.0ms) begin transaction
2222
+ Processing by LtiProvider::LtiController#launch as HTML
2223
+ 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="}
2224
+  (0.0ms) SAVEPOINT active_record_1
2225
+ 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]]
2226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2227
+ Redirected to http://test.host/cookie_test?nonce=2XnxXnMWAJUI2Q47ryWcDVVR2MGwVdW8Gmjwh4uj7U
2228
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2229
+  (0.8ms) rollback transaction
2230
+  (0.1ms) begin transaction
2231
+ Processing by LtiProvider::LtiController#launch as HTML
2232
+ 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="}
2233
+  (0.1ms) SAVEPOINT active_record_1
2234
+ 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]]
2235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2236
+ Redirected to http://test.host/cookie_test?nonce=36cvnMWoVAdQgb68XAZkr7JforSp9TOM1y2h59cJU
2237
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
2238
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2239
+  (0.9ms) rollback transaction
2240
+  (0.0ms) begin transaction
2241
+ Processing by LtiProvider::LtiController#configure as XML
2242
+ Completed 500 Internal Server Error in 1ms
2243
+  (0.0ms) rollback transaction
2244
+  (0.0ms) begin transaction
2245
+  (0.0ms) rollback transaction
2246
+  (0.0ms) begin transaction
2247
+  (0.0ms) rollback transaction
2248
+  (0.0ms) begin transaction
2249
+  (0.0ms) rollback transaction
2250
+  (0.0ms) begin transaction
2251
+  (0.0ms) rollback transaction
2252
+  (0.0ms) begin transaction
2253
+  (0.0ms) rollback transaction
2254
+  (0.0ms) begin transaction
2255
+  (0.0ms) rollback transaction
2256
+  (0.0ms) begin transaction
2257
+  (0.0ms) rollback transaction
2258
+  (0.0ms) begin transaction
2259
+  (0.0ms) rollback transaction
2260
+  (0.0ms) begin transaction
2261
+  (0.0ms) rollback transaction
2262
+  (0.0ms) begin transaction
2263
+  (0.0ms) rollback transaction
2264
+  (0.0ms) begin transaction
2265
+  (0.0ms) rollback transaction
2266
+  (0.0ms) begin transaction
2267
+  (0.0ms) rollback transaction
2268
+  (0.0ms) begin transaction
2269
+  (0.0ms) rollback transaction
2270
+  (0.0ms) begin transaction
2271
+  (0.0ms) rollback transaction
2272
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2273
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2274
+ Connecting to database specified by database.yml
2275
+  (0.3ms) begin transaction
2276
+  (0.0ms) rollback transaction
2277
+  (0.0ms) begin transaction
2278
+  (0.0ms) rollback transaction
2279
+  (0.0ms) begin transaction
2280
+  (0.0ms) rollback transaction
2281
+  (0.0ms) begin transaction
2282
+  (0.0ms) rollback transaction
2283
+  (0.0ms) begin transaction
2284
+  (0.0ms) rollback transaction
2285
+  (0.0ms) begin transaction
2286
+  (0.1ms) rollback transaction
2287
+  (0.0ms) begin transaction
2288
+  (0.0ms) rollback transaction
2289
+  (0.0ms) begin transaction
2290
+  (0.0ms) rollback transaction
2291
+  (0.0ms) begin transaction
2292
+  (0.0ms) rollback transaction
2293
+  (0.0ms) begin transaction
2294
+  (0.0ms) rollback transaction
2295
+  (0.0ms) begin transaction
2296
+  (0.1ms) rollback transaction
2297
+  (0.0ms) begin transaction
2298
+  (0.0ms) rollback transaction
2299
+  (0.0ms) begin transaction
2300
+  (0.0ms) rollback transaction
2301
+  (0.0ms) begin transaction
2302
+  (0.0ms) rollback transaction
2303
+  (0.1ms) begin transaction
2304
+ Processing by LtiProvider::LtiController#configure as XML
2305
+ Completed 500 Internal Server Error in 1ms
2306
+  (0.1ms) rollback transaction
2307
+  (0.0ms) begin transaction
2308
+ Processing by LtiProvider::LtiController#launch as HTML
2309
+ 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="}
2310
+ Completed 200 OK in 33ms (Views: 8.7ms | ActiveRecord: 0.0ms)
2311
+  (0.1ms) rollback transaction
2312
+  (0.0ms) begin transaction
2313
+ Processing by LtiProvider::LtiController#launch as HTML
2314
+ 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="}
2315
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2316
+  (0.0ms) rollback transaction
2317
+  (0.0ms) begin transaction
2318
+ Processing by LtiProvider::LtiController#launch as HTML
2319
+ 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="}
2320
+  (0.0ms) SAVEPOINT active_record_1
2321
+ 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]]
2322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2323
+ Redirected to http://test.host/cookie_test?nonce=EoFSL7714kkkF0xS8crxnkMnqqlBh549tYovBtzK5k
2324
+ Completed 302 Found in 10ms (ActiveRecord: 4.0ms)
2325
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2326
+  (1.5ms) rollback transaction
2327
+  (0.0ms) begin transaction
2328
+ Processing by LtiProvider::LtiController#launch as HTML
2329
+ 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="}
2330
+  (0.1ms) SAVEPOINT active_record_1
2331
+ 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]]
2332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2333
+ Redirected to http://test.host/cookie_test?nonce=hLXsKP7HiYBcJrx6YSQD5CXVAvINbMrTkSyUqO1K4
2334
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2335
+  (0.7ms) rollback transaction
2336
+  (0.0ms) begin transaction
2337
+  (0.0ms) SAVEPOINT active_record_1
2338
+ 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]]
2339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2340
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2341
+ Parameters: {"nonce"=>"invalid"}
2342
+ 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
2343
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2344
+  (0.9ms) rollback transaction
2345
+  (0.0ms) begin transaction
2346
+  (0.0ms) SAVEPOINT active_record_1
2347
+ 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]]
2348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2349
+  (0.0ms) SAVEPOINT active_record_1
2350
+  (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" = '---
2351
+ custom_canvas_course_id: 1
2352
+ custom_canvas_user_id: 2
2353
+ tool_consumer_instance_guid: 123abc
2354
+ ' WHERE "lti_provider_launches"."id" = 1
2355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2356
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2357
+ Parameters: {"nonce"=>"abcd"}
2358
+ 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
2359
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2360
+  (0.7ms) rollback transaction
2361
+  (0.0ms) begin transaction
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ 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]]
2364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2365
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2366
+ Parameters: {"nonce"=>"abcd"}
2367
+ 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
2368
+  (0.0ms) SAVEPOINT active_record_1
2369
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2371
+ Redirected to http://test.host/
2372
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2373
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
2374
+  (0.9ms) rollback transaction
2375
+  (0.0ms) begin transaction
2376
+  (0.0ms) SAVEPOINT active_record_1
2377
+ 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]]
2378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2379
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2380
+ Parameters: {"nonce"=>"abcd"}
2381
+ 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
2382
+  (0.0ms) SAVEPOINT active_record_1
2383
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2385
+ Redirected to http://test.host/
2386
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
2387
+  (0.9ms) rollback transaction
2388
+  (0.0ms) begin transaction
2389
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2390
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2391
+  (0.0ms) rollback transaction
2392
+  (0.0ms) begin transaction
2393
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2394
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2395
+  (0.1ms) rollback transaction
2396
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2397
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2398
+ Connecting to database specified by database.yml
2399
+  (0.3ms) begin transaction
2400
+ Processing by LtiProvider::LtiController#configure as XML
2401
+ Completed 200 OK in 104184ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2402
+  (0.1ms) rollback transaction
2403
+  (0.1ms) begin transaction
2404
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2405
+ Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)
2406
+  (0.1ms) rollback transaction
2407
+  (0.1ms) begin transaction
2408
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2409
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
2410
+  (0.0ms) rollback transaction
2411
+  (0.0ms) begin transaction
2412
+ Processing by LtiProvider::LtiController#launch as HTML
2413
+ 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="}
2414
+ Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 1.5ms)
2415
+  (0.1ms) rollback transaction
2416
+  (0.1ms) begin transaction
2417
+ Processing by LtiProvider::LtiController#launch as HTML
2418
+ 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="}
2419
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2420
+  (0.1ms) rollback transaction
2421
+  (0.1ms) begin transaction
2422
+ Processing by LtiProvider::LtiController#launch as HTML
2423
+ 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="}
2424
+  (0.1ms) SAVEPOINT active_record_1
2425
+ 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]]
2426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2427
+ Redirected to http://test.host/cookie_test?nonce=xcZyPWaqZgZVblr4gSgFkdchXWPncQxXmlh3DI4wMM
2428
+ Completed 302 Found in 15ms (ActiveRecord: 4.8ms)
2429
+  (1.4ms) rollback transaction
2430
+  (0.1ms) begin transaction
2431
+ Processing by LtiProvider::LtiController#launch as HTML
2432
+ 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="}
2433
+  (0.1ms) SAVEPOINT active_record_1
2434
+ 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]]
2435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2436
+ Redirected to http://test.host/cookie_test?nonce=BT9Zq03MnzBO0Css5wF7ScpPzQzJOVsyTSVpIYHNWTA
2437
+ Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
2438
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2439
+  (1.0ms) rollback transaction
2440
+  (0.1ms) begin transaction
2441
+  (0.1ms) SAVEPOINT active_record_1
2442
+ 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]]
2443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2444
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2445
+ Parameters: {"nonce"=>"invalid"}
2446
+ 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
2447
+ Completed 200 OK in 38ms (Views: 0.5ms | ActiveRecord: 0.1ms)
2448
+  (1.0ms) rollback transaction
2449
+  (0.1ms) begin transaction
2450
+  (0.0ms) SAVEPOINT active_record_1
2451
+ 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]]
2452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2453
+  (0.0ms) SAVEPOINT active_record_1
2454
+  (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" = '---
2455
+ custom_canvas_course_id: 1
2456
+ custom_canvas_user_id: 2
2457
+ tool_consumer_instance_guid: 123abc
2458
+ ' WHERE "lti_provider_launches"."id" = 1
2459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2460
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2461
+ Parameters: {"nonce"=>"abcd"}
2462
+ 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
2463
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2464
+  (1.0ms) rollback transaction
2465
+  (0.1ms) begin transaction
2466
+  (0.1ms) SAVEPOINT active_record_1
2467
+ 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]]
2468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2469
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2470
+ Parameters: {"nonce"=>"abcd"}
2471
+ 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
2472
+  (0.0ms) SAVEPOINT active_record_1
2473
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2475
+ Redirected to http://test.host/
2476
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
2477
+  (0.9ms) rollback transaction
2478
+  (0.1ms) begin transaction
2479
+  (0.1ms) SAVEPOINT active_record_1
2480
+ 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]]
2481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2482
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2483
+ Parameters: {"nonce"=>"abcd"}
2484
+ 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
2485
+  (0.0ms) SAVEPOINT active_record_1
2486
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2488
+ Redirected to http://test.host/
2489
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
2490
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
2491
+  (0.8ms) rollback transaction
2492
+  (0.1ms) begin transaction
2493
+  (0.1ms) rollback transaction
2494
+  (0.1ms) begin transaction
2495
+  (0.2ms) rollback transaction
2496
+  (0.1ms) begin transaction
2497
+  (0.1ms) rollback transaction
2498
+  (0.1ms) begin transaction
2499
+  (0.1ms) rollback transaction
2500
+  (0.1ms) begin transaction
2501
+  (0.1ms) rollback transaction
2502
+  (0.1ms) begin transaction
2503
+  (0.1ms) rollback transaction
2504
+  (0.1ms) begin transaction
2505
+  (0.1ms) rollback transaction
2506
+  (0.1ms) begin transaction
2507
+  (0.0ms) rollback transaction
2508
+  (0.0ms) begin transaction
2509
+  (0.1ms) rollback transaction
2510
+  (0.1ms) begin transaction
2511
+  (0.1ms) rollback transaction
2512
+  (0.1ms) begin transaction
2513
+  (0.0ms) rollback transaction
2514
+  (0.0ms) begin transaction
2515
+  (0.1ms) rollback transaction
2516
+  (0.1ms) begin transaction
2517
+  (0.1ms) rollback transaction
2518
+  (0.1ms) begin transaction
2519
+  (0.0ms) rollback transaction
2520
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2521
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2522
+ Connecting to database specified by database.yml
2523
+  (0.3ms) begin transaction
2524
+  (0.1ms) rollback transaction
2525
+  (0.0ms) begin transaction
2526
+  (0.0ms) rollback transaction
2527
+  (0.0ms) begin transaction
2528
+  (0.0ms) rollback transaction
2529
+  (0.0ms) begin transaction
2530
+  (0.0ms) rollback transaction
2531
+  (0.0ms) begin transaction
2532
+  (0.0ms) rollback transaction
2533
+  (0.0ms) begin transaction
2534
+  (0.0ms) rollback transaction
2535
+  (0.0ms) begin transaction
2536
+  (0.0ms) rollback transaction
2537
+  (0.0ms) begin transaction
2538
+  (0.0ms) rollback transaction
2539
+  (0.0ms) begin transaction
2540
+  (0.0ms) rollback transaction
2541
+  (0.0ms) begin transaction
2542
+  (0.0ms) rollback transaction
2543
+  (0.0ms) begin transaction
2544
+  (0.0ms) rollback transaction
2545
+  (0.0ms) begin transaction
2546
+  (0.0ms) rollback transaction
2547
+  (0.0ms) begin transaction
2548
+  (0.0ms) rollback transaction
2549
+  (0.0ms) begin transaction
2550
+  (0.1ms) rollback transaction
2551
+  (0.1ms) begin transaction
2552
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2553
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
2554
+ Completed 200 OK in 35ms (Views: 35.2ms | ActiveRecord: 0.0ms)
2555
+  (0.1ms) rollback transaction
2556
+  (0.0ms) begin transaction
2557
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2558
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
2559
+  (0.0ms) rollback transaction
2560
+  (0.0ms) begin transaction
2561
+  (0.0ms) SAVEPOINT active_record_1
2562
+ 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]]
2563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2564
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2565
+ Parameters: {"nonce"=>"abcd"}
2566
+ 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
2567
+  (0.0ms) SAVEPOINT active_record_1
2568
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2570
+ Redirected to http://test.host/
2571
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
2572
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
2573
+  (1.3ms) rollback transaction
2574
+  (0.0ms) begin transaction
2575
+  (0.0ms) SAVEPOINT active_record_1
2576
+ 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]]
2577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2578
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2579
+ Parameters: {"nonce"=>"abcd"}
2580
+ 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
2581
+  (0.0ms) SAVEPOINT active_record_1
2582
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2584
+ Redirected to http://test.host/
2585
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2586
+  (0.7ms) rollback transaction
2587
+  (0.0ms) begin transaction
2588
+  (0.0ms) SAVEPOINT active_record_1
2589
+ 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]]
2590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2591
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2592
+ Parameters: {"nonce"=>"invalid"}
2593
+ 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
2594
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2595
+  (0.7ms) rollback transaction
2596
+  (0.0ms) begin transaction
2597
+  (0.0ms) SAVEPOINT active_record_1
2598
+ 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]]
2599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2600
+  (0.0ms) SAVEPOINT active_record_1
2601
+  (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" = '---
2602
+ custom_canvas_course_id: 1
2603
+ custom_canvas_user_id: 2
2604
+ tool_consumer_instance_guid: 123abc
2605
+ ' WHERE "lti_provider_launches"."id" = 1
2606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2607
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2608
+ Parameters: {"nonce"=>"abcd"}
2609
+ 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
2610
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2611
+  (0.8ms) rollback transaction
2612
+  (0.0ms) begin transaction
2613
+ Processing by LtiProvider::LtiController#launch as HTML
2614
+ 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="}
2615
+  (0.1ms) SAVEPOINT active_record_1
2616
+ 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]]
2617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2618
+ Redirected to http://test.host/cookie_test?nonce=lK3j1AiOhlUsbeLIPR8d38ZXsaQrhmTX5SooC27B0
2619
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2620
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2621
+  (0.9ms) rollback transaction
2622
+  (0.0ms) begin transaction
2623
+ Processing by LtiProvider::LtiController#launch as HTML
2624
+ 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="}
2625
+  (0.0ms) SAVEPOINT active_record_1
2626
+ 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]]
2627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2628
+ Redirected to http://test.host/cookie_test?nonce=9JMYz3KjzkDUYBIvJ89TcNEK4MkOosTuecNucPkSZzA
2629
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
2630
+  (0.8ms) rollback transaction
2631
+  (0.0ms) begin transaction
2632
+ Processing by LtiProvider::LtiController#launch as HTML
2633
+ 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="}
2634
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2635
+  (0.1ms) rollback transaction
2636
+  (0.0ms) begin transaction
2637
+ Processing by LtiProvider::LtiController#launch as HTML
2638
+ 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="}
2639
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2640
+  (0.1ms) rollback transaction
2641
+  (0.0ms) begin transaction
2642
+ Processing by LtiProvider::LtiController#configure as XML
2643
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2644
+  (0.0ms) rollback transaction
2645
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2646
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2647
+ Connecting to database specified by database.yml
2648
+  (0.3ms) begin transaction
2649
+  (0.0ms) SAVEPOINT active_record_1
2650
+ 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]]
2651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2652
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2653
+ Parameters: {"nonce"=>"abcd"}
2654
+ 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
2655
+  (0.0ms) SAVEPOINT active_record_1
2656
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2658
+ Redirected to http://test.host/
2659
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
2660
+  (1.5ms) rollback transaction
2661
+  (0.1ms) begin transaction
2662
+  (0.1ms) SAVEPOINT active_record_1
2663
+ 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]]
2664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2665
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2666
+ Parameters: {"nonce"=>"abcd"}
2667
+ 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
2668
+  (0.0ms) SAVEPOINT active_record_1
2669
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2671
+ Redirected to http://test.host/
2672
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
2673
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"
2674
+  (0.7ms) rollback transaction
2675
+  (0.0ms) begin transaction
2676
+  (0.1ms) SAVEPOINT active_record_1
2677
+ 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]]
2678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2679
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2680
+ Parameters: {"nonce"=>"invalid"}
2681
+ 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
2682
+ Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.1ms)
2683
+  (0.5ms) rollback transaction
2684
+  (0.0ms) begin transaction
2685
+  (0.0ms) SAVEPOINT active_record_1
2686
+ 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]]
2687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2688
+  (0.0ms) SAVEPOINT active_record_1
2689
+  (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" = '---
2690
+ custom_canvas_course_id: 1
2691
+ custom_canvas_user_id: 2
2692
+ tool_consumer_instance_guid: 123abc
2693
+ ' WHERE "lti_provider_launches"."id" = 1
2694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2695
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2696
+ Parameters: {"nonce"=>"abcd"}
2697
+ 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
2698
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2699
+  (0.9ms) rollback transaction
2700
+  (0.0ms) begin transaction
2701
+ Processing by LtiProvider::LtiController#configure as XML
2702
+ Completed 500 Internal Server Error in 1ms
2703
+  (0.0ms) rollback transaction
2704
+  (0.0ms) begin transaction
2705
+ Processing by LtiProvider::LtiController#launch as HTML
2706
+ 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="}
2707
+  (0.0ms) SAVEPOINT active_record_1
2708
+ 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]]
2709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2710
+ Redirected to http://test.host/cookie_test?nonce=reojPj57dDrQe5cbRVVyAkbi0SHxDbPFtdA52shnc
2711
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
2712
+  (0.9ms) rollback transaction
2713
+  (0.0ms) begin transaction
2714
+ Processing by LtiProvider::LtiController#launch as HTML
2715
+ 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="}
2716
+  (0.1ms) SAVEPOINT active_record_1
2717
+ 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]]
2718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2719
+ Redirected to http://test.host/cookie_test?nonce=yIasKjPi9YAWcyc728BInuiWmiClURIIrniTh3ak
2720
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2721
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2722
+  (0.6ms) rollback transaction
2723
+  (0.0ms) begin transaction
2724
+ Processing by LtiProvider::LtiController#launch as HTML
2725
+ 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="}
2726
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2727
+  (0.0ms) rollback transaction
2728
+  (0.0ms) begin transaction
2729
+ Processing by LtiProvider::LtiController#launch as HTML
2730
+ 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="}
2731
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2732
+  (0.0ms) rollback transaction
2733
+  (0.0ms) begin transaction
2734
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2735
+ Completed 200 OK in 24ms (Views: 24.0ms | ActiveRecord: 0.0ms)
2736
+  (0.1ms) rollback transaction
2737
+  (0.0ms) begin transaction
2738
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2739
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2740
+  (0.0ms) rollback transaction
2741
+  (0.0ms) begin transaction
2742
+  (0.0ms) rollback transaction
2743
+  (0.0ms) begin transaction
2744
+  (0.0ms) rollback transaction
2745
+  (0.0ms) begin transaction
2746
+  (0.0ms) rollback transaction
2747
+  (0.0ms) begin transaction
2748
+  (0.0ms) rollback transaction
2749
+  (0.0ms) begin transaction
2750
+  (0.0ms) rollback transaction
2751
+  (0.0ms) begin transaction
2752
+  (0.0ms) rollback transaction
2753
+  (0.0ms) begin transaction
2754
+  (0.0ms) rollback transaction
2755
+  (0.0ms) begin transaction
2756
+  (0.0ms) rollback transaction
2757
+  (0.0ms) begin transaction
2758
+  (0.0ms) rollback transaction
2759
+  (0.0ms) begin transaction
2760
+  (0.0ms) rollback transaction
2761
+  (0.0ms) begin transaction
2762
+  (0.0ms) rollback transaction
2763
+  (0.0ms) begin transaction
2764
+  (0.0ms) rollback transaction
2765
+  (0.0ms) begin transaction
2766
+  (0.0ms) rollback transaction
2767
+  (0.0ms) begin transaction
2768
+  (0.0ms) rollback transaction
2769
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2770
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2771
+ Connecting to database specified by database.yml
2772
+  (0.3ms) begin transaction
2773
+ Processing by LtiProvider::LtiController#launch as HTML
2774
+ 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="}
2775
+ Rendered text template (0.0ms)
2776
+ Completed 200 OK in 18ms (Views: 9.5ms | ActiveRecord: 1.4ms)
2777
+  (0.1ms) rollback transaction
2778
+  (0.0ms) begin transaction
2779
+ Processing by LtiProvider::LtiController#launch as HTML
2780
+ 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="}
2781
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2782
+  (0.0ms) rollback transaction
2783
+  (0.0ms) begin transaction
2784
+ Processing by LtiProvider::LtiController#launch as HTML
2785
+ 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="}
2786
+  (0.0ms) SAVEPOINT active_record_1
2787
+ 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]]
2788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2789
+ Redirected to http://test.host/cookie_test?nonce=xyWC1TCYzkaKTY0Ox4hsMSyu5iGwxDT3KsAzRusv1o
2790
+ Completed 302 Found in 11ms (ActiveRecord: 4.4ms)
2791
+  (0.9ms) rollback transaction
2792
+  (0.0ms) begin transaction
2793
+ Processing by LtiProvider::LtiController#launch as HTML
2794
+ 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="}
2795
+  (0.0ms) SAVEPOINT active_record_1
2796
+ 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]]
2797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2798
+ Redirected to http://test.host/cookie_test?nonce=uf5I045qyh4arLh4qEHk0ntA2NlB7VziVWYBvXqiDI
2799
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
2800
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2801
+  (0.6ms) rollback transaction
2802
+  (0.0ms) begin transaction
2803
+ Processing by LtiProvider::LtiController#configure as XML
2804
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2805
+  (0.0ms) rollback transaction
2806
+  (0.0ms) begin transaction
2807
+  (0.0ms) SAVEPOINT active_record_1
2808
+ 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]]
2809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2810
+  (0.0ms) SAVEPOINT active_record_1
2811
+  (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" = '---
2812
+ custom_canvas_course_id: 1
2813
+ custom_canvas_user_id: 2
2814
+ tool_consumer_instance_guid: 123abc
2815
+ ' WHERE "lti_provider_launches"."id" = 1
2816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2817
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2818
+ Parameters: {"nonce"=>"abcd"}
2819
+ 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
2820
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2821
+  (0.7ms) rollback transaction
2822
+  (0.0ms) begin transaction
2823
+  (0.0ms) SAVEPOINT active_record_1
2824
+ 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]]
2825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2826
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2827
+ Parameters: {"nonce"=>"invalid"}
2828
+ 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
2829
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2830
+  (0.9ms) rollback transaction
2831
+  (0.0ms) begin transaction
2832
+  (0.0ms) SAVEPOINT active_record_1
2833
+ 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]]
2834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2835
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2836
+ Parameters: {"nonce"=>"abcd"}
2837
+ 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
2838
+  (0.0ms) SAVEPOINT active_record_1
2839
+ SQL (0.4ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2841
+ Redirected to http://test.host/
2842
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2843
+  (0.5ms) rollback transaction
2844
+  (0.1ms) begin transaction
2845
+  (0.1ms) SAVEPOINT active_record_1
2846
+ 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]]
2847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2848
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2849
+ Parameters: {"nonce"=>"abcd"}
2850
+ 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
2851
+  (0.0ms) SAVEPOINT active_record_1
2852
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2854
+ Redirected to http://test.host/
2855
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2856
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
2857
+  (0.6ms) rollback transaction
2858
+  (0.1ms) begin transaction
2859
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2860
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
2861
+  (0.0ms) rollback transaction
2862
+  (0.0ms) begin transaction
2863
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2864
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
2865
+  (0.0ms) rollback transaction
2866
+  (0.0ms) begin transaction
2867
+  (0.0ms) rollback transaction
2868
+  (0.0ms) begin transaction
2869
+  (0.0ms) rollback transaction
2870
+  (0.0ms) begin transaction
2871
+  (0.0ms) rollback transaction
2872
+  (0.0ms) begin transaction
2873
+  (0.0ms) rollback transaction
2874
+  (0.0ms) begin transaction
2875
+  (0.0ms) rollback transaction
2876
+  (0.0ms) begin transaction
2877
+  (0.0ms) rollback transaction
2878
+  (0.0ms) begin transaction
2879
+  (0.0ms) rollback transaction
2880
+  (0.0ms) begin transaction
2881
+  (0.0ms) rollback transaction
2882
+  (0.0ms) begin transaction
2883
+  (0.0ms) rollback transaction
2884
+  (0.0ms) begin transaction
2885
+  (0.0ms) rollback transaction
2886
+  (0.0ms) begin transaction
2887
+  (0.0ms) rollback transaction
2888
+  (0.0ms) begin transaction
2889
+  (0.1ms) rollback transaction
2890
+  (0.1ms) begin transaction
2891
+  (0.0ms) rollback transaction
2892
+  (0.0ms) begin transaction
2893
+  (0.0ms) rollback transaction
2894
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
2895
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
2896
+ Connecting to database specified by database.yml
2897
+  (0.3ms) begin transaction
2898
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2899
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
2900
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms)
2901
+  (0.1ms) rollback transaction
2902
+  (0.0ms) begin transaction
2903
+ Processing by LtiProvider::LtiController#cookie_test as HTML
2904
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2905
+  (0.0ms) rollback transaction
2906
+  (0.0ms) begin transaction
2907
+ Processing by LtiProvider::LtiController#launch as HTML
2908
+ 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="}
2909
+  (0.0ms) SAVEPOINT active_record_1
2910
+ 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]]
2911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2912
+ Redirected to http://test.host/cookie_test?nonce=CX3vzOMhP4PXDQV25SVlsra6nTIo9ipYIfDnM66tKHk
2913
+ Completed 302 Found in 39ms (ActiveRecord: 26.0ms)
2914
+  (0.9ms) rollback transaction
2915
+  (0.0ms) begin transaction
2916
+ Processing by LtiProvider::LtiController#launch as HTML
2917
+ 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="}
2918
+  (0.0ms) SAVEPOINT active_record_1
2919
+ 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]]
2920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2921
+ Redirected to http://test.host/cookie_test?nonce=f3oA5TvioikO11WfmSnKH5lvb9IQ9WFgLoDAvSc
2922
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
2923
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
2924
+  (1.6ms) rollback transaction
2925
+  (0.0ms) begin transaction
2926
+ Processing by LtiProvider::LtiController#launch as HTML
2927
+ 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="}
2928
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2929
+  (0.0ms) rollback transaction
2930
+  (0.0ms) begin transaction
2931
+ Processing by LtiProvider::LtiController#launch as HTML
2932
+ 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="}
2933
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2934
+  (0.0ms) rollback transaction
2935
+  (0.0ms) begin transaction
2936
+  (0.0ms) SAVEPOINT active_record_1
2937
+ 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]]
2938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2939
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2940
+ Parameters: {"nonce"=>"abcd"}
2941
+ 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
2942
+  (0.0ms) SAVEPOINT active_record_1
2943
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2945
+ Redirected to http://test.host/
2946
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
2947
+  (0.8ms) rollback transaction
2948
+  (0.0ms) begin transaction
2949
+  (0.0ms) SAVEPOINT active_record_1
2950
+ 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]]
2951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2952
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2953
+ Parameters: {"nonce"=>"abcd"}
2954
+ 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
2955
+  (0.0ms) SAVEPOINT active_record_1
2956
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
2957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2958
+ Redirected to http://test.host/
2959
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2960
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches" 
2961
+  (0.5ms) rollback transaction
2962
+  (0.0ms) begin transaction
2963
+  (0.0ms) SAVEPOINT active_record_1
2964
+ 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]]
2965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2966
+  (0.0ms) SAVEPOINT active_record_1
2967
+  (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" = '---
2968
+ custom_canvas_course_id: 1
2969
+ custom_canvas_user_id: 2
2970
+ tool_consumer_instance_guid: 123abc
2971
+ ' WHERE "lti_provider_launches"."id" = 1
2972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2973
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2974
+ Parameters: {"nonce"=>"abcd"}
2975
+ 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
2976
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2977
+  (0.6ms) rollback transaction
2978
+  (0.0ms) begin transaction
2979
+  (0.0ms) SAVEPOINT active_record_1
2980
+ 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]]
2981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2982
+ Processing by LtiProvider::LtiController#consume_launch as HTML
2983
+ Parameters: {"nonce"=>"invalid"}
2984
+ 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
2985
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2986
+  (0.7ms) rollback transaction
2987
+  (0.0ms) begin transaction
2988
+ Processing by LtiProvider::LtiController#configure as XML
2989
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2990
+  (0.0ms) rollback transaction
2991
+  (0.0ms) begin transaction
2992
+  (0.0ms) rollback transaction
2993
+  (0.0ms) begin transaction
2994
+  (0.0ms) rollback transaction
2995
+  (0.0ms) begin transaction
2996
+  (0.0ms) rollback transaction
2997
+  (0.0ms) begin transaction
2998
+  (0.0ms) rollback transaction
2999
+  (0.0ms) begin transaction
3000
+  (0.0ms) rollback transaction
3001
+  (0.0ms) begin transaction
3002
+  (0.0ms) rollback transaction
3003
+  (0.0ms) begin transaction
3004
+  (0.0ms) rollback transaction
3005
+  (0.0ms) begin transaction
3006
+  (0.1ms) rollback transaction
3007
+  (0.0ms) begin transaction
3008
+  (0.0ms) rollback transaction
3009
+  (0.0ms) begin transaction
3010
+  (0.0ms) rollback transaction
3011
+  (0.0ms) begin transaction
3012
+  (0.0ms) rollback transaction
3013
+  (0.0ms) begin transaction
3014
+  (0.0ms) rollback transaction
3015
+  (0.0ms) begin transaction
3016
+  (0.0ms) rollback transaction
3017
+  (0.0ms) begin transaction
3018
+  (0.0ms) rollback transaction
3019
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3020
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3021
+ Connecting to database specified by database.yml
3022
+  (0.3ms) begin transaction
3023
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3024
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
3025
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
3026
+  (0.1ms) rollback transaction
3027
+  (0.0ms) begin transaction
3028
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3029
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3030
+  (0.0ms) rollback transaction
3031
+  (0.0ms) begin transaction
3032
+ Processing by LtiProvider::LtiController#configure as XML
3033
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3034
+  (0.0ms) rollback transaction
3035
+  (0.0ms) begin transaction
3036
+  (0.0ms) SAVEPOINT active_record_1
3037
+ 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]]
3038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3039
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3040
+ Parameters: {"nonce"=>"abcd"}
3041
+ 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
3042
+  (0.0ms) SAVEPOINT active_record_1
3043
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3045
+ Redirected to http://test.host/
3046
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
3047
+  (0.9ms) rollback transaction
3048
+  (0.0ms) begin transaction
3049
+  (0.0ms) SAVEPOINT active_record_1
3050
+ 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]]
3051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3052
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3053
+ Parameters: {"nonce"=>"abcd"}
3054
+ 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
3055
+  (0.0ms) SAVEPOINT active_record_1
3056
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3058
+ Redirected to http://test.host/
3059
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
3060
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"
3061
+  (0.8ms) rollback transaction
3062
+  (0.0ms) begin transaction
3063
+  (0.0ms) SAVEPOINT active_record_1
3064
+ 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]]
3065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3066
+  (0.0ms) SAVEPOINT active_record_1
3067
+  (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" = '---
3068
+ custom_canvas_course_id: 1
3069
+ custom_canvas_user_id: 2
3070
+ tool_consumer_instance_guid: 123abc
3071
+ ' WHERE "lti_provider_launches"."id" = 1
3072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3073
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3074
+ Parameters: {"nonce"=>"abcd"}
3075
+ 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
3076
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
3077
+  (0.9ms) rollback transaction
3078
+  (0.1ms) begin transaction
3079
+  (0.1ms) SAVEPOINT active_record_1
3080
+ 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]]
3081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3082
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3083
+ Parameters: {"nonce"=>"invalid"}
3084
+ 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
3085
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3086
+  (0.6ms) rollback transaction
3087
+  (0.0ms) begin transaction
3088
+ Processing by LtiProvider::LtiController#launch as HTML
3089
+ 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="}
3090
+  (0.0ms) SAVEPOINT active_record_1
3091
+ 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]]
3092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3093
+ Redirected to http://test.host/cookie_test?nonce=PYlujcHwTdm7K8KJA6D5BXSOzLC2U2KD5kzv9ItYs
3094
+ Completed 302 Found in 8ms (ActiveRecord: 0.5ms)
3095
+  (0.8ms) rollback transaction
3096
+  (0.0ms) begin transaction
3097
+ Processing by LtiProvider::LtiController#launch as HTML
3098
+ 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="}
3099
+  (0.0ms) SAVEPOINT active_record_1
3100
+ 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]]
3101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3102
+ Redirected to http://test.host/cookie_test?nonce=suiJ6quaL2lkKOLSDQCOsThPBn6wbr0sv7yXu4VYnx0
3103
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
3104
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3105
+  (0.9ms) rollback transaction
3106
+  (0.0ms) begin transaction
3107
+ Processing by LtiProvider::LtiController#launch as HTML
3108
+ 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="}
3109
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3110
+  (0.1ms) rollback transaction
3111
+  (0.0ms) begin transaction
3112
+ Processing by LtiProvider::LtiController#launch as HTML
3113
+ 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="}
3114
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3115
+  (0.1ms) rollback transaction
3116
+  (0.0ms) begin transaction
3117
+  (0.0ms) rollback transaction
3118
+  (0.0ms) begin transaction
3119
+  (0.0ms) rollback transaction
3120
+  (0.0ms) begin transaction
3121
+  (0.0ms) rollback transaction
3122
+  (0.0ms) begin transaction
3123
+  (0.0ms) rollback transaction
3124
+  (0.0ms) begin transaction
3125
+  (0.0ms) rollback transaction
3126
+  (0.0ms) begin transaction
3127
+  (0.0ms) rollback transaction
3128
+  (0.0ms) begin transaction
3129
+  (0.0ms) rollback transaction
3130
+  (0.0ms) begin transaction
3131
+  (0.0ms) rollback transaction
3132
+  (0.0ms) begin transaction
3133
+  (0.0ms) rollback transaction
3134
+  (0.0ms) begin transaction
3135
+  (0.0ms) rollback transaction
3136
+  (0.0ms) begin transaction
3137
+  (0.0ms) rollback transaction
3138
+  (0.0ms) begin transaction
3139
+  (0.0ms) rollback transaction
3140
+  (0.0ms) begin transaction
3141
+  (0.0ms) rollback transaction
3142
+  (0.0ms) begin transaction
3143
+  (0.0ms) rollback transaction
3144
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3145
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3146
+ Connecting to database specified by database.yml
3147
+  (0.3ms) begin transaction
3148
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3149
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
3150
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
3151
+  (0.1ms) rollback transaction
3152
+  (0.0ms) begin transaction
3153
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3154
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3155
+  (0.0ms) rollback transaction
3156
+  (0.0ms) begin transaction
3157
+ Processing by LtiProvider::LtiController#configure as XML
3158
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3159
+  (0.0ms) rollback transaction
3160
+  (0.0ms) begin transaction
3161
+  (0.0ms) SAVEPOINT active_record_1
3162
+ 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]]
3163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3164
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3165
+ Parameters: {"nonce"=>"abcd"}
3166
+ 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
3167
+  (0.0ms) SAVEPOINT active_record_1
3168
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3170
+ Redirected to http://test.host/
3171
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
3172
+  (0.9ms) rollback transaction
3173
+  (0.0ms) begin transaction
3174
+  (0.0ms) SAVEPOINT active_record_1
3175
+ 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]]
3176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3177
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3178
+ Parameters: {"nonce"=>"abcd"}
3179
+ 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
3180
+  (0.0ms) SAVEPOINT active_record_1
3181
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3183
+ Redirected to http://test.host/
3184
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
3185
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
3186
+  (0.9ms) rollback transaction
3187
+  (0.0ms) begin transaction
3188
+  (0.0ms) SAVEPOINT active_record_1
3189
+ 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]]
3190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3191
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3192
+ Parameters: {"nonce"=>"invalid"}
3193
+ 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
3194
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
3195
+  (1.4ms) rollback transaction
3196
+  (0.0ms) begin transaction
3197
+  (0.0ms) SAVEPOINT active_record_1
3198
+ 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]]
3199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3200
+  (0.0ms) SAVEPOINT active_record_1
3201
+  (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" = '---
3202
+ custom_canvas_course_id: 1
3203
+ custom_canvas_user_id: 2
3204
+ tool_consumer_instance_guid: 123abc
3205
+ ' WHERE "lti_provider_launches"."id" = 1
3206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3207
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3208
+ Parameters: {"nonce"=>"abcd"}
3209
+ 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
3210
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3211
+  (0.8ms) rollback transaction
3212
+  (0.0ms) begin transaction
3213
+ Processing by LtiProvider::LtiController#launch as HTML
3214
+ 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="}
3215
+  (0.7ms) SAVEPOINT active_record_1
3216
+ 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]]
3217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3218
+ Redirected to http://test.host/cookie_test?nonce=0OMFn3o0oNqaaDvQbrO7wuCb5wuQBtQHpX0ET5wDaxg
3219
+ Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
3220
+  (0.6ms) rollback transaction
3221
+  (0.1ms) begin transaction
3222
+ Processing by LtiProvider::LtiController#launch as HTML
3223
+ 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="}
3224
+  (0.0ms) SAVEPOINT active_record_1
3225
+ 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]]
3226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3227
+ Redirected to http://test.host/cookie_test?nonce=qDPxPJHIcTBPyi8fgSMOjvm5dCfMdhP3roWEA5bA
3228
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
3229
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3230
+  (0.8ms) rollback transaction
3231
+  (0.0ms) begin transaction
3232
+ Processing by LtiProvider::LtiController#launch as HTML
3233
+ 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="}
3234
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3235
+  (0.1ms) rollback transaction
3236
+  (0.0ms) begin transaction
3237
+ Processing by LtiProvider::LtiController#launch as HTML
3238
+ 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="}
3239
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3240
+  (0.0ms) rollback transaction
3241
+  (0.0ms) begin transaction
3242
+  (0.0ms) rollback transaction
3243
+  (0.0ms) begin transaction
3244
+  (0.0ms) rollback transaction
3245
+  (0.0ms) begin transaction
3246
+  (0.0ms) rollback transaction
3247
+  (0.0ms) begin transaction
3248
+  (0.0ms) rollback transaction
3249
+  (0.0ms) begin transaction
3250
+  (0.0ms) rollback transaction
3251
+  (0.0ms) begin transaction
3252
+  (0.0ms) rollback transaction
3253
+  (0.0ms) begin transaction
3254
+  (0.0ms) rollback transaction
3255
+  (0.0ms) begin transaction
3256
+  (0.0ms) rollback transaction
3257
+  (0.0ms) begin transaction
3258
+  (0.0ms) rollback transaction
3259
+  (0.0ms) begin transaction
3260
+  (0.0ms) rollback transaction
3261
+  (0.0ms) begin transaction
3262
+  (0.0ms) rollback transaction
3263
+  (0.0ms) begin transaction
3264
+  (0.0ms) rollback transaction
3265
+  (0.1ms) begin transaction
3266
+  (0.0ms) rollback transaction
3267
+  (0.0ms) begin transaction
3268
+  (0.0ms) rollback transaction
3269
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3270
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3271
+ Connecting to database specified by database.yml
3272
+  (0.3ms) begin transaction
3273
+  (0.1ms) rollback transaction
3274
+  (0.0ms) begin transaction
3275
+  (0.0ms) rollback transaction
3276
+  (0.0ms) begin transaction
3277
+  (0.0ms) rollback transaction
3278
+  (0.0ms) begin transaction
3279
+  (0.0ms) rollback transaction
3280
+  (0.0ms) begin transaction
3281
+  (0.0ms) rollback transaction
3282
+  (0.0ms) begin transaction
3283
+  (0.1ms) rollback transaction
3284
+  (0.0ms) begin transaction
3285
+  (0.0ms) rollback transaction
3286
+  (0.0ms) begin transaction
3287
+  (0.0ms) rollback transaction
3288
+  (0.0ms) begin transaction
3289
+  (0.0ms) rollback transaction
3290
+  (0.0ms) begin transaction
3291
+  (0.0ms) rollback transaction
3292
+  (0.0ms) begin transaction
3293
+  (0.0ms) rollback transaction
3294
+  (0.0ms) begin transaction
3295
+  (0.0ms) rollback transaction
3296
+  (0.0ms) begin transaction
3297
+  (0.0ms) rollback transaction
3298
+  (0.0ms) begin transaction
3299
+  (0.0ms) rollback transaction
3300
+  (0.0ms) begin transaction
3301
+  (0.0ms) SAVEPOINT active_record_1
3302
+ 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]]
3303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3304
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3305
+ Parameters: {"nonce"=>"invalid"}
3306
+ 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
3307
+ Rendered text template (0.0ms)
3308
+ Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.1ms)
3309
+  (0.9ms) rollback transaction
3310
+  (0.0ms) begin transaction
3311
+  (0.0ms) SAVEPOINT active_record_1
3312
+ 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]]
3313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3314
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3315
+ Parameters: {"nonce"=>"abcd"}
3316
+ 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
3317
+  (0.0ms) SAVEPOINT active_record_1
3318
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3320
+ Redirected to http://test.host/
3321
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
3322
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
3323
+  (0.7ms) rollback transaction
3324
+  (0.0ms) begin transaction
3325
+  (0.0ms) SAVEPOINT active_record_1
3326
+ 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]]
3327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3328
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3329
+ Parameters: {"nonce"=>"abcd"}
3330
+ 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
3331
+  (0.0ms) SAVEPOINT active_record_1
3332
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3334
+ Redirected to http://test.host/
3335
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
3336
+  (0.6ms) rollback transaction
3337
+  (0.0ms) begin transaction
3338
+  (0.0ms) SAVEPOINT active_record_1
3339
+ 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]]
3340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3341
+  (0.0ms) SAVEPOINT active_record_1
3342
+  (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" = '---
3343
+ custom_canvas_course_id: 1
3344
+ custom_canvas_user_id: 2
3345
+ tool_consumer_instance_guid: 123abc
3346
+ ' WHERE "lti_provider_launches"."id" = 1
3347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3348
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3349
+ Parameters: {"nonce"=>"abcd"}
3350
+ 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
3351
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3352
+  (0.7ms) rollback transaction
3353
+  (0.0ms) begin transaction
3354
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3355
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
3356
+  (0.0ms) rollback transaction
3357
+  (0.0ms) begin transaction
3358
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3359
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3360
+  (0.0ms) rollback transaction
3361
+  (0.0ms) begin transaction
3362
+ Processing by LtiProvider::LtiController#launch as HTML
3363
+ 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="}
3364
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3365
+  (0.1ms) rollback transaction
3366
+  (0.0ms) begin transaction
3367
+ Processing by LtiProvider::LtiController#launch as HTML
3368
+ 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="}
3369
+  (0.0ms) SAVEPOINT active_record_1
3370
+ 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]]
3371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3372
+ Redirected to http://test.host/cookie_test?nonce=GYxmxMyqwuKpUEISQOsm6IlFA4rChzjrf0sklXrK36c
3373
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
3374
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3375
+  (0.9ms) rollback transaction
3376
+  (0.0ms) begin transaction
3377
+ Processing by LtiProvider::LtiController#launch as HTML
3378
+ 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="}
3379
+  (0.0ms) SAVEPOINT active_record_1
3380
+ 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]]
3381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3382
+ Redirected to http://test.host/cookie_test?nonce=EmiSkjaIejI2FfRz5Kl0dzRV1dQWWmeFXVrVl4X4
3383
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
3384
+  (0.9ms) rollback transaction
3385
+  (0.0ms) begin transaction
3386
+ Processing by LtiProvider::LtiController#launch as HTML
3387
+ 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="}
3388
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3389
+  (0.1ms) rollback transaction
3390
+  (0.0ms) begin transaction
3391
+ Processing by LtiProvider::LtiController#configure as XML
3392
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3393
+  (0.0ms) rollback transaction
3394
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3395
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3396
+ Connecting to database specified by database.yml
3397
+  (0.3ms) begin transaction
3398
+ Processing by LtiProvider::LtiController#launch as HTML
3399
+ 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="}
3400
+ Rendered text template (0.0ms)
3401
+ Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 1.5ms)
3402
+  (0.1ms) rollback transaction
3403
+  (0.0ms) begin transaction
3404
+ Processing by LtiProvider::LtiController#launch as HTML
3405
+ 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="}
3406
+  (0.0ms) SAVEPOINT active_record_1
3407
+ 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]]
3408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3409
+ Redirected to http://test.host/cookie_test?nonce=I1qu0K55izKbysRT9MqVhihxLK8Gvr07z1ca4Lkypk
3410
+ Completed 302 Found in 11ms (ActiveRecord: 4.2ms)
3411
+  (1.5ms) rollback transaction
3412
+  (0.1ms) begin transaction
3413
+ Processing by LtiProvider::LtiController#launch as HTML
3414
+ 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="}
3415
+  (0.1ms) SAVEPOINT active_record_1
3416
+ 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]]
3417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3418
+ Redirected to http://test.host/cookie_test?nonce=6bvKQ1ykX5TiZCOSV94xZP3ve8ZTNliO3q0Bym6uhno
3419
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
3420
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3421
+  (0.5ms) rollback transaction
3422
+  (0.0ms) begin transaction
3423
+ Processing by LtiProvider::LtiController#launch as HTML
3424
+ 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="}
3425
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3426
+  (0.0ms) rollback transaction
3427
+  (0.0ms) begin transaction
3428
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3429
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
3430
+  (0.0ms) rollback transaction
3431
+  (0.0ms) begin transaction
3432
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3433
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3434
+  (0.0ms) rollback transaction
3435
+  (0.0ms) begin transaction
3436
+ Processing by LtiProvider::LtiController#configure as XML
3437
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3438
+  (0.0ms) rollback transaction
3439
+  (0.0ms) begin transaction
3440
+  (0.0ms) SAVEPOINT active_record_1
3441
+ 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]]
3442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3443
+  (0.0ms) SAVEPOINT active_record_1
3444
+  (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" = '---
3445
+ custom_canvas_course_id: 1
3446
+ custom_canvas_user_id: 2
3447
+ tool_consumer_instance_guid: 123abc
3448
+ ' WHERE "lti_provider_launches"."id" = 1
3449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3450
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3451
+ Parameters: {"nonce"=>"abcd"}
3452
+ 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
3453
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
3454
+  (0.9ms) rollback transaction
3455
+  (0.1ms) begin transaction
3456
+  (0.0ms) SAVEPOINT active_record_1
3457
+ 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]]
3458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3459
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3460
+ Parameters: {"nonce"=>"abcd"}
3461
+ 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
3462
+  (0.0ms) SAVEPOINT active_record_1
3463
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3465
+ Redirected to http://test.host/
3466
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
3467
+  (0.6ms) rollback transaction
3468
+  (0.0ms) begin transaction
3469
+  (0.0ms) SAVEPOINT active_record_1
3470
+ 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]]
3471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3472
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3473
+ Parameters: {"nonce"=>"abcd"}
3474
+ 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
3475
+  (0.0ms) SAVEPOINT active_record_1
3476
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3478
+ Redirected to http://test.host/
3479
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
3480
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
3481
+  (0.7ms) rollback transaction
3482
+  (0.0ms) begin transaction
3483
+  (0.0ms) SAVEPOINT active_record_1
3484
+ 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]]
3485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3486
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3487
+ Parameters: {"nonce"=>"invalid"}
3488
+ 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
3489
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3490
+  (0.9ms) rollback transaction
3491
+  (0.0ms) begin transaction
3492
+  (0.0ms) rollback transaction
3493
+  (0.0ms) begin transaction
3494
+  (0.0ms) rollback transaction
3495
+  (0.0ms) begin transaction
3496
+  (0.0ms) rollback transaction
3497
+  (0.0ms) begin transaction
3498
+  (0.0ms) rollback transaction
3499
+  (0.0ms) begin transaction
3500
+  (0.0ms) rollback transaction
3501
+  (0.0ms) begin transaction
3502
+  (0.0ms) rollback transaction
3503
+  (0.0ms) begin transaction
3504
+  (0.0ms) rollback transaction
3505
+  (0.0ms) begin transaction
3506
+  (0.0ms) rollback transaction
3507
+  (0.0ms) begin transaction
3508
+  (0.0ms) rollback transaction
3509
+  (0.0ms) begin transaction
3510
+  (0.1ms) rollback transaction
3511
+  (0.0ms) begin transaction
3512
+  (0.0ms) rollback transaction
3513
+  (0.1ms) begin transaction
3514
+  (0.0ms) rollback transaction
3515
+  (0.0ms) begin transaction
3516
+  (0.0ms) rollback transaction
3517
+  (0.0ms) begin transaction
3518
+  (0.0ms) rollback transaction
3519
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3520
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3521
+ Connecting to database specified by database.yml
3522
+  (0.3ms) begin transaction
3523
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3524
+ Rendered /Users/simonista/Instructure/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb within layouts/lti_provider/application (0.2ms)
3525
+ Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
3526
+  (0.1ms) rollback transaction
3527
+  (0.1ms) begin transaction
3528
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3529
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3530
+  (0.0ms) rollback transaction
3531
+  (0.0ms) begin transaction
3532
+  (0.0ms) SAVEPOINT active_record_1
3533
+ 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]]
3534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3535
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3536
+ Parameters: {"nonce"=>"abcd"}
3537
+ 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
3538
+  (0.0ms) SAVEPOINT active_record_1
3539
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3541
+ Redirected to http://test.host/
3542
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
3543
+  (1.2ms) rollback transaction
3544
+  (0.0ms) begin transaction
3545
+  (0.0ms) SAVEPOINT active_record_1
3546
+ 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]]
3547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3548
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3549
+ Parameters: {"nonce"=>"abcd"}
3550
+ 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
3551
+  (0.0ms) SAVEPOINT active_record_1
3552
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3554
+ Redirected to http://test.host/
3555
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
3556
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"
3557
+  (0.9ms) rollback transaction
3558
+  (0.1ms) begin transaction
3559
+  (0.1ms) SAVEPOINT active_record_1
3560
+ 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]]
3561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3562
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3563
+ Parameters: {"nonce"=>"invalid"}
3564
+ 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
3565
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
3566
+  (0.7ms) rollback transaction
3567
+  (0.0ms) begin transaction
3568
+  (0.0ms) SAVEPOINT active_record_1
3569
+ 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]]
3570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3571
+  (0.0ms) SAVEPOINT active_record_1
3572
+  (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" = '---
3573
+ custom_canvas_course_id: 1
3574
+ custom_canvas_user_id: 2
3575
+ tool_consumer_instance_guid: 123abc
3576
+ ' WHERE "lti_provider_launches"."id" = 1
3577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3578
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3579
+ Parameters: {"nonce"=>"abcd"}
3580
+ 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
3581
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
3582
+  (0.6ms) rollback transaction
3583
+  (0.0ms) begin transaction
3584
+ Processing by LtiProvider::LtiController#launch as HTML
3585
+ 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="}
3586
+  (0.1ms) SAVEPOINT active_record_1
3587
+ 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]]
3588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3589
+ Redirected to http://test.host/cookie_test?nonce=ZIxFYi5aiDyKrlMEAglQoJp6IsmI2Eno10kfvDEapbQ
3590
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
3591
+  (0.9ms) rollback transaction
3592
+  (0.4ms) begin transaction
3593
+ Processing by LtiProvider::LtiController#launch as HTML
3594
+ 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="}
3595
+  (0.0ms) SAVEPOINT active_record_1
3596
+ 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]]
3597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3598
+ Redirected to http://test.host/cookie_test?nonce=ek6RtczdrL5e0KoYNMcGUQ8wnGVw4ZHfmoleL4jd8
3599
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
3600
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3601
+  (0.7ms) rollback transaction
3602
+  (0.1ms) begin transaction
3603
+ Processing by LtiProvider::LtiController#launch as HTML
3604
+ 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="}
3605
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3606
+  (0.1ms) rollback transaction
3607
+  (0.0ms) begin transaction
3608
+ Processing by LtiProvider::LtiController#launch as HTML
3609
+ 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="}
3610
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3611
+  (0.1ms) rollback transaction
3612
+  (0.1ms) begin transaction
3613
+ Processing by LtiProvider::LtiController#configure as XML
3614
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3615
+  (0.1ms) rollback transaction
3616
+  (0.0ms) begin transaction
3617
+  (0.0ms) rollback transaction
3618
+  (0.0ms) begin transaction
3619
+  (0.0ms) rollback transaction
3620
+  (0.0ms) begin transaction
3621
+  (0.0ms) rollback transaction
3622
+  (0.0ms) begin transaction
3623
+  (0.0ms) rollback transaction
3624
+  (0.0ms) begin transaction
3625
+  (0.0ms) rollback transaction
3626
+  (0.0ms) begin transaction
3627
+  (0.0ms) rollback transaction
3628
+  (0.0ms) begin transaction
3629
+  (0.0ms) rollback transaction
3630
+  (0.0ms) begin transaction
3631
+  (0.0ms) rollback transaction
3632
+  (0.0ms) begin transaction
3633
+  (0.0ms) rollback transaction
3634
+  (0.0ms) begin transaction
3635
+  (0.0ms) rollback transaction
3636
+  (0.0ms) begin transaction
3637
+  (0.0ms) rollback transaction
3638
+  (0.0ms) begin transaction
3639
+  (0.1ms) rollback transaction
3640
+  (0.0ms) begin transaction
3641
+  (0.0ms) rollback transaction
3642
+  (0.0ms) begin transaction
3643
+  (0.0ms) rollback transaction