two_factor_auth 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +634 -0
  3. data/Rakefile +34 -0
  4. data/app/assets/javascripts/two_factor_auth/application.js +13 -0
  5. data/app/assets/stylesheets/two_factor_auth/application.css +15 -0
  6. data/app/controllers/two_factor_auth/authentications_controller.rb +32 -0
  7. data/app/controllers/two_factor_auth/registrations_controller.rb +29 -0
  8. data/app/controllers/two_factor_auth/trusted_facets_controller.rb +10 -0
  9. data/app/controllers/two_factor_auth/two_factor_auth_controller.rb +19 -0
  10. data/app/helpers/two_factor_auth/application_helper.rb +21 -0
  11. data/app/helpers/two_factor_auth/authentications_helper.rb +17 -0
  12. data/app/helpers/two_factor_auth/registrations_helper.rb +17 -0
  13. data/app/models/two_factor_auth/authentication_client_data.rb +11 -0
  14. data/app/models/two_factor_auth/authentication_request.rb +30 -0
  15. data/app/models/two_factor_auth/authentication_response.rb +49 -0
  16. data/app/models/two_factor_auth/authentication_verifier.rb +68 -0
  17. data/app/models/two_factor_auth/client_data.rb +57 -0
  18. data/app/models/two_factor_auth/registration.rb +18 -0
  19. data/app/models/two_factor_auth/registration_request.rb +33 -0
  20. data/app/models/two_factor_auth/registration_response.rb +91 -0
  21. data/app/models/two_factor_auth/registration_verifier.rb +91 -0
  22. data/app/views/layouts/two_factor_auth/application.html.erb +16 -0
  23. data/app/views/two_factor_auth/authentications/new.html.erb +30 -0
  24. data/app/views/two_factor_auth/registrations/new.html.erb +26 -0
  25. data/config/routes.rb +3 -0
  26. data/lib/generators/templates/README +6 -0
  27. data/lib/generators/templates/initializer.rb +38 -0
  28. data/lib/generators/templates/migration.rb +15 -0
  29. data/lib/generators/two_factor_auth/install_generator.rb +32 -0
  30. data/lib/tasks/two_factor_auth_tasks.rake +13 -0
  31. data/lib/two_factor_auth/authentication_hook.rb +18 -0
  32. data/lib/two_factor_auth/engine.rb +5 -0
  33. data/lib/two_factor_auth/registration_hook.rb +17 -0
  34. data/lib/two_factor_auth/version.rb +3 -0
  35. data/lib/two_factor_auth.rb +155 -0
  36. data/test/controllers/two_factor_auth/authentications_controller_test.rb +70 -0
  37. data/test/controllers/two_factor_auth/registrations_controller_test.rb +57 -0
  38. data/test/controllers/two_factor_auth/trusted_facets_controller_test.rb +17 -0
  39. data/test/dummy/README.rdoc +28 -0
  40. data/test/dummy/Rakefile +6 -0
  41. data/test/dummy/app/assets/javascripts/application.js +13 -0
  42. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  43. data/test/dummy/app/controllers/application_controller.rb +5 -0
  44. data/test/dummy/app/controllers/secrets_controller.rb +3 -0
  45. data/test/dummy/app/helpers/application_helper.rb +2 -0
  46. data/test/dummy/app/models/user.rb +8 -0
  47. data/test/dummy/app/views/layouts/application.html.erb +16 -0
  48. data/test/dummy/app/views/secrets/index.html.erb +10 -0
  49. data/test/dummy/bin/bundle +3 -0
  50. data/test/dummy/bin/rails +4 -0
  51. data/test/dummy/bin/rake +4 -0
  52. data/test/dummy/config/application.rb +24 -0
  53. data/test/dummy/config/boot.rb +5 -0
  54. data/test/dummy/config/database.yml +25 -0
  55. data/test/dummy/config/environment.rb +5 -0
  56. data/test/dummy/config/environments/development.rb +37 -0
  57. data/test/dummy/config/environments/production.rb +78 -0
  58. data/test/dummy/config/environments/test.rb +39 -0
  59. data/test/dummy/config/initializers/assets.rb +8 -0
  60. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  61. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  62. data/test/dummy/config/initializers/devise.rb +259 -0
  63. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/test/dummy/config/initializers/inflections.rb +16 -0
  65. data/test/dummy/config/initializers/mime_types.rb +4 -0
  66. data/test/dummy/config/initializers/session_store.rb +3 -0
  67. data/test/dummy/config/initializers/two_factor_auth.rb +38 -0
  68. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  69. data/test/dummy/config/locales/devise.en.yml +60 -0
  70. data/test/dummy/config/locales/en.yml +23 -0
  71. data/test/dummy/config/routes.rb +5 -0
  72. data/test/dummy/config/secrets.yml +22 -0
  73. data/test/dummy/config.ru +4 -0
  74. data/test/dummy/db/development.sqlite3 +0 -0
  75. data/test/dummy/db/migrate/20141026231953_devise_create_users.rb +42 -0
  76. data/test/dummy/db/migrate/20141224135949_create_two_factor_auth_registrations.rb +15 -0
  77. data/test/dummy/db/schema.rb +50 -0
  78. data/test/dummy/db/test.sqlite3 +0 -0
  79. data/test/dummy/log/development.log +198 -0
  80. data/test/dummy/log/test.log +3490 -0
  81. data/test/dummy/public/404.html +67 -0
  82. data/test/dummy/public/422.html +67 -0
  83. data/test/dummy/public/500.html +66 -0
  84. data/test/dummy/public/favicon.ico +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  91. data/test/helpers/two_factor_auth/authentication_helper_test.rb +54 -0
  92. data/test/helpers/two_factor_auth/registrations_helper_test.rb +34 -0
  93. data/test/integration/navigation_test.rb +10 -0
  94. data/test/lib/two_factor_auth_test.rb +169 -0
  95. data/test/models/two_factor_auth/authentication_request_test.rb +35 -0
  96. data/test/models/two_factor_auth/authentication_response_test.rb +44 -0
  97. data/test/models/two_factor_auth/authentication_verifier_test.rb +83 -0
  98. data/test/models/two_factor_auth/client_data_test.rb +79 -0
  99. data/test/models/two_factor_auth/registration_request_test.rb +29 -0
  100. data/test/models/two_factor_auth/registration_response_test.rb +87 -0
  101. data/test/models/two_factor_auth/registration_verifier_test.rb +96 -0
  102. data/test/test_helper.rb +43 -0
  103. metadata +351 -0
@@ -0,0 +1,3490 @@
1
+  (0.1ms) begin transaction
2
+ ------------------------------------------------------------------------------------
3
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
4
+ ------------------------------------------------------------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ---------------------------------------------------------------------------------------------------------------------------
8
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
9
+ ---------------------------------------------------------------------------------------------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ ---------------------------------------------------------------------------------------
13
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
14
+ ---------------------------------------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ -----------------------------------------------------------------------------------------
18
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
19
+ -----------------------------------------------------------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ -------------------------------------------------------------------------------------------------------------------------
23
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
24
+ -------------------------------------------------------------------------------------------------------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ------------------------------------------------------------------------------------------------------------------
28
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
29
+ ------------------------------------------------------------------------------------------------------------------
30
+  (0.1ms) rollback transaction
31
+  (0.2ms) begin transaction
32
+ -------------------------------------------------------------------------------------------------------------------
33
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
34
+ -------------------------------------------------------------------------------------------------------------------
35
+  (0.1ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ --------------------------------------------------------------------------------------
38
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
39
+ --------------------------------------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ -------------------------------------------------------------------------------------------------------------------
43
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
44
+ -------------------------------------------------------------------------------------------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ ---------------------------------------------------------------------------------------------------------------------
48
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
49
+ ---------------------------------------------------------------------------------------------------------------------
50
+  (0.2ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ----------------------------------------------------------------------------------------------------------------------
53
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
54
+ ----------------------------------------------------------------------------------------------------------------------
55
+ SQL (0.2ms) DELETE FROM "users"
56
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
57
+  (0.1ms) rollback transaction
58
+  (0.1ms) begin transaction
59
+ -------------------------------------------------------------------------------------------------
60
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
61
+ -------------------------------------------------------------------------------------------------
62
+  (0.1ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+ ----------------------------------------------------------------------------------------------------------
65
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
66
+ ----------------------------------------------------------------------------------------------------------
67
+  (0.0ms) rollback transaction
68
+  (0.1ms) begin transaction
69
+ -------------------------------------------------------------------------------------------------------
70
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
71
+ -------------------------------------------------------------------------------------------------------
72
+ SQL (0.2ms) DELETE FROM "users"
73
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
74
+  (0.1ms) rollback transaction
75
+  (0.0ms) begin transaction
76
+ --------------------------------------------------------------------------------------------------------------
77
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
78
+ --------------------------------------------------------------------------------------------------------------
79
+ SQL (0.1ms) DELETE FROM "users"
80
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
81
+  (0.0ms) rollback transaction
82
+  (0.1ms) begin transaction
83
+ ------------------------------------------------------------------------------------
84
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
85
+ ------------------------------------------------------------------------------------
86
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
87
+ Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
88
+  (0.1ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ ----------------------------------------------------------------------
91
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
92
+ ----------------------------------------------------------------------
93
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
94
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ---------------------------------------------------------------------------------------
98
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
99
+ ---------------------------------------------------------------------------------------
100
+  (0.1ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+ -------------------------------------------------------------------------------------------------
103
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
104
+ -------------------------------------------------------------------------------------------------
105
+  (0.1ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+ ----------------------------------------------------------------------------------------------------------
108
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
109
+ ----------------------------------------------------------------------------------------------------------
110
+  (0.0ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ ------------------------------------------------------------------------------------
113
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
114
+ ------------------------------------------------------------------------------------
115
+  (0.0ms) rollback transaction
116
+  (0.1ms) begin transaction
117
+ ----------------------------------------------------------------------------------------------------------------------
118
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
119
+ ----------------------------------------------------------------------------------------------------------------------
120
+ SQL (0.2ms) DELETE FROM "users"
121
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
122
+  (0.1ms) rollback transaction
123
+  (0.1ms) begin transaction
124
+ ---------------------------------------------------------------------------------------------------------------------------
125
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
126
+ ---------------------------------------------------------------------------------------------------------------------------
127
+  (0.0ms) rollback transaction
128
+  (0.1ms) begin transaction
129
+ -------------------------------------------------------------------------------------------------------------------------
130
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
131
+ -------------------------------------------------------------------------------------------------------------------------
132
+  (0.0ms) rollback transaction
133
+  (0.1ms) begin transaction
134
+ -------------------------------------------------------------------------------------------------------------------
135
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
136
+ -------------------------------------------------------------------------------------------------------------------
137
+  (0.0ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+ -------------------------------------------------------------------------------------------------------
140
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
141
+ -------------------------------------------------------------------------------------------------------
142
+ SQL (0.2ms) DELETE FROM "users"
143
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
144
+  (0.0ms) rollback transaction
145
+  (0.0ms) begin transaction
146
+ --------------------------------------------------------------------------------------------------------------
147
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
148
+ --------------------------------------------------------------------------------------------------------------
149
+ SQL (0.1ms) DELETE FROM "users"
150
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
151
+  (0.0ms) rollback transaction
152
+  (0.1ms) begin transaction
153
+ ------------------------------------------------------------------------------------------------------------------
154
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
155
+ ------------------------------------------------------------------------------------------------------------------
156
+  (0.0ms) rollback transaction
157
+  (0.1ms) begin transaction
158
+ ---------------------------------------------------------------------------------------------------------------------
159
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
160
+ ---------------------------------------------------------------------------------------------------------------------
161
+  (0.1ms) rollback transaction
162
+  (0.1ms) begin transaction
163
+ ------------------------------------------------------------------------------------
164
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
165
+ ------------------------------------------------------------------------------------
166
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
167
+ Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)
168
+  (0.1ms) rollback transaction
169
+  (0.0ms) begin transaction
170
+ ----------------------------------------------------------------------
171
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
172
+ ----------------------------------------------------------------------
173
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
174
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
175
+  (0.1ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ -----------------------------------------------------------------------------------------
178
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
179
+ -----------------------------------------------------------------------------------------
180
+  (0.1ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+ --------------------------------------------------------------------------------------
183
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
184
+ --------------------------------------------------------------------------------------
185
+  (0.0ms) rollback transaction
186
+  (0.0ms) begin transaction
187
+ -------------------------------------------------------------------------------------------------------------------
188
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
189
+ -------------------------------------------------------------------------------------------------------------------
190
+  (0.0ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ ---------------------------------------------------------------------------------------------------------------------------
193
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
194
+ ---------------------------------------------------------------------------------------------------------------------------
195
+  (0.0ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+ ------------------------------------------------------------------------------------------------------------------
198
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
199
+ ------------------------------------------------------------------------------------------------------------------
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ ---------------------------------------------------------------------------------------------------------------------
203
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
204
+ ---------------------------------------------------------------------------------------------------------------------
205
+  (0.0ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ -------------------------------------------------------------------------------------------------------
208
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
209
+ -------------------------------------------------------------------------------------------------------
210
+ SQL (0.2ms) DELETE FROM "users"
211
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+ --------------------------------------------------------------------------------------------------------------
215
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
216
+ --------------------------------------------------------------------------------------------------------------
217
+ SQL (0.1ms) DELETE FROM "users"
218
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
219
+  (0.0ms) rollback transaction
220
+  (0.1ms) begin transaction
221
+ -----------------------------------------------------------------------------------------
222
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
223
+ -----------------------------------------------------------------------------------------
224
+  (0.0ms) rollback transaction
225
+  (0.1ms) begin transaction
226
+ -------------------------------------------------------------------------------------------------
227
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
228
+ -------------------------------------------------------------------------------------------------
229
+  (0.1ms) rollback transaction
230
+  (0.1ms) begin transaction
231
+ ----------------------------------------------------------------------------------------------------------
232
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
233
+ ----------------------------------------------------------------------------------------------------------
234
+  (0.1ms) rollback transaction
235
+  (0.1ms) begin transaction
236
+ ---------------------------------------------------------------------------------------
237
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
238
+ ---------------------------------------------------------------------------------------
239
+  (0.0ms) rollback transaction
240
+  (0.1ms) begin transaction
241
+ ------------------------------------------------------------------------------------
242
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
243
+ ------------------------------------------------------------------------------------
244
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
245
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
246
+  (0.1ms) rollback transaction
247
+  (0.1ms) begin transaction
248
+ ----------------------------------------------------------------------
249
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
250
+ ----------------------------------------------------------------------
251
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
252
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
253
+  (0.1ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+ -------------------------------------------------------------------------------------------------------------------------
256
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
257
+ -------------------------------------------------------------------------------------------------------------------------
258
+  (0.0ms) rollback transaction
259
+  (0.1ms) begin transaction
260
+ ----------------------------------------------------------------------------------------------------------------------
261
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
262
+ ----------------------------------------------------------------------------------------------------------------------
263
+ SQL (0.2ms) DELETE FROM "users"
264
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
265
+  (0.0ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+ ------------------------------------------------------------------------------------
268
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
269
+ ------------------------------------------------------------------------------------
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+ --------------------------------------------------------------------------------------
273
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
274
+ --------------------------------------------------------------------------------------
275
+  (0.1ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ -------------------------------------------------------------------------------------------------------------------
278
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
279
+ -------------------------------------------------------------------------------------------------------------------
280
+  (0.1ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ -------------------------------------------------------------------------------------------------------------------
283
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
284
+ -------------------------------------------------------------------------------------------------------------------
285
+  (0.0ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+ --------------------------------------------------------------------------------------
288
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
289
+ --------------------------------------------------------------------------------------
290
+  (0.1ms) rollback transaction
291
+  (0.0ms) begin transaction
292
+ -------------------------------------------------------------------------------------------------------------------
293
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
294
+ -------------------------------------------------------------------------------------------------------------------
295
+  (0.0ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+ ---------------------------------------------------------------------------------------------------------------------
298
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
299
+ ---------------------------------------------------------------------------------------------------------------------
300
+  (0.0ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ -------------------------------------------------------------------------------------------------------------------------
303
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
304
+ -------------------------------------------------------------------------------------------------------------------------
305
+  (0.0ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+ ------------------------------------------------------------------------------------
308
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
309
+ ------------------------------------------------------------------------------------
310
+  (0.0ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+ -------------------------------------------------------------------------------------------------------------------
313
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
314
+ -------------------------------------------------------------------------------------------------------------------
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ ------------------------------------------------------------------------------------
318
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
319
+ ------------------------------------------------------------------------------------
320
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
321
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
322
+  (0.1ms) rollback transaction
323
+  (0.0ms) begin transaction
324
+ ----------------------------------------------------------------------
325
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
326
+ ----------------------------------------------------------------------
327
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
328
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
329
+  (0.1ms) rollback transaction
330
+  (0.1ms) begin transaction
331
+ -------------------------------------------------------------------------------------------------------
332
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
333
+ -------------------------------------------------------------------------------------------------------
334
+ SQL (0.2ms) DELETE FROM "users"
335
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
336
+  (0.0ms) rollback transaction
337
+  (0.0ms) begin transaction
338
+ --------------------------------------------------------------------------------------------------------------
339
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
340
+ --------------------------------------------------------------------------------------------------------------
341
+ SQL (0.1ms) DELETE FROM "users"
342
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
343
+  (0.1ms) rollback transaction
344
+  (0.1ms) begin transaction
345
+ ---------------------------------------------------------------------------------------
346
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
347
+ ---------------------------------------------------------------------------------------
348
+  (0.1ms) rollback transaction
349
+  (0.1ms) begin transaction
350
+ -----------------------------------------------------------------------------------------
351
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
352
+ -----------------------------------------------------------------------------------------
353
+  (0.0ms) rollback transaction
354
+  (0.1ms) begin transaction
355
+ ------------------------------------------------------------------------------------------------------------------
356
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
357
+ ------------------------------------------------------------------------------------------------------------------
358
+  (0.1ms) rollback transaction
359
+  (0.1ms) begin transaction
360
+ -------------------------------------------------------------------------------------------------
361
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
362
+ -------------------------------------------------------------------------------------------------
363
+  (0.1ms) rollback transaction
364
+  (0.1ms) begin transaction
365
+ ----------------------------------------------------------------------------------------------------------
366
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
367
+ ----------------------------------------------------------------------------------------------------------
368
+  (0.1ms) rollback transaction
369
+  (0.1ms) begin transaction
370
+ ----------------------------------------------------------------------------------------------------------------------
371
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
372
+ ----------------------------------------------------------------------------------------------------------------------
373
+ SQL (0.2ms) DELETE FROM "users"
374
+ SQLite3::SQLException: no such table: users: DELETE FROM "users"
375
+  (0.0ms) rollback transaction
376
+  (0.1ms) begin transaction
377
+ ---------------------------------------------------------------------------------------------------------------------------
378
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
379
+ ---------------------------------------------------------------------------------------------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (40.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
382
+  (0.1ms) select sqlite_version(*)
383
+  (16.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
384
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
385
+ Migrating to DeviseCreateUsers (20141026231953)
386
+  (0.1ms) begin transaction
387
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime)
388
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
389
+  (0.1ms) SELECT sql
390
+ FROM sqlite_master
391
+ WHERE name='index_users_on_email' AND type='index'
392
+ UNION ALL
393
+ SELECT sql
394
+ FROM sqlite_temp_master
395
+ WHERE name='index_users_on_email' AND type='index'
396
+
397
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
398
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141026231953"]]
399
+  (39.3ms) commit transaction
400
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
401
+  (0.1ms)  SELECT sql
402
+ FROM sqlite_master
403
+ WHERE name='index_users_on_reset_password_token' AND type='index'
404
+ UNION ALL
405
+ SELECT sql
406
+ FROM sqlite_temp_master
407
+ WHERE name='index_users_on_reset_password_token' AND type='index'
408
+ 
409
+  (0.1ms) SELECT sql
410
+ FROM sqlite_master
411
+ WHERE name='index_users_on_email' AND type='index'
412
+ UNION ALL
413
+ SELECT sql
414
+ FROM sqlite_temp_master
415
+ WHERE name='index_users_on_email' AND type='index'
416
+
417
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
418
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
419
+  (0.1ms) begin transaction
420
+ ---------------------------------------------------------------------------------------------------------------------------
421
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
422
+ ---------------------------------------------------------------------------------------------------------------------------
423
+  (0.1ms) SAVEPOINT active_record_1
424
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
425
+ Binary data inserted for `string` type on column `encrypted_password`
426
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:06.924749"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$LAoYoXAvEA8Nbd9vuQbxauNGX1d1Gjf39Ae9tpVzRhfL5Q8Kzr1iq"], ["updated_at", "2014-12-24 13:59:06.924749"]]
427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
428
+  (0.1ms) rollback transaction
429
+  (0.1ms) begin transaction
430
+ ------------------------------------------------------------------------------------
431
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
432
+ ------------------------------------------------------------------------------------
433
+  (0.1ms) SAVEPOINT active_record_1
434
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
435
+ Binary data inserted for `string` type on column `encrypted_password`
436
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:06.935611"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$mV2BaxbOqwlv1kLYKjenAO5r6ftKuZdfasgLL.vuwYgWLu/9QVFX."], ["updated_at", "2014-12-24 13:59:06.935611"]]
437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
438
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
439
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
440
+ Completed 200 OK in 40ms (Views: 30.8ms | ActiveRecord: 0.3ms)
441
+  (0.2ms) rollback transaction
442
+  (0.1ms) begin transaction
443
+ ---------------------------------------------------------------------------------------
444
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
445
+ ---------------------------------------------------------------------------------------
446
+  (0.1ms) SAVEPOINT active_record_1
447
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
448
+ Binary data inserted for `string` type on column `encrypted_password`
449
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.017404"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$fPhyNH8AISceFWI8DJM/jOQnzjzuLVP4tVzKAbbVB5Z7QaZoO7gd2"], ["updated_at", "2014-12-24 13:59:07.017404"]]
450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
451
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
452
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
453
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
454
+ Completed 406 Not Acceptable in 7ms (Views: 1.8ms | ActiveRecord: 0.2ms)
455
+  (0.2ms) rollback transaction
456
+  (0.2ms) begin transaction
457
+ -------------------------------------------------------------------------------------------------
458
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
459
+ -------------------------------------------------------------------------------------------------
460
+  (0.1ms) rollback transaction
461
+  (0.1ms) begin transaction
462
+ ----------------------------------------------------------------------------------------------------------
463
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
464
+ ----------------------------------------------------------------------------------------------------------
465
+  (0.1ms) rollback transaction
466
+  (0.1ms) begin transaction
467
+ ---------------------------------------------------------------------------------------------------------------------
468
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
469
+ ---------------------------------------------------------------------------------------------------------------------
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
472
+ Binary data inserted for `string` type on column `encrypted_password`
473
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.067166"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$niazP.bO245mQv8D6D/Ow.tQIMPdrW/StGg/dYmmdZGqKO0t.GSAi"], ["updated_at", "2014-12-24 13:59:07.067166"]]
474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
475
+  (0.1ms) rollback transaction
476
+  (0.1ms) begin transaction
477
+ ----------------------------------------------------------------------------------------------------------------------
478
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
479
+ ----------------------------------------------------------------------------------------------------------------------
480
+  (0.1ms) SAVEPOINT active_record_1
481
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
482
+ Binary data inserted for `string` type on column `encrypted_password`
483
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.075960"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$DNe1jFKZHPmb6gWqbntBregM4aO2VvhRh3pD1XMhyx.cTsdYsYv5m"], ["updated_at", "2014-12-24 13:59:07.075960"]]
484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
485
+ SQL (0.1ms) DELETE FROM "users"
486
+  (0.1ms) rollback transaction
487
+  (0.1ms) begin transaction
488
+ --------------------------------------------------------------------------------------
489
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
490
+ --------------------------------------------------------------------------------------
491
+  (0.2ms) SAVEPOINT active_record_1
492
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
493
+ Binary data inserted for `string` type on column `encrypted_password`
494
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.093293"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$L7i.d0iYtrwJAtOiGTnlgusMZ/JPiC/.iMzGhNWlyVi1rg9SCTnM6"], ["updated_at", "2014-12-24 13:59:07.093293"]]
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+  (0.1ms) rollback transaction
497
+  (0.0ms) begin transaction
498
+ -------------------------------------------------------------------------------------------------------------------
499
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
500
+ -------------------------------------------------------------------------------------------------------------------
501
+  (0.1ms) SAVEPOINT active_record_1
502
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
503
+ Binary data inserted for `string` type on column `encrypted_password`
504
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.099118"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ZVRl.0ID0NOpdSMfGTXgpe.F7Pphblg6QnBRiHRnRkhp6vcvbAfTW"], ["updated_at", "2014-12-24 13:59:07.099118"]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+  (0.1ms) rollback transaction
507
+  (0.1ms) begin transaction
508
+ -----------------------------------------------------------------------------------------
509
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
510
+ -----------------------------------------------------------------------------------------
511
+  (0.1ms) SAVEPOINT active_record_1
512
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
513
+ Binary data inserted for `string` type on column `encrypted_password`
514
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.106624"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$3Yp7VxYmLsu1CTstXBB/mu0ts2mFLdaVPtUNd/miQwk3eaLme53Dy"], ["updated_at", "2014-12-24 13:59:07.106624"]]
515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
516
+  (0.1ms) rollback transaction
517
+  (0.1ms) begin transaction
518
+ ------------------------------------------------------------------------------------------------------------------
519
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
520
+ ------------------------------------------------------------------------------------------------------------------
521
+  (0.0ms) rollback transaction
522
+  (0.1ms) begin transaction
523
+ -------------------------------------------------------------------------------------------------------------------------
524
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
525
+ -------------------------------------------------------------------------------------------------------------------------
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
528
+ Binary data inserted for `string` type on column `encrypted_password`
529
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.122037"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$nzFoR4X9PUL5prMWweHgSu19CrsNVeDe0WA6KvLLugRCUdqatMgu6"], ["updated_at", "2014-12-24 13:59:07.122037"]]
530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
531
+  (0.2ms) rollback transaction
532
+  (0.1ms) begin transaction
533
+ -------------------------------------------------------------------------------------------------------------------
534
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
535
+ -------------------------------------------------------------------------------------------------------------------
536
+  (0.1ms) SAVEPOINT active_record_1
537
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
538
+ Binary data inserted for `string` type on column `encrypted_password`
539
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.143135"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$33Fh.ehypL75LQAogOhsYOZfZ0.PJUgQX1i64jH70uNhattIXue5u"], ["updated_at", "2014-12-24 13:59:07.143135"]]
540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
+  (0.2ms) rollback transaction
542
+  (0.1ms) begin transaction
543
+ ------------------------------------------------------------------------------------
544
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
545
+ ------------------------------------------------------------------------------------
546
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
547
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
548
+  (0.1ms) rollback transaction
549
+  (0.1ms) begin transaction
550
+ ----------------------------------------------------------------------
551
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
552
+ ----------------------------------------------------------------------
553
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
554
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
555
+  (0.1ms) rollback transaction
556
+  (0.1ms) begin transaction
557
+ -------------------------------------------------------------------------------------------------------
558
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
559
+ -------------------------------------------------------------------------------------------------------
560
+  (0.1ms) SAVEPOINT active_record_1
561
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
562
+ Binary data inserted for `string` type on column `encrypted_password`
563
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.207623"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$rY0zlh6UXVFzUuhYYib9zOAJISY39tvpRW9V6R6ABU8WuPcea48FO"], ["updated_at", "2014-12-24 13:59:07.207623"]]
564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
565
+ SQL (0.1ms) DELETE FROM "users"
566
+  (0.1ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+ --------------------------------------------------------------------------------------------------------------
569
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
570
+ --------------------------------------------------------------------------------------------------------------
571
+  (0.1ms) SAVEPOINT active_record_1
572
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
573
+ Binary data inserted for `string` type on column `encrypted_password`
574
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 13:59:07.213960"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$BpxRdgAe4klc76FOWRJJZOYVHaAZnSyJzOuMvriuWLM4y5cc7dxI2"], ["updated_at", "2014-12-24 13:59:07.213960"]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+ SQL (0.1ms) DELETE FROM "users"
577
+  (0.1ms) rollback transaction
578
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
579
+ Migrating to CreateTwoFactorAuthRegistrations (20141224135949)
580
+  (0.1ms) begin transaction
581
+  (0.4ms) CREATE TABLE "two_factor_auth_registrations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login_id" integer NOT NULL, "login_type" varchar(255) NOT NULL, "key_handle" blob(65) NOT NULL, "public_key" blob(10240) NOT NULL, "certificate" blob(1048576) DEFAULT x'' NOT NULL, "counter" integer(5) DEFAULT 0 NOT NULL, "last_authenticated_at" datetime NOT NULL, "created_at" datetime, "updated_at" datetime) 
582
+  (0.1ms) select sqlite_version(*)
583
+  (0.2ms) CREATE INDEX "index_two_factor_auth_registrations_on_login_id_and_login_type" ON "two_factor_auth_registrations" ("login_id", "login_type")
584
+  (0.1ms) SELECT sql
585
+ FROM sqlite_master
586
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
587
+ UNION ALL
588
+ SELECT sql
589
+ FROM sqlite_temp_master
590
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
591
+
592
+  (0.2ms) CREATE INDEX "index_two_factor_auth_registrations_on_key_handle" ON "two_factor_auth_registrations" ("key_handle")
593
+  (0.1ms) SELECT sql
594
+ FROM sqlite_master
595
+ WHERE name='index_two_factor_auth_registrations_on_key_handle' AND type='index'
596
+ UNION ALL
597
+ SELECT sql
598
+ FROM sqlite_temp_master
599
+ WHERE name='index_two_factor_auth_registrations_on_key_handle' AND type='index'
600
+
601
+  (0.1ms)  SELECT sql
602
+ FROM sqlite_master
603
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
604
+ UNION ALL
605
+ SELECT sql
606
+ FROM sqlite_temp_master
607
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
608
+ 
609
+  (0.2ms) CREATE INDEX "index_two_factor_auth_registrations_on_last_authenticated_at" ON "two_factor_auth_registrations" ("last_authenticated_at")
610
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141224135949"]]
611
+  (17.6ms) commit transaction
612
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
613
+  (0.1ms) SELECT sql
614
+ FROM sqlite_master
615
+ WHERE name='index_two_factor_auth_registrations_on_last_authenticated_at' AND type='index'
616
+ UNION ALL
617
+ SELECT sql
618
+ FROM sqlite_temp_master
619
+ WHERE name='index_two_factor_auth_registrations_on_last_authenticated_at' AND type='index'
620
+
621
+  (0.1ms)  SELECT sql
622
+ FROM sqlite_master
623
+ WHERE name='index_two_factor_auth_registrations_on_key_handle' AND type='index'
624
+ UNION ALL
625
+ SELECT sql
626
+ FROM sqlite_temp_master
627
+ WHERE name='index_two_factor_auth_registrations_on_key_handle' AND type='index'
628
+ 
629
+  (0.1ms) SELECT sql
630
+ FROM sqlite_master
631
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
632
+ UNION ALL
633
+ SELECT sql
634
+ FROM sqlite_temp_master
635
+ WHERE name='index_two_factor_auth_registrations_on_login_id_and_login_type' AND type='index'
636
+
637
+  (0.1ms)  SELECT sql
638
+ FROM sqlite_master
639
+ WHERE name='index_users_on_reset_password_token' AND type='index'
640
+ UNION ALL
641
+ SELECT sql
642
+ FROM sqlite_temp_master
643
+ WHERE name='index_users_on_reset_password_token' AND type='index'
644
+ 
645
+  (0.1ms) SELECT sql
646
+ FROM sqlite_master
647
+ WHERE name='index_users_on_email' AND type='index'
648
+ UNION ALL
649
+ SELECT sql
650
+ FROM sqlite_temp_master
651
+ WHERE name='index_users_on_email' AND type='index'
652
+
653
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
654
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
655
+  (0.1ms) begin transaction
656
+ ------------------------------------------------------------------------------------------------------------------
657
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
658
+ ------------------------------------------------------------------------------------------------------------------
659
+  (0.1ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+ ---------------------------------------------------------------------------------------------------------------------
662
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
663
+ ---------------------------------------------------------------------------------------------------------------------
664
+  (0.1ms) SAVEPOINT active_record_1
665
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
666
+ Binary data inserted for `string` type on column `encrypted_password`
667
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:35.759505"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$bBGvfURH5ywFzE5QmTYIj.F/cg5ZJS0aoftmbZgr97vvH4hC8n.DO"], ["updated_at", "2014-12-24 14:00:35.759505"]]
668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
669
+  (0.1ms) SAVEPOINT active_record_1
670
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:00:35.787272"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:35.767184"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:35.787272"]]
671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
672
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
673
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
674
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
675
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
676
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
677
+ Completed 406 Not Acceptable in 52ms (Views: 18.4ms | ActiveRecord: 0.6ms)
678
+  (0.2ms) rollback transaction
679
+  (0.1ms) begin transaction
680
+ ------------------------------------------------------------------------------------
681
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
682
+ ------------------------------------------------------------------------------------
683
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
684
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
685
+  (0.1ms) rollback transaction
686
+  (0.1ms) begin transaction
687
+ ----------------------------------------------------------------------
688
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
689
+ ----------------------------------------------------------------------
690
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
691
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
692
+  (0.1ms) rollback transaction
693
+  (0.1ms) begin transaction
694
+ ----------------------------------------------------------------------------------------------------------------------
695
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
696
+ ----------------------------------------------------------------------------------------------------------------------
697
+  (0.1ms) SAVEPOINT active_record_1
698
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
699
+ Binary data inserted for `string` type on column `encrypted_password`
700
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:35.920884"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ZKhMUxnT9lsNQR65/RYM7eRvrT5je3ImqwM/3frffiHAVHT/P5Tii"], ["updated_at", "2014-12-24 14:00:35.920884"]]
701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
702
+  (0.0ms) SAVEPOINT active_record_1
703
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:00:35.923371"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:35.922287"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:35.923371"]]
704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
705
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
706
+ SQL (0.1ms) DELETE FROM "users"
707
+  (0.2ms) rollback transaction
708
+  (0.1ms) begin transaction
709
+ -------------------------------------------------------------------------------------------------------------------
710
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
711
+ -------------------------------------------------------------------------------------------------------------------
712
+  (0.1ms) SAVEPOINT active_record_1
713
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
714
+ Binary data inserted for `string` type on column `encrypted_password`
715
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:35.970893"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ovRYQe68PfHU.8Ah7jpdBu7Br17WPo98fW448QYKXFseceZ5k/3G."], ["updated_at", "2014-12-24 14:00:35.970893"]]
716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
717
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
718
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
719
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
720
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
721
+ Completed 406 Not Acceptable in 9ms (Views: 5.1ms | ActiveRecord: 0.2ms)
722
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
723
+  (0.2ms) rollback transaction
724
+  (0.1ms) begin transaction
725
+ ---------------------------------------------------------------------------------------
726
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
727
+ ---------------------------------------------------------------------------------------
728
+  (0.0ms) SAVEPOINT active_record_1
729
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
730
+ Binary data inserted for `string` type on column `encrypted_password`
731
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:35.994073"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$X7DPBm2tuQWQ9Hhoq9Be/uyiyzdudDcHkKLnJGfw9wsylQ9SPLYYq"], ["updated_at", "2014-12-24 14:00:35.994073"]]
732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
733
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
734
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
735
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
736
+ Completed 406 Not Acceptable in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
737
+  (0.2ms) rollback transaction
738
+  (0.1ms) begin transaction
739
+ -------------------------------------------------------------------------------------------------------------------------
740
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
741
+ -------------------------------------------------------------------------------------------------------------------------
742
+  (0.1ms) SAVEPOINT active_record_1
743
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
744
+ Binary data inserted for `string` type on column `encrypted_password`
745
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.010360"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$E3CDapmh/jAIoTZvaeb2DuWnt/vRmyCj4r8XGiznYOp5jGZUJSbru"], ["updated_at", "2014-12-24 14:00:36.010360"]]
746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
747
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
748
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
749
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
751
+ Completed 406 Not Acceptable in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
752
+  (0.2ms) rollback transaction
753
+  (0.1ms) begin transaction
754
+ ------------------------------------------------------------------------------------
755
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
756
+ ------------------------------------------------------------------------------------
757
+  (0.0ms) SAVEPOINT active_record_1
758
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
759
+ Binary data inserted for `string` type on column `encrypted_password`
760
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.032565"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$FIHk2HhixGyjxrVYNO/9PubwddGZsgQBLwlBJxS997a6vsGiejk9y"], ["updated_at", "2014-12-24 14:00:36.032565"]]
761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
762
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
763
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
764
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
765
+  (0.2ms) rollback transaction
766
+  (0.1ms) begin transaction
767
+ -------------------------------------------------------------------------------------------------
768
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
769
+ -------------------------------------------------------------------------------------------------
770
+  (0.0ms) rollback transaction
771
+  (0.1ms) begin transaction
772
+ ----------------------------------------------------------------------------------------------------------
773
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
774
+ ----------------------------------------------------------------------------------------------------------
775
+  (0.1ms) rollback transaction
776
+  (0.1ms) begin transaction
777
+ -------------------------------------------------------------------------------------------------------
778
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
779
+ -------------------------------------------------------------------------------------------------------
780
+  (0.1ms) SAVEPOINT active_record_1
781
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
782
+ Binary data inserted for `string` type on column `encrypted_password`
783
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.068093"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$sX7w.0imULJtdr6XZvvkN.iKqeRUcfb6OxFW6c63nG19ZW2ZocYee"], ["updated_at", "2014-12-24 14:00:36.068093"]]
784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:00:36.070612"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.069356"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.070612"]]
787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
788
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
789
+ SQL (0.1ms) DELETE FROM "users"
790
+  (0.2ms) rollback transaction
791
+  (0.0ms) begin transaction
792
+ --------------------------------------------------------------------------------------------------------------
793
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
794
+ --------------------------------------------------------------------------------------------------------------
795
+  (0.1ms) SAVEPOINT active_record_1
796
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
797
+ Binary data inserted for `string` type on column `encrypted_password`
798
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.078235"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$kE5J7.7RPg04TWgf5kTNHO8H5aWFuw37F/7XK/sNnvW4MgTC146mO"], ["updated_at", "2014-12-24 14:00:36.078235"]]
799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
800
+  (0.1ms) SAVEPOINT active_record_1
801
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:00:36.080950"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.080004"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.080950"]]
802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
803
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
804
+ SQL (0.1ms) DELETE FROM "users"
805
+  (0.2ms) rollback transaction
806
+  (0.1ms) begin transaction
807
+ --------------------------------------------------------------------------------------
808
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
809
+ --------------------------------------------------------------------------------------
810
+  (0.1ms) SAVEPOINT active_record_1
811
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
812
+ Binary data inserted for `string` type on column `encrypted_password`
813
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.089674"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$9UDbyLG/IKfnFBcbvDHfjecujfql.kGBtjggOmdRQKbHEj.B5/p/q"], ["updated_at", "2014-12-24 14:00:36.089674"]]
814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+  (0.0ms) SAVEPOINT active_record_1
816
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:00:36.091801"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.090898"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.091801"]]
817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
818
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
819
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
820
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
821
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
822
+  (0.3ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+ -------------------------------------------------------------------------------------------------------------------
825
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
826
+ -------------------------------------------------------------------------------------------------------------------
827
+  (0.1ms) SAVEPOINT active_record_1
828
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
829
+ Binary data inserted for `string` type on column `encrypted_password`
830
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.106708"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$uJmvU7/Hs.Y/ixyGYLocL.XfnTYbatXYUF2ukOnHkjQts2Ix58VJC"], ["updated_at", "2014-12-24 14:00:36.106708"]]
831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
832
+  (0.0ms) SAVEPOINT active_record_1
833
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:00:36.108951"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.108011"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.108951"]]
834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
835
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
836
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
837
+ Redirected to http://test.host/
838
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
839
+  (0.2ms) rollback transaction
840
+  (0.1ms) begin transaction
841
+ ---------------------------------------------------------------------------------------------------------------------------
842
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
843
+ ---------------------------------------------------------------------------------------------------------------------------
844
+  (0.1ms) SAVEPOINT active_record_1
845
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
846
+ Binary data inserted for `string` type on column `encrypted_password`
847
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.132521"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$DyZjsQv.O1CLlEacKS/Z6ejhQoNK9O7Vq84CGtxfkn/FeSqMWLJqK"], ["updated_at", "2014-12-24 14:00:36.132521"]]
848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
849
+  (0.0ms) SAVEPOINT active_record_1
850
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:00:36.135180"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.134087"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.135180"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
853
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
854
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
855
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
856
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
857
+ Completed 406 Not Acceptable in 9ms (Views: 3.1ms | ActiveRecord: 0.6ms)
858
+  (0.2ms) rollback transaction
859
+  (0.1ms) begin transaction
860
+ -----------------------------------------------------------------------------------------
861
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
862
+ -----------------------------------------------------------------------------------------
863
+  (0.1ms) SAVEPOINT active_record_1
864
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
865
+ Binary data inserted for `string` type on column `encrypted_password`
866
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:00:36.154569"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$OuWfX8OcIFVLdNHZwy1EWeINyt8MWzpjM99ejT5cyLj/vkxVC65aK"], ["updated_at", "2014-12-24 14:00:36.154569"]]
867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
868
+  (0.0ms) SAVEPOINT active_record_1
869
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:00:36.156992"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:00:36.155976"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:00:36.156992"]]
870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
871
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
872
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
873
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
874
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
875
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
876
+ Completed 406 Not Acceptable in 20ms (Views: 2.0ms | ActiveRecord: 0.5ms)
877
+  (0.2ms) rollback transaction
878
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
879
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
880
+  (0.2ms) begin transaction
881
+ -------------------------------------------------------------------------------------------------------------------------
882
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
883
+ -------------------------------------------------------------------------------------------------------------------------
884
+  (0.1ms) SAVEPOINT active_record_1
885
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
886
+ Binary data inserted for `string` type on column `encrypted_password`
887
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.058650"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$EyILeFWwnqq0LTdGfyMiXOYkTmJr333o0kM4QgzeVdsfyTn2v2JKy"], ["updated_at", "2014-12-24 14:02:21.058650"]]
888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
889
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
890
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
891
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
892
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
893
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (3.1ms)
894
+ Completed 406 Not Acceptable in 48ms (Views: 36.6ms | ActiveRecord: 0.2ms)
895
+  (0.2ms) rollback transaction
896
+  (2.1ms) begin transaction
897
+ -------------------------------------------------------------------------------------------------------
898
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
899
+ -------------------------------------------------------------------------------------------------------
900
+  (0.1ms) SAVEPOINT active_record_1
901
+ User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
902
+ Binary data inserted for `string` type on column `encrypted_password`
903
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.146656"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$/fmzvH3PhAI30yB7rPdvc.4Dqr7sfK/jkEleF1ukXNEt8knAZYQ1q"], ["updated_at", "2014-12-24 14:02:21.146656"]]
904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
905
+  (0.1ms) SAVEPOINT active_record_1
906
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:02:21.154561"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.148181"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.154561"]]
907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
908
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
909
+ SQL (0.1ms) DELETE FROM "users"
910
+  (0.2ms) rollback transaction
911
+  (0.1ms) begin transaction
912
+ --------------------------------------------------------------------------------------------------------------
913
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
914
+ --------------------------------------------------------------------------------------------------------------
915
+  (0.1ms) SAVEPOINT active_record_1
916
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
917
+ Binary data inserted for `string` type on column `encrypted_password`
918
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.169877"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$LyLemcRkyqrRP86qZTdT0.C8nyUcYyn65R8FF7AiE2up/eUGtvuPm"], ["updated_at", "2014-12-24 14:02:21.169877"]]
919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
920
+  (0.0ms) SAVEPOINT active_record_1
921
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:02:21.172174"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.171106"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.172174"]]
922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
923
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
924
+ SQL (0.1ms) DELETE FROM "users"
925
+  (0.2ms) rollback transaction
926
+  (0.2ms) begin transaction
927
+ ---------------------------------------------------------------------------------------------------------------------------
928
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
929
+ ---------------------------------------------------------------------------------------------------------------------------
930
+  (0.1ms) SAVEPOINT active_record_1
931
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
932
+ Binary data inserted for `string` type on column `encrypted_password`
933
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.194013"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$x0Ob6GzVO7dFH89b/oDcMOU9EiheZSBPhpj/CsJ3vtWviMlYJsFiG"], ["updated_at", "2014-12-24 14:02:21.194013"]]
934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
935
+  (0.1ms) SAVEPOINT active_record_1
936
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:02:21.196752"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.195574"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.196752"]]
937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
938
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
939
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
940
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
941
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
942
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
943
+ Completed 406 Not Acceptable in 12ms (Views: 5.7ms | ActiveRecord: 0.5ms)
944
+  (0.2ms) rollback transaction
945
+  (0.1ms) begin transaction
946
+ ------------------------------------------------------------------------------------
947
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
948
+ ------------------------------------------------------------------------------------
949
+  (0.1ms) SAVEPOINT active_record_1
950
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
951
+ Binary data inserted for `string` type on column `encrypted_password`
952
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.254258"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$lmBDpDOqqDfu2KQAwNYpn.BeMKsmilRoKt6z9Y0B9EB7YBaboOHzW"], ["updated_at", "2014-12-24 14:02:21.254258"]]
953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
954
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
955
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
956
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
957
+  (0.2ms) rollback transaction
958
+  (0.1ms) begin transaction
959
+ ------------------------------------------------------------------------------------------------------------------
960
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
961
+ ------------------------------------------------------------------------------------------------------------------
962
+  (0.0ms) rollback transaction
963
+  (0.1ms) begin transaction
964
+ --------------------------------------------------------------------------------------
965
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
966
+ --------------------------------------------------------------------------------------
967
+  (0.1ms) SAVEPOINT active_record_1
968
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
969
+ Binary data inserted for `string` type on column `encrypted_password`
970
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.287458"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$.r0Vu2aiUSfIgWci5UQLaellvvinXVJt0CDOcL/2SpXS/YykGX9ua"], ["updated_at", "2014-12-24 14:02:21.287458"]]
971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
972
+  (0.0ms) SAVEPOINT active_record_1
973
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:02:21.289723"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.288711"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.289723"]]
974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
975
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
976
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
977
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
978
+ Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
979
+  (0.2ms) rollback transaction
980
+  (0.0ms) begin transaction
981
+ -------------------------------------------------------------------------------------------------------------------
982
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
983
+ -------------------------------------------------------------------------------------------------------------------
984
+  (0.1ms) SAVEPOINT active_record_1
985
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
986
+ Binary data inserted for `string` type on column `encrypted_password`
987
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.304769"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ToMZa8ALhY7ziOmXtdE5AeCO3Yb/WdguzFqwl0MbhfxzugwBpGXKO"], ["updated_at", "2014-12-24 14:02:21.304769"]]
988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
989
+  (0.0ms) SAVEPOINT active_record_1
990
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:02:21.306921"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.305981"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.306921"]]
991
+  (0.2ms) RELEASE SAVEPOINT active_record_1
992
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
993
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
994
+ Redirected to http://test.host/
995
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
996
+  (0.2ms) rollback transaction
997
+  (0.1ms) begin transaction
998
+ ----------------------------------------------------------------------------------------------------------------------
999
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
1000
+ ----------------------------------------------------------------------------------------------------------------------
1001
+  (0.1ms) SAVEPOINT active_record_1
1002
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1003
+ Binary data inserted for `string` type on column `encrypted_password`
1004
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.330375"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$DzTQNQ.9IBLXoo.EZrOJpufsC0I/5aS6eN3bBqdJBtwqF3OxV9EUS"], ["updated_at", "2014-12-24 14:02:21.330375"]]
1005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1006
+  (0.0ms) SAVEPOINT active_record_1
1007
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:02:21.332583"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.331627"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.332583"]]
1008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1009
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1010
+ SQL (0.1ms) DELETE FROM "users"
1011
+  (0.2ms) rollback transaction
1012
+  (0.1ms) begin transaction
1013
+ -------------------------------------------------------------------------------------------------------------------
1014
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
1015
+ -------------------------------------------------------------------------------------------------------------------
1016
+  (0.1ms) SAVEPOINT active_record_1
1017
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1018
+ Binary data inserted for `string` type on column `encrypted_password`
1019
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.356260"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SkatzaWb14u7skzuOj.Yo.ZEtAFOPw2PhdKphCSpEtPdP0MXfIYPW"], ["updated_at", "2014-12-24 14:02:21.356260"]]
1020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1021
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1022
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1023
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1024
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1025
+ Completed 406 Not Acceptable in 6ms (Views: 2.1ms | ActiveRecord: 0.2ms)
1026
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1027
+  (0.2ms) rollback transaction
1028
+  (0.1ms) begin transaction
1029
+ ---------------------------------------------------------------------------------------
1030
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
1031
+ ---------------------------------------------------------------------------------------
1032
+  (0.1ms) SAVEPOINT active_record_1
1033
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1034
+ Binary data inserted for `string` type on column `encrypted_password`
1035
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.387289"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$o/bHkm14Lk5WherNjCrIe.w4IUXMgy0fhxEcy9CJ.Icg0sDlfesHe"], ["updated_at", "2014-12-24 14:02:21.387289"]]
1036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1037
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1038
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1039
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1040
+ Completed 406 Not Acceptable in 6ms (Views: 2.2ms | ActiveRecord: 0.2ms)
1041
+  (0.2ms) rollback transaction
1042
+  (0.1ms) begin transaction
1043
+ ------------------------------------------------------------------------------------
1044
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
1045
+ ------------------------------------------------------------------------------------
1046
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1047
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1048
+  (0.1ms) rollback transaction
1049
+  (0.1ms) begin transaction
1050
+ ----------------------------------------------------------------------
1051
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
1052
+ ----------------------------------------------------------------------
1053
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1054
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1055
+  (0.1ms) rollback transaction
1056
+  (0.1ms) begin transaction
1057
+ ---------------------------------------------------------------------------------------------------------------------
1058
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
1059
+ ---------------------------------------------------------------------------------------------------------------------
1060
+  (0.1ms) SAVEPOINT active_record_1
1061
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1062
+ Binary data inserted for `string` type on column `encrypted_password`
1063
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.414766"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$5mqjOkltWSLsuQHM217scuw0ILMIS1Eqcl6o4rMHjt0OmjA8S.IS6"], ["updated_at", "2014-12-24 14:02:21.414766"]]
1064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1065
+  (0.0ms) SAVEPOINT active_record_1
1066
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:02:21.417393"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.416212"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.417393"]]
1067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1068
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1069
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1070
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1071
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1072
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1073
+ Completed 406 Not Acceptable in 7ms (Views: 2.0ms | ActiveRecord: 0.6ms)
1074
+  (0.2ms) rollback transaction
1075
+  (0.1ms) begin transaction
1076
+ -------------------------------------------------------------------------------------------------
1077
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
1078
+ -------------------------------------------------------------------------------------------------
1079
+  (0.1ms) rollback transaction
1080
+  (0.0ms) begin transaction
1081
+ ----------------------------------------------------------------------------------------------------------
1082
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
1083
+ ----------------------------------------------------------------------------------------------------------
1084
+  (0.0ms) rollback transaction
1085
+  (0.1ms) begin transaction
1086
+ -----------------------------------------------------------------------------------------
1087
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
1088
+ -----------------------------------------------------------------------------------------
1089
+  (0.1ms) SAVEPOINT active_record_1
1090
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1091
+ Binary data inserted for `string` type on column `encrypted_password`
1092
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:02:21.488137"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$gPT.RzdUtLZ/B7eaUK8l6OnvErBud4NeeQ5pm6cyCThK6RvXAhRw2"], ["updated_at", "2014-12-24 14:02:21.488137"]]
1093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1094
+  (0.0ms) SAVEPOINT active_record_1
1095
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:02:21.490292"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:02:21.489333"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:02:21.490292"]]
1096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1098
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1099
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1100
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1101
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1102
+ Completed 406 Not Acceptable in 6ms (Views: 1.9ms | ActiveRecord: 0.4ms)
1103
+  (0.2ms) rollback transaction
1104
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1105
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1106
+  (0.1ms) begin transaction
1107
+ ------------------------------------------------------------------------------------
1108
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
1109
+ ------------------------------------------------------------------------------------
1110
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1111
+ Rendered text template (0.0ms)
1112
+ Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
1113
+  (0.1ms) rollback transaction
1114
+  (0.0ms) begin transaction
1115
+ ----------------------------------------------------------------------
1116
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
1117
+ ----------------------------------------------------------------------
1118
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1119
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1120
+  (0.1ms) rollback transaction
1121
+  (0.1ms) begin transaction
1122
+ ---------------------------------------------------------------------------------------------------------------------
1123
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
1124
+ ---------------------------------------------------------------------------------------------------------------------
1125
+  (0.1ms) SAVEPOINT active_record_1
1126
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1127
+ Binary data inserted for `string` type on column `encrypted_password`
1128
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.577332"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$VHbKrBuGvmfUinzXIZvPwufkeYm3Eh38zrjBX2bitkeB6Dfi.2qY6"], ["updated_at", "2014-12-24 14:03:14.577332"]]
1129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1130
+  (0.1ms) SAVEPOINT active_record_1
1131
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:14.597746"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.582550"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.597746"]]
1132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1134
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1135
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1136
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1137
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1138
+ Completed 406 Not Acceptable in 46ms (Views: 14.3ms | ActiveRecord: 0.7ms)
1139
+  (0.2ms) rollback transaction
1140
+  (0.1ms) begin transaction
1141
+ ---------------------------------------------------------------------------------------
1142
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
1143
+ ---------------------------------------------------------------------------------------
1144
+  (0.1ms) SAVEPOINT active_record_1
1145
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1146
+ Binary data inserted for `string` type on column `encrypted_password`
1147
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.685571"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$DxVpJtr05RjgSmlehOf3dO6Iw/LXSfqdea/my9Lzo/bAODJUKRdey"], ["updated_at", "2014-12-24 14:03:14.685571"]]
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1150
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1151
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1152
+ Completed 406 Not Acceptable in 11ms (Views: 6.2ms | ActiveRecord: 0.2ms)
1153
+  (0.2ms) rollback transaction
1154
+  (0.1ms) begin transaction
1155
+ -------------------------------------------------------------------------------------------------------
1156
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
1157
+ -------------------------------------------------------------------------------------------------------
1158
+  (0.1ms) SAVEPOINT active_record_1
1159
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1160
+ Binary data inserted for `string` type on column `encrypted_password`
1161
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.731646"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$exy6z4N59L9iIUHU2daHpO1EPslq2WBg81klQhPGEjv4sJX/QoGh6"], ["updated_at", "2014-12-24 14:03:14.731646"]]
1162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1163
+  (0.0ms) SAVEPOINT active_record_1
1164
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:14.733910"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.732882"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.733910"]]
1165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1166
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1167
+ SQL (0.1ms) DELETE FROM "users"
1168
+  (0.2ms) rollback transaction
1169
+  (0.0ms) begin transaction
1170
+ --------------------------------------------------------------------------------------------------------------
1171
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
1172
+ --------------------------------------------------------------------------------------------------------------
1173
+  (0.1ms) SAVEPOINT active_record_1
1174
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1175
+ Binary data inserted for `string` type on column `encrypted_password`
1176
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.741251"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$GX3JTpd9rn4j0GuAGu7.nuQAwCS5Ed4gZ.wrKhuZxMCZjRkO/M3Du"], ["updated_at", "2014-12-24 14:03:14.741251"]]
1177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1178
+  (0.1ms) SAVEPOINT active_record_1
1179
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:14.743329"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.742428"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.743329"]]
1180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1181
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1182
+ SQL (0.1ms) DELETE FROM "users"
1183
+  (0.2ms) rollback transaction
1184
+  (0.1ms) begin transaction
1185
+ -------------------------------------------------------------------------------------------------
1186
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
1187
+ -------------------------------------------------------------------------------------------------
1188
+  (0.1ms) rollback transaction
1189
+  (0.0ms) begin transaction
1190
+ ----------------------------------------------------------------------------------------------------------
1191
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
1192
+ ----------------------------------------------------------------------------------------------------------
1193
+  (0.0ms) rollback transaction
1194
+  (0.1ms) begin transaction
1195
+ ------------------------------------------------------------------------------------
1196
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
1197
+ ------------------------------------------------------------------------------------
1198
+  (0.1ms) SAVEPOINT active_record_1
1199
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1200
+ Binary data inserted for `string` type on column `encrypted_password`
1201
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.759534"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Tl.FAQgGrFr9Zg4B8EW.1.SmRgJXXZ6B7UwF3zG077o86E10UlCey"], ["updated_at", "2014-12-24 14:03:14.759534"]]
1202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1203
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
1204
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1205
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
1206
+  (0.2ms) rollback transaction
1207
+  (0.1ms) begin transaction
1208
+ -----------------------------------------------------------------------------------------
1209
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
1210
+ -----------------------------------------------------------------------------------------
1211
+  (0.1ms) SAVEPOINT active_record_1
1212
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1213
+ Binary data inserted for `string` type on column `encrypted_password`
1214
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.794218"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$M.NFETyQQeSkzoxsw/HyBuUPDTpu0taLmNIUi1SlX5NRNG8MT05Sm"], ["updated_at", "2014-12-24 14:03:14.794218"]]
1215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1216
+  (0.0ms) SAVEPOINT active_record_1
1217
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:14.796581"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.795562"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.796581"]]
1218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1219
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1220
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1221
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1222
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1223
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1224
+ Completed 406 Not Acceptable in 7ms (Views: 2.1ms | ActiveRecord: 0.5ms)
1225
+  (0.2ms) rollback transaction
1226
+  (0.1ms) begin transaction
1227
+ -------------------------------------------------------------------------------------------------------------------
1228
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
1229
+ -------------------------------------------------------------------------------------------------------------------
1230
+  (0.1ms) SAVEPOINT active_record_1
1231
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1232
+ Binary data inserted for `string` type on column `encrypted_password`
1233
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.813947"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$O.VpctV0nXjwVsohcw0mmeZKdlK6uCRfCGOpwpV2FucmRSKwv4pre"], ["updated_at", "2014-12-24 14:03:14.813947"]]
1234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1236
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1237
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1238
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1239
+ Completed 406 Not Acceptable in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
1240
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1241
+  (0.2ms) rollback transaction
1242
+  (0.1ms) begin transaction
1243
+ -------------------------------------------------------------------------------------------------------------------------
1244
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1245
+ -------------------------------------------------------------------------------------------------------------------------
1246
+  (0.1ms) SAVEPOINT active_record_1
1247
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1248
+ Binary data inserted for `string` type on column `encrypted_password`
1249
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.838994"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$aPOB982OjvOdkg0TF3iTAexvv9FiZJJNJsVakEyw4FNhzhUGgsBwC"], ["updated_at", "2014-12-24 14:03:14.838994"]]
1250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1251
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1252
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1253
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1254
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1255
+ Completed 406 Not Acceptable in 5ms (Views: 1.8ms | ActiveRecord: 0.3ms)
1256
+  (0.2ms) rollback transaction
1257
+  (0.1ms) begin transaction
1258
+ ---------------------------------------------------------------------------------------------------------------------------
1259
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1260
+ ---------------------------------------------------------------------------------------------------------------------------
1261
+  (0.1ms) SAVEPOINT active_record_1
1262
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1263
+ Binary data inserted for `string` type on column `encrypted_password`
1264
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.857882"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$5QCOSN2xX7D7NW3cmpso.Of9yEk.zMTmbYUGIg50xj5PPSZlNukUy"], ["updated_at", "2014-12-24 14:03:14.857882"]]
1265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1266
+  (0.0ms) SAVEPOINT active_record_1
1267
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:14.860261"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.859201"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.860261"]]
1268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1269
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1270
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1271
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1272
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1273
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1274
+ Completed 406 Not Acceptable in 6ms (Views: 1.8ms | ActiveRecord: 0.4ms)
1275
+  (0.2ms) rollback transaction
1276
+  (0.1ms) begin transaction
1277
+ ------------------------------------------------------------------------------------------------------------------
1278
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
1279
+ ------------------------------------------------------------------------------------------------------------------
1280
+  (0.1ms) rollback transaction
1281
+  (0.2ms) begin transaction
1282
+ ----------------------------------------------------------------------------------------------------------------------
1283
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
1284
+ ----------------------------------------------------------------------------------------------------------------------
1285
+  (0.1ms) SAVEPOINT active_record_1
1286
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1287
+ Binary data inserted for `string` type on column `encrypted_password`
1288
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.909946"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$GVw5s3loknu35A5ji.l0rOrEN5LzO8/X3y1MjTMFltVL96r7Sw.MC"], ["updated_at", "2014-12-24 14:03:14.909946"]]
1289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1290
+  (0.1ms) SAVEPOINT active_record_1
1291
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:14.912987"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.911729"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.912987"]]
1292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1293
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1294
+ SQL (0.1ms) DELETE FROM "users"
1295
+  (0.3ms) rollback transaction
1296
+  (0.1ms) begin transaction
1297
+ --------------------------------------------------------------------------------------
1298
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
1299
+ --------------------------------------------------------------------------------------
1300
+  (0.1ms) SAVEPOINT active_record_1
1301
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1302
+ Binary data inserted for `string` type on column `encrypted_password`
1303
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.925964"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$N4o.KvSq5AB4ThNVntNoNeCPc0AZchFiYBKiBcgB9PdRG8nDzHMbC"], ["updated_at", "2014-12-24 14:03:14.925964"]]
1304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1305
+  (0.1ms) SAVEPOINT active_record_1
1306
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:14.928582"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.927525"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.928582"]]
1307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1309
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1310
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1311
+ Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)
1312
+  (0.2ms) rollback transaction
1313
+  (0.1ms) begin transaction
1314
+ -------------------------------------------------------------------------------------------------------------------
1315
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
1316
+ -------------------------------------------------------------------------------------------------------------------
1317
+  (0.1ms) SAVEPOINT active_record_1
1318
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1319
+ Binary data inserted for `string` type on column `encrypted_password`
1320
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:14.996109"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$u8SR5Umff9JvAJAXaKM1p.nsld2QQ3/CeR.ULwv4wLwltuGnoCehW"], ["updated_at", "2014-12-24 14:03:14.996109"]]
1321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1322
+  (0.1ms) SAVEPOINT active_record_1
1323
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:14.998366"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:14.997361"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:14.998366"]]
1324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1325
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1326
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1327
+ Redirected to http://test.host/
1328
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1329
+  (0.2ms) rollback transaction
1330
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1331
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1332
+  (0.1ms) begin transaction
1333
+ -------------------------------------------------------------------------------------------------------------------
1334
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
1335
+ -------------------------------------------------------------------------------------------------------------------
1336
+  (0.1ms) SAVEPOINT active_record_1
1337
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1338
+ Binary data inserted for `string` type on column `encrypted_password`
1339
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.310323"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ndyZpDNihbvbjxZA7JzU0eiSPsXjEC1RsqcQMP2jf/UuIQ/7dIeCm"], ["updated_at", "2014-12-24 14:03:43.310323"]]
1340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1341
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1342
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1343
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1344
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1345
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (2.4ms)
1346
+ Completed 406 Not Acceptable in 31ms (Views: 19.8ms | ActiveRecord: 0.2ms)
1347
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1348
+  (0.2ms) rollback transaction
1349
+  (0.1ms) begin transaction
1350
+ ------------------------------------------------------------------------------------
1351
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
1352
+ ------------------------------------------------------------------------------------
1353
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1354
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
1355
+  (0.1ms) rollback transaction
1356
+  (0.0ms) begin transaction
1357
+ ----------------------------------------------------------------------
1358
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
1359
+ ----------------------------------------------------------------------
1360
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1361
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1362
+  (0.1ms) rollback transaction
1363
+  (0.2ms) begin transaction
1364
+ ----------------------------------------------------------------------------------------------------------------------
1365
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
1366
+ ----------------------------------------------------------------------------------------------------------------------
1367
+  (0.1ms) SAVEPOINT active_record_1
1368
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1369
+ Binary data inserted for `string` type on column `encrypted_password`
1370
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.431702"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$vo8PSWmpCYM8CS5RwjRpmuuX8aruupDVcn2Bq7Yo7odcarr/zXndq"], ["updated_at", "2014-12-24 14:03:43.431702"]]
1371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1372
+  (0.1ms) SAVEPOINT active_record_1
1373
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:43.445774"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.438645"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.445774"]]
1374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1375
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1376
+ SQL (0.1ms) DELETE FROM "users"
1377
+  (0.2ms) rollback transaction
1378
+  (0.1ms) begin transaction
1379
+ -----------------------------------------------------------------------------------------
1380
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
1381
+ -----------------------------------------------------------------------------------------
1382
+  (0.1ms) SAVEPOINT active_record_1
1383
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1384
+ Binary data inserted for `string` type on column `encrypted_password`
1385
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.469346"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$QsvB0DdcIqcrCJ/Q.avs3uX2RLjbCd4pDe/uV/CMYljU3xU0ouBmm"], ["updated_at", "2014-12-24 14:03:43.469346"]]
1386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1387
+  (0.0ms) SAVEPOINT active_record_1
1388
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:43.471586"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.470611"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.471586"]]
1389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1391
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1392
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1393
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1394
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1395
+ Completed 406 Not Acceptable in 12ms (Views: 5.4ms | ActiveRecord: 0.4ms)
1396
+  (0.3ms) rollback transaction
1397
+  (0.1ms) begin transaction
1398
+ ------------------------------------------------------------------------------------
1399
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
1400
+ ------------------------------------------------------------------------------------
1401
+  (0.1ms) SAVEPOINT active_record_1
1402
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1403
+ Binary data inserted for `string` type on column `encrypted_password`
1404
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.498187"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$X/mE8aFeDDEWSJ1dBMwJi.kjhEAdAOuIcYVqS0WfU2prIFnAuEJ0q"], ["updated_at", "2014-12-24 14:03:43.498187"]]
1405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1406
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
1407
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1408
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
1409
+  (0.2ms) rollback transaction
1410
+  (0.1ms) begin transaction
1411
+ -------------------------------------------------------------------------------------------------
1412
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
1413
+ -------------------------------------------------------------------------------------------------
1414
+  (0.0ms) rollback transaction
1415
+  (0.0ms) begin transaction
1416
+ ----------------------------------------------------------------------------------------------------------
1417
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
1418
+ ----------------------------------------------------------------------------------------------------------
1419
+  (0.0ms) rollback transaction
1420
+  (0.1ms) begin transaction
1421
+ -------------------------------------------------------------------------------------------------------
1422
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
1423
+ -------------------------------------------------------------------------------------------------------
1424
+  (0.0ms) SAVEPOINT active_record_1
1425
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1426
+ Binary data inserted for `string` type on column `encrypted_password`
1427
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.533125"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$dRx6.bwq0OmoruY/4r2pI.CjDQTbXRG6IjpjEtaVSc9QznLv.mKCu"], ["updated_at", "2014-12-24 14:03:43.533125"]]
1428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1429
+  (0.0ms) SAVEPOINT active_record_1
1430
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:43.535405"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.534346"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.535405"]]
1431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1432
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1433
+ SQL (0.1ms) DELETE FROM "users"
1434
+  (0.2ms) rollback transaction
1435
+  (0.1ms) begin transaction
1436
+ --------------------------------------------------------------------------------------------------------------
1437
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
1438
+ --------------------------------------------------------------------------------------------------------------
1439
+  (0.1ms) SAVEPOINT active_record_1
1440
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1441
+ Binary data inserted for `string` type on column `encrypted_password`
1442
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.544417"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$CAlldXnRgcBtS1d18JxAr.zFDu7qozY5RdCqYmG.tT0aVgZ.cCixi"], ["updated_at", "2014-12-24 14:03:43.544417"]]
1443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.1ms) SAVEPOINT active_record_1
1445
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:03:43.547790"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.546404"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.547790"]]
1446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1447
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1448
+ SQL (0.1ms) DELETE FROM "users"
1449
+  (0.2ms) rollback transaction
1450
+  (0.1ms) begin transaction
1451
+ -------------------------------------------------------------------------------------------------------------------------
1452
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1453
+ -------------------------------------------------------------------------------------------------------------------------
1454
+  (0.1ms) SAVEPOINT active_record_1
1455
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1456
+ Binary data inserted for `string` type on column `encrypted_password`
1457
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.555860"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$gY4mRiaopj5SGePfvfqmnuTg/x5f5lAehab.EB4IZjLN/fs4pfeUO"], ["updated_at", "2014-12-24 14:03:43.555860"]]
1458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1459
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1460
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1461
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1462
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1463
+ Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)
1464
+  (0.2ms) rollback transaction
1465
+  (0.2ms) begin transaction
1466
+ ---------------------------------------------------------------------------------------------------------------------
1467
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
1468
+ ---------------------------------------------------------------------------------------------------------------------
1469
+  (0.3ms) SAVEPOINT active_record_1
1470
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1471
+ Binary data inserted for `string` type on column `encrypted_password`
1472
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.610822"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$4FPTqEdh1etTxqHI1TKOTuPXplbZctFb6reQFG0T4rOSvaPwDw9aO"], ["updated_at", "2014-12-24 14:03:43.610822"]]
1473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1474
+  (0.0ms) SAVEPOINT active_record_1
1475
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:43.613423"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.612076"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.613423"]]
1476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1478
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1479
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1480
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1481
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1482
+ Completed 406 Not Acceptable in 7ms (Views: 1.9ms | ActiveRecord: 0.6ms)
1483
+  (0.3ms) rollback transaction
1484
+  (0.1ms) begin transaction
1485
+ --------------------------------------------------------------------------------------
1486
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
1487
+ --------------------------------------------------------------------------------------
1488
+  (0.1ms) SAVEPOINT active_record_1
1489
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1490
+ Binary data inserted for `string` type on column `encrypted_password`
1491
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.635975"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$KqqEDJU2IhSrAUoDWtUK/OnawcAiRlP7FwQRkjethZ51R9jCViLWK"], ["updated_at", "2014-12-24 14:03:43.635975"]]
1492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1493
+  (0.0ms) SAVEPOINT active_record_1
1494
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:43.638148"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.637166"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.638148"]]
1495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1496
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1497
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1498
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1499
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
1500
+  (0.2ms) rollback transaction
1501
+  (0.1ms) begin transaction
1502
+ -------------------------------------------------------------------------------------------------------------------
1503
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
1504
+ -------------------------------------------------------------------------------------------------------------------
1505
+  (0.1ms) SAVEPOINT active_record_1
1506
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1507
+ Binary data inserted for `string` type on column `encrypted_password`
1508
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.653560"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$elUZxLRW0.d4ldda4eC/u.yNXibKrXBlQ1gf3D.0CG4kwLg0g/AdO"], ["updated_at", "2014-12-24 14:03:43.653560"]]
1509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1510
+  (0.0ms) SAVEPOINT active_record_1
1511
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:43.656384"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.655373"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.656384"]]
1512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1513
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1514
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1515
+ Redirected to http://test.host/
1516
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1517
+  (0.2ms) rollback transaction
1518
+  (0.1ms) begin transaction
1519
+ ------------------------------------------------------------------------------------------------------------------
1520
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
1521
+ ------------------------------------------------------------------------------------------------------------------
1522
+  (0.0ms) rollback transaction
1523
+  (0.1ms) begin transaction
1524
+ ---------------------------------------------------------------------------------------
1525
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
1526
+ ---------------------------------------------------------------------------------------
1527
+  (0.1ms) SAVEPOINT active_record_1
1528
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1529
+ Binary data inserted for `string` type on column `encrypted_password`
1530
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.674667"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$.dP..znRXM5Iv.Dglf/DSeHC8H3hR7QI9LRjNK08wTLWWmMwvlxmu"], ["updated_at", "2014-12-24 14:03:43.674667"]]
1531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1532
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1533
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1534
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1535
+ Completed 406 Not Acceptable in 6ms (Views: 2.2ms | ActiveRecord: 0.2ms)
1536
+  (0.2ms) rollback transaction
1537
+  (0.1ms) begin transaction
1538
+ ---------------------------------------------------------------------------------------------------------------------------
1539
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1540
+ ---------------------------------------------------------------------------------------------------------------------------
1541
+  (0.1ms) SAVEPOINT active_record_1
1542
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1543
+ Binary data inserted for `string` type on column `encrypted_password`
1544
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:03:43.712120"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$xn0dMzpJth7ZAPyiOrKBl.ckskj.0217ypUG7gWJENIm3.lvIcb1W"], ["updated_at", "2014-12-24 14:03:43.712120"]]
1545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1546
+  (0.0ms) SAVEPOINT active_record_1
1547
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:03:43.715241"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:03:43.714198"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:03:43.715241"]]
1548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1549
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1550
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1551
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1552
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1553
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1554
+ Completed 406 Not Acceptable in 19ms (Views: 1.9ms | ActiveRecord: 0.5ms)
1555
+  (0.2ms) rollback transaction
1556
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1557
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1558
+  (0.1ms) begin transaction
1559
+ -------------------------------------------------------------------------------------------------
1560
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
1561
+ -------------------------------------------------------------------------------------------------
1562
+  (0.1ms) rollback transaction
1563
+  (0.1ms) begin transaction
1564
+ ----------------------------------------------------------------------------------------------------------
1565
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
1566
+ ----------------------------------------------------------------------------------------------------------
1567
+  (0.0ms) rollback transaction
1568
+  (0.1ms) begin transaction
1569
+ ---------------------------------------------------------------------------------------------------------------------------
1570
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1571
+ ---------------------------------------------------------------------------------------------------------------------------
1572
+  (0.1ms) SAVEPOINT active_record_1
1573
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1574
+ Binary data inserted for `string` type on column `encrypted_password`
1575
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.501781"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$lmJy4QEXpp395l6y5iRkguZTWQvdX7r0osCz7vyAaeC6SNoRXfEZq"], ["updated_at", "2014-12-24 14:04:48.501781"]]
1576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1577
+  (0.1ms) SAVEPOINT active_record_1
1578
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:04:48.511745"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.505870"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.511745"]]
1579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1580
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1581
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1582
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1583
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1584
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1585
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1586
+  (0.1ms) SAVEPOINT active_record_1
1587
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:04:48.549416"], ["updated_at", "2014-12-24 14:04:48.550323"]]
1588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1589
+ Redirected to http://test.host/
1590
+ Completed 302 Found in 34ms (ActiveRecord: 1.0ms)
1591
+  (0.3ms) rollback transaction
1592
+  (0.1ms) begin transaction
1593
+ ------------------------------------------------------------------------------------------------------------------
1594
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
1595
+ ------------------------------------------------------------------------------------------------------------------
1596
+  (0.0ms) rollback transaction
1597
+  (0.1ms) begin transaction
1598
+ -------------------------------------------------------------------------------------------------------------------------
1599
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1600
+ -------------------------------------------------------------------------------------------------------------------------
1601
+  (0.1ms) SAVEPOINT active_record_1
1602
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1603
+ Binary data inserted for `string` type on column `encrypted_password`
1604
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.586815"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$G3oDpQKc.CRVRlkzrHQkJe45/bwHxc0sd98u7rVCgM2ma2hJbsuQe"], ["updated_at", "2014-12-24 14:04:48.586815"]]
1605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1606
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1607
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1608
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1609
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1610
+ Completed 406 Not Acceptable in 22ms (Views: 18.5ms | ActiveRecord: 0.2ms)
1611
+  (0.2ms) rollback transaction
1612
+  (0.2ms) begin transaction
1613
+ ------------------------------------------------------------------------------------
1614
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
1615
+ ------------------------------------------------------------------------------------
1616
+  (0.2ms) SAVEPOINT active_record_1
1617
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1618
+ Binary data inserted for `string` type on column `encrypted_password`
1619
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.654265"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$5HMbHW3PDFXX0X0.nsOl5.g/KiwIaGETdpqo7U1RFuptG/RHvEAke"], ["updated_at", "2014-12-24 14:04:48.654265"]]
1620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1621
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
1622
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1623
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1624
+  (0.2ms) rollback transaction
1625
+  (0.1ms) begin transaction
1626
+ --------------------------------------------------------------------------------------
1627
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
1628
+ --------------------------------------------------------------------------------------
1629
+  (0.1ms) SAVEPOINT active_record_1
1630
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1631
+ Binary data inserted for `string` type on column `encrypted_password`
1632
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.692898"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$n3N4yLPjdU7uCWjcM1spyePQgi9.caLzDdvNglk6uAfy577B6HZra"], ["updated_at", "2014-12-24 14:04:48.692898"]]
1633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1634
+  (0.0ms) SAVEPOINT active_record_1
1635
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:04:48.695239"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.694167"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.695239"]]
1636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1637
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1638
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1639
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1640
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms)
1641
+  (0.2ms) rollback transaction
1642
+  (0.1ms) begin transaction
1643
+ -------------------------------------------------------------------------------------------------------------------
1644
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
1645
+ -------------------------------------------------------------------------------------------------------------------
1646
+  (0.1ms) SAVEPOINT active_record_1
1647
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1648
+ Binary data inserted for `string` type on column `encrypted_password`
1649
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.718267"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$1HBXmdL3F9VHgOGPk1J9N.rrNe/FjNZQ/.1FVhdmZibeWtSafkEQu"], ["updated_at", "2014-12-24 14:04:48.718267"]]
1650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1651
+  (0.0ms) SAVEPOINT active_record_1
1652
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:04:48.720639"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.719706"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.720639"]]
1653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1654
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1655
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1656
+ Redirected to http://test.host/
1657
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1658
+  (0.2ms) rollback transaction
1659
+  (0.1ms) begin transaction
1660
+ ---------------------------------------------------------------------------------------
1661
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
1662
+ ---------------------------------------------------------------------------------------
1663
+  (0.1ms) SAVEPOINT active_record_1
1664
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1665
+ Binary data inserted for `string` type on column `encrypted_password`
1666
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.732919"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$xKaaplK58NmmKpN1uATKZeO12wYHq15lzkVM4dueIdtzBUSABvwlG"], ["updated_at", "2014-12-24 14:04:48.732919"]]
1667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1668
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1669
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1670
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1671
+ Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.3ms)
1672
+  (0.2ms) rollback transaction
1673
+  (0.1ms) begin transaction
1674
+ -------------------------------------------------------------------------------------------------------
1675
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
1676
+ -------------------------------------------------------------------------------------------------------
1677
+  (0.1ms) SAVEPOINT active_record_1
1678
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1679
+ Binary data inserted for `string` type on column `encrypted_password`
1680
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.750090"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$BUj0sSint/6Gx8nQJd.cnuWD.qhaoiPEb.fow8bLiHzVS12aBwKLa"], ["updated_at", "2014-12-24 14:04:48.750090"]]
1681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1682
+  (0.0ms) SAVEPOINT active_record_1
1683
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:04:48.752352"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.751337"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.752352"]]
1684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1685
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1686
+ SQL (0.1ms) DELETE FROM "users"
1687
+  (0.2ms) rollback transaction
1688
+  (0.1ms) begin transaction
1689
+ --------------------------------------------------------------------------------------------------------------
1690
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
1691
+ --------------------------------------------------------------------------------------------------------------
1692
+  (0.1ms) SAVEPOINT active_record_1
1693
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1694
+ Binary data inserted for `string` type on column `encrypted_password`
1695
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.759994"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$X2RTaf7Un9gAx4DSNeEZh.PVm4wn8eJxeTX2R7EGF8JHTO1VJGhtC"], ["updated_at", "2014-12-24 14:04:48.759994"]]
1696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1697
+  (0.0ms) SAVEPOINT active_record_1
1698
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:04:48.762088"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.761220"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.762088"]]
1699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1700
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1701
+ SQL (0.1ms) DELETE FROM "users"
1702
+  (0.2ms) rollback transaction
1703
+  (0.1ms) begin transaction
1704
+ ------------------------------------------------------------------------------------
1705
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
1706
+ ------------------------------------------------------------------------------------
1707
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1708
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
1709
+  (0.1ms) rollback transaction
1710
+  (0.1ms) begin transaction
1711
+ ----------------------------------------------------------------------
1712
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
1713
+ ----------------------------------------------------------------------
1714
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1715
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1716
+  (0.1ms) rollback transaction
1717
+  (0.1ms) begin transaction
1718
+ ----------------------------------------------------------------------------------------------------------------------
1719
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
1720
+ ----------------------------------------------------------------------------------------------------------------------
1721
+  (0.1ms) SAVEPOINT active_record_1
1722
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1723
+ Binary data inserted for `string` type on column `encrypted_password`
1724
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.800411"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$I/DJqn0QzlPBKMUNo2ghvOjxxPrRzlfnHNxBI7E5qSpT.t0e0vj.O"], ["updated_at", "2014-12-24 14:04:48.800411"]]
1725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1726
+  (0.0ms) SAVEPOINT active_record_1
1727
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:04:48.802912"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.801873"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.802912"]]
1728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1730
+ SQL (0.1ms) DELETE FROM "users"
1731
+  (0.2ms) rollback transaction
1732
+  (0.1ms) begin transaction
1733
+ ---------------------------------------------------------------------------------------------------------------------
1734
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
1735
+ ---------------------------------------------------------------------------------------------------------------------
1736
+  (0.1ms) SAVEPOINT active_record_1
1737
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1738
+ Binary data inserted for `string` type on column `encrypted_password`
1739
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.815216"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$/o3Z6zrFW5LOo3HPV1eq1e0pk8ZmjdqhPB/Ou5HotctLmU5.W6zRW"], ["updated_at", "2014-12-24 14:04:48.815216"]]
1740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1741
+  (0.1ms) SAVEPOINT active_record_1
1742
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:04:48.817461"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.816522"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.817461"]]
1743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1744
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1745
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1746
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1747
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1748
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1749
+ Completed 406 Not Acceptable in 10ms (Views: 2.8ms | ActiveRecord: 0.5ms)
1750
+  (0.2ms) rollback transaction
1751
+  (0.1ms) begin transaction
1752
+ -----------------------------------------------------------------------------------------
1753
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
1754
+ -----------------------------------------------------------------------------------------
1755
+  (0.1ms) SAVEPOINT active_record_1
1756
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1757
+ Binary data inserted for `string` type on column `encrypted_password`
1758
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.837638"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ojbJsYJsimEVY5jzB7vDzevdK0w2gJS87gJCklMw77dyaoqcNNJR6"], ["updated_at", "2014-12-24 14:04:48.837638"]]
1759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1760
+  (0.1ms) SAVEPOINT active_record_1
1761
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:04:48.839972"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:04:48.838923"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:04:48.839972"]]
1762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1763
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1764
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1765
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1766
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1767
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1768
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1769
+  (0.1ms) SAVEPOINT active_record_1
1770
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:04:48.849615"], ["updated_at", "2014-12-24 14:04:48.850442"]]
1771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1772
+ Redirected to http://test.host/
1773
+ Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
1774
+  (0.2ms) rollback transaction
1775
+  (0.1ms) begin transaction
1776
+ -------------------------------------------------------------------------------------------------------------------
1777
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
1778
+ -------------------------------------------------------------------------------------------------------------------
1779
+  (0.1ms) SAVEPOINT active_record_1
1780
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1781
+ Binary data inserted for `string` type on column `encrypted_password`
1782
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:04:48.861673"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$QyWSXIPfjbHGr795K95UEOAUkLz5CsfEZ9bdPL/kBLIH0A0n09w8i"], ["updated_at", "2014-12-24 14:04:48.861673"]]
1783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1784
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1785
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1786
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1787
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1788
+ Completed 406 Not Acceptable in 56ms (Views: 1.9ms | ActiveRecord: 0.3ms)
1789
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1790
+  (0.2ms) rollback transaction
1791
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1792
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1793
+  (0.1ms) begin transaction
1794
+ ---------------------------------------------------------------------------------------
1795
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
1796
+ ---------------------------------------------------------------------------------------
1797
+  (0.1ms) SAVEPOINT active_record_1
1798
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1799
+ Binary data inserted for `string` type on column `encrypted_password`
1800
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.482532"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$HApBmp1Y0ANK8//nyE6ohuNfd6iTQjhL9cCwiBW//sPgWgt20rcOO"], ["updated_at", "2014-12-24 14:05:52.482532"]]
1801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1802
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1803
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1804
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1805
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (2.6ms)
1806
+ Completed 406 Not Acceptable in 31ms (Views: 19.4ms | ActiveRecord: 0.2ms)
1807
+  (0.2ms) rollback transaction
1808
+  (0.1ms) begin transaction
1809
+ -------------------------------------------------------------------------------------------------
1810
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
1811
+ -------------------------------------------------------------------------------------------------
1812
+  (0.1ms) rollback transaction
1813
+  (0.0ms) begin transaction
1814
+ ----------------------------------------------------------------------------------------------------------
1815
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
1816
+ ----------------------------------------------------------------------------------------------------------
1817
+  (0.1ms) rollback transaction
1818
+  (0.1ms) begin transaction
1819
+ ------------------------------------------------------------------------------------------------------------------
1820
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
1821
+ ------------------------------------------------------------------------------------------------------------------
1822
+  (0.0ms) rollback transaction
1823
+  (0.1ms) begin transaction
1824
+ -------------------------------------------------------------------------------------------------------------------
1825
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
1826
+ -------------------------------------------------------------------------------------------------------------------
1827
+  (0.1ms) SAVEPOINT active_record_1
1828
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1829
+ Binary data inserted for `string` type on column `encrypted_password`
1830
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.622809"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$vpSGE5MOJZ7Kj3MuHSk30OraCPjt2bBZiUk3DWiWl2FpxA.Aa5tzi"], ["updated_at", "2014-12-24 14:05:52.622809"]]
1831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1832
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1833
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
1834
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
1835
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1836
+ Completed 406 Not Acceptable in 7ms (Views: 2.4ms | ActiveRecord: 0.3ms)
1837
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
1838
+  (0.2ms) rollback transaction
1839
+  (0.1ms) begin transaction
1840
+ ------------------------------------------------------------------------------------
1841
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
1842
+ ------------------------------------------------------------------------------------
1843
+  (0.1ms) SAVEPOINT active_record_1
1844
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1845
+ Binary data inserted for `string` type on column `encrypted_password`
1846
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.650549"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ZqReFHd7p6dHLgegOfZIXeRrlI6sF6H9lPDGp3atrUFR.MxGMfVaW"], ["updated_at", "2014-12-24 14:05:52.650549"]]
1847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1848
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
1849
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1850
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
1851
+  (0.2ms) rollback transaction
1852
+  (0.1ms) begin transaction
1853
+ --------------------------------------------------------------------------------------
1854
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
1855
+ --------------------------------------------------------------------------------------
1856
+  (0.1ms) SAVEPOINT active_record_1
1857
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1858
+ Binary data inserted for `string` type on column `encrypted_password`
1859
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.700838"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$U8258brdqr3jElLoK52HIOWgyZgSKfqbo5w7qJ8M2U3WxraeWQ30u"], ["updated_at", "2014-12-24 14:05:52.700838"]]
1860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1861
+  (0.1ms) SAVEPOINT active_record_1
1862
+ SQL (0.5ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:05:52.708009"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.702157"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.708009"]]
1863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1864
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1865
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1866
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1867
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.4ms)
1868
+  (0.2ms) rollback transaction
1869
+  (0.0ms) begin transaction
1870
+ -------------------------------------------------------------------------------------------------------------------
1871
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
1872
+ -------------------------------------------------------------------------------------------------------------------
1873
+  (0.1ms) SAVEPOINT active_record_1
1874
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1875
+ Binary data inserted for `string` type on column `encrypted_password`
1876
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.734695"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$nSr5cXpjU2P1j5xe8sAC0uHAoWC/sPA7E2BlsDPhXCOlL0UhGjkb2"], ["updated_at", "2014-12-24 14:05:52.734695"]]
1877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1878
+  (0.0ms) SAVEPOINT active_record_1
1879
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:05:52.736992"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.735991"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.736992"]]
1880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1881
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1882
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
1883
+ Redirected to http://test.host/
1884
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1885
+  (0.2ms) rollback transaction
1886
+  (0.1ms) begin transaction
1887
+ -------------------------------------------------------------------------------------------------------
1888
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
1889
+ -------------------------------------------------------------------------------------------------------
1890
+  (0.1ms) SAVEPOINT active_record_1
1891
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1892
+ Binary data inserted for `string` type on column `encrypted_password`
1893
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.748358"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SJMyx4NMz8vCokFjxjj6puydA5VFmMeZG3LJDCfJfGhislXufxpNq"], ["updated_at", "2014-12-24 14:05:52.748358"]]
1894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1895
+  (0.1ms) SAVEPOINT active_record_1
1896
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:05:52.750973"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.749916"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.750973"]]
1897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1898
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1899
+ SQL (0.1ms) DELETE FROM "users"
1900
+  (0.2ms) rollback transaction
1901
+  (0.0ms) begin transaction
1902
+ --------------------------------------------------------------------------------------------------------------
1903
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
1904
+ --------------------------------------------------------------------------------------------------------------
1905
+  (0.0ms) SAVEPOINT active_record_1
1906
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1907
+ Binary data inserted for `string` type on column `encrypted_password`
1908
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.758348"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Jo0koP43ZgUUZXUfqPeY8.qcObmmFcT.gaBwFYQDD1gw3HUU7xiu."], ["updated_at", "2014-12-24 14:05:52.758348"]]
1909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1910
+  (0.0ms) SAVEPOINT active_record_1
1911
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:05:52.760342"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.759431"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.760342"]]
1912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1913
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1914
+ SQL (0.1ms) DELETE FROM "users"
1915
+  (0.1ms) rollback transaction
1916
+  (0.1ms) begin transaction
1917
+ -----------------------------------------------------------------------------------------
1918
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
1919
+ -----------------------------------------------------------------------------------------
1920
+  (0.1ms) SAVEPOINT active_record_1
1921
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1922
+ Binary data inserted for `string` type on column `encrypted_password`
1923
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.772671"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$w/6WHQzU1i0Aam3.InQHde5UVqVRx8nZKZXzsFP1iZL2vVYFURfgy"], ["updated_at", "2014-12-24 14:05:52.772671"]]
1924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1925
+  (0.1ms) SAVEPOINT active_record_1
1926
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:05:52.774979"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.773998"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.774979"]]
1927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1928
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1929
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1930
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1931
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1932
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1933
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1934
+  (0.1ms) SAVEPOINT active_record_1
1935
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:05:52.784092"], ["updated_at", "2014-12-24 14:05:52.784982"]]
1936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1937
+ Redirected to http://test.host/
1938
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
1939
+  (0.2ms) rollback transaction
1940
+  (0.1ms) begin transaction
1941
+ ---------------------------------------------------------------------------------------------------------------------
1942
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
1943
+ ---------------------------------------------------------------------------------------------------------------------
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1946
+ Binary data inserted for `string` type on column `encrypted_password`
1947
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.794219"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$koM3odCiOmZfbi/sgbaBA.gDRJaK4VGBex4t/IUtnztqGpLO4IG5e"], ["updated_at", "2014-12-24 14:05:52.794219"]]
1948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1949
+  (0.0ms) SAVEPOINT active_record_1
1950
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:05:52.796498"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.795553"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.796498"]]
1951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1952
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
1953
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
1954
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
1955
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
1956
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1957
+ Completed 406 Not Acceptable in 6ms (Views: 1.9ms | ActiveRecord: 0.4ms)
1958
+  (0.2ms) rollback transaction
1959
+  (0.1ms) begin transaction
1960
+ ------------------------------------------------------------------------------------
1961
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
1962
+ ------------------------------------------------------------------------------------
1963
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1964
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
1965
+  (0.1ms) rollback transaction
1966
+  (0.0ms) begin transaction
1967
+ ----------------------------------------------------------------------
1968
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
1969
+ ----------------------------------------------------------------------
1970
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
1971
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1972
+  (0.1ms) rollback transaction
1973
+  (0.1ms) begin transaction
1974
+ ----------------------------------------------------------------------------------------------------------------------
1975
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
1976
+ ----------------------------------------------------------------------------------------------------------------------
1977
+  (0.1ms) SAVEPOINT active_record_1
1978
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1979
+ Binary data inserted for `string` type on column `encrypted_password`
1980
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.829609"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$7F2O.CSz7WCmt0AbVnJ5Gu0ZudLvCLduy0Ntz50poFoIegU.QwXii"], ["updated_at", "2014-12-24 14:05:52.829609"]]
1981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1982
+  (0.1ms) SAVEPOINT active_record_1
1983
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:05:52.832346"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.831099"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.832346"]]
1984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1985
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
1986
+ SQL (0.1ms) DELETE FROM "users"
1987
+  (0.2ms) rollback transaction
1988
+  (0.1ms) begin transaction
1989
+ ---------------------------------------------------------------------------------------------------------------------------
1990
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
1991
+ ---------------------------------------------------------------------------------------------------------------------------
1992
+  (0.1ms) SAVEPOINT active_record_1
1993
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
1994
+ Binary data inserted for `string` type on column `encrypted_password`
1995
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.841022"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$TsZmeOo0KZEjvoBbzVINuuCjItMahXg0d6p.I7INj7heMtgbtQRWq"], ["updated_at", "2014-12-24 14:05:52.841022"]]
1996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1997
+  (0.1ms) SAVEPOINT active_record_1
1998
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:05:52.843747"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:05:52.842536"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:05:52.843747"]]
1999
+  (46.2ms) RELEASE SAVEPOINT active_record_1
2000
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2001
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2002
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2003
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2004
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2005
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2006
+  (0.1ms) SAVEPOINT active_record_1
2007
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:05:52.899432"], ["updated_at", "2014-12-24 14:05:52.900251"]]
2008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2009
+ Redirected to http://test.host/
2010
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
2011
+  (0.2ms) rollback transaction
2012
+  (0.1ms) begin transaction
2013
+ -------------------------------------------------------------------------------------------------------------------------
2014
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2015
+ -------------------------------------------------------------------------------------------------------------------------
2016
+  (0.1ms) SAVEPOINT active_record_1
2017
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2018
+ Binary data inserted for `string` type on column `encrypted_password`
2019
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:05:52.910973"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$3GN1Sct77/I1KBV9bFNcYeeXr4H/bhPXKVz3tlSbamov7wWHZS5zK"], ["updated_at", "2014-12-24 14:05:52.910973"]]
2020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2021
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2022
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2023
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2024
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2025
+ Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)
2026
+  (0.2ms) rollback transaction
2027
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2028
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2029
+  (0.1ms) begin transaction
2030
+ ------------------------------------------------------------------------------------
2031
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
2032
+ ------------------------------------------------------------------------------------
2033
+  (0.1ms) SAVEPOINT active_record_1
2034
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2035
+ Binary data inserted for `string` type on column `encrypted_password`
2036
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.724520"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$G.q7sORHWOFDY6ShRNhyYORYBOORwqrTh8DsLXzuTR2XOdfsG/r5O"], ["updated_at", "2014-12-24 14:06:34.724520"]]
2037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2038
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
2039
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2040
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (3.5ms)
2041
+ Completed 200 OK in 29ms (Views: 21.6ms | ActiveRecord: 0.2ms)
2042
+  (0.2ms) rollback transaction
2043
+  (0.1ms) begin transaction
2044
+ -------------------------------------------------------------------------------------------------------
2045
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
2046
+ -------------------------------------------------------------------------------------------------------
2047
+  (0.1ms) SAVEPOINT active_record_1
2048
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2049
+ Binary data inserted for `string` type on column `encrypted_password`
2050
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.836672"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$tjznzscbZvjQDIoeJSdA6e.8xnmhLaAl1kr4GXcVtnTpus0M1JSI2"], ["updated_at", "2014-12-24 14:06:34.836672"]]
2051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2052
+  (0.1ms) SAVEPOINT active_record_1
2053
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:06:34.846634"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.837904"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.846634"]]
2054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2055
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2056
+ SQL (0.1ms) DELETE FROM "users"
2057
+  (0.2ms) rollback transaction
2058
+  (0.1ms) begin transaction
2059
+ --------------------------------------------------------------------------------------------------------------
2060
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
2061
+ --------------------------------------------------------------------------------------------------------------
2062
+  (0.1ms) SAVEPOINT active_record_1
2063
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2064
+ Binary data inserted for `string` type on column `encrypted_password`
2065
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.861625"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$cDkKrl103N0hv3WVlZ7LL.WIBaROCVQK4rg3A0S07/QuUEpDiB5aS"], ["updated_at", "2014-12-24 14:06:34.861625"]]
2066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2067
+  (0.0ms) SAVEPOINT active_record_1
2068
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:06:34.863837"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.862885"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.863837"]]
2069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2070
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2071
+ SQL (0.1ms) DELETE FROM "users"
2072
+  (0.1ms) rollback transaction
2073
+  (0.1ms) begin transaction
2074
+ -----------------------------------------------------------------------------------------
2075
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
2076
+ -----------------------------------------------------------------------------------------
2077
+  (0.1ms) SAVEPOINT active_record_1
2078
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2079
+ Binary data inserted for `string` type on column `encrypted_password`
2080
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.871628"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$gtpw7PpP2z4R1kCXAuGkme7JeKw3spyHdZ5xnrNYff.JSHq1ooL3y"], ["updated_at", "2014-12-24 14:06:34.871628"]]
2081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2082
+  (0.0ms) SAVEPOINT active_record_1
2083
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:06:34.873890"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.872976"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.873890"]]
2084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2085
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2086
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2088
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2089
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2090
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2091
+  (0.1ms) SAVEPOINT active_record_1
2092
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:06:34.886995"], ["updated_at", "2014-12-24 14:06:34.887872"]]
2093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2094
+ Redirected to http://test.host/
2095
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
2096
+  (0.2ms) rollback transaction
2097
+  (0.1ms) begin transaction
2098
+ --------------------------------------------------------------------------------------
2099
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
2100
+ --------------------------------------------------------------------------------------
2101
+  (0.1ms) SAVEPOINT active_record_1
2102
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2103
+ Binary data inserted for `string` type on column `encrypted_password`
2104
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.896385"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ZBZp.tYqCLd4aGBUGU/uuO17LQCHEtbhl8bvNFOr7rIzMfuER71lm"], ["updated_at", "2014-12-24 14:06:34.896385"]]
2105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2106
+  (0.0ms) SAVEPOINT active_record_1
2107
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:06:34.898491"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.897546"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.898491"]]
2108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2109
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2110
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2111
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2112
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms)
2113
+  (0.3ms) rollback transaction
2114
+  (0.1ms) begin transaction
2115
+ -------------------------------------------------------------------------------------------------------------------
2116
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
2117
+ -------------------------------------------------------------------------------------------------------------------
2118
+  (0.1ms) SAVEPOINT active_record_1
2119
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2120
+ Binary data inserted for `string` type on column `encrypted_password`
2121
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.918555"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$.aHxweA.f9TOlVQbvyQzueAVvxcxj9XNHXvO1FNf6d9Q8NELA8pBe"], ["updated_at", "2014-12-24 14:06:34.918555"]]
2122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2123
+  (0.1ms) SAVEPOINT active_record_1
2124
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:06:34.920718"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.919787"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.920718"]]
2125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2127
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2128
+ Redirected to http://test.host/
2129
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2130
+  (0.2ms) rollback transaction
2131
+  (0.1ms) begin transaction
2132
+ ----------------------------------------------------------------------------------------------------------------------
2133
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
2134
+ ----------------------------------------------------------------------------------------------------------------------
2135
+  (0.1ms) SAVEPOINT active_record_1
2136
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2137
+ Binary data inserted for `string` type on column `encrypted_password`
2138
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.936139"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$QXuivU9WRcMLsmWH9Rz9/uAjM.WC1y1O/oLf5O01rgjh7e.nlKvpG"], ["updated_at", "2014-12-24 14:06:34.936139"]]
2139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2140
+  (0.0ms) SAVEPOINT active_record_1
2141
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:06:34.939125"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.938131"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.939125"]]
2142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2143
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2144
+ SQL (0.1ms) DELETE FROM "users"
2145
+  (0.2ms) rollback transaction
2146
+  (0.1ms) begin transaction
2147
+ ------------------------------------------------------------------------------------
2148
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
2149
+ ------------------------------------------------------------------------------------
2150
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2151
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
2152
+  (0.1ms) rollback transaction
2153
+  (0.1ms) begin transaction
2154
+ ----------------------------------------------------------------------
2155
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
2156
+ ----------------------------------------------------------------------
2157
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2158
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2159
+  (0.1ms) rollback transaction
2160
+  (0.1ms) begin transaction
2161
+ ------------------------------------------------------------------------------------------------------------------
2162
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
2163
+ ------------------------------------------------------------------------------------------------------------------
2164
+  (0.1ms) rollback transaction
2165
+  (0.1ms) begin transaction
2166
+ ---------------------------------------------------------------------------------------------------------------------
2167
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
2168
+ ---------------------------------------------------------------------------------------------------------------------
2169
+  (0.1ms) SAVEPOINT active_record_1
2170
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2171
+ Binary data inserted for `string` type on column `encrypted_password`
2172
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.969807"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$NaNpyalAf5vCW/U2A9bjWeKmwVTuy2twYVTqtrNiremtML0ODSM9e"], ["updated_at", "2014-12-24 14:06:34.969807"]]
2173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2174
+  (0.0ms) SAVEPOINT active_record_1
2175
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:06:34.972127"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:34.971111"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:34.972127"]]
2176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2177
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2178
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2179
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2180
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2181
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2182
+ Completed 406 Not Acceptable in 10ms (Views: 2.1ms | ActiveRecord: 0.4ms)
2183
+  (0.2ms) rollback transaction
2184
+  (0.1ms) begin transaction
2185
+ -------------------------------------------------------------------------------------------------------------------------
2186
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2187
+ -------------------------------------------------------------------------------------------------------------------------
2188
+  (0.1ms) SAVEPOINT active_record_1
2189
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2190
+ Binary data inserted for `string` type on column `encrypted_password`
2191
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:34.996449"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$XW9TTmN6xYPqYDdHj2iTVOKOcDsIe1OA1OcIGSfazq6AcUnYuByS2"], ["updated_at", "2014-12-24 14:06:34.996449"]]
2192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2193
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2194
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2195
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2197
+ Completed 406 Not Acceptable in 7ms (Views: 3.8ms | ActiveRecord: 0.2ms)
2198
+  (0.2ms) rollback transaction
2199
+  (0.1ms) begin transaction
2200
+ -------------------------------------------------------------------------------------------------------------------
2201
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
2202
+ -------------------------------------------------------------------------------------------------------------------
2203
+  (0.1ms) SAVEPOINT active_record_1
2204
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2205
+ Binary data inserted for `string` type on column `encrypted_password`
2206
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:35.019498"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$qbuMPHQ1IKVUgtI3G/6XO..bRY6HMUzcjmDkFjbAiOYarD3Ze8icW"], ["updated_at", "2014-12-24 14:06:35.019498"]]
2207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2208
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2209
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2210
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2211
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2212
+ Completed 406 Not Acceptable in 7ms (Views: 3.6ms | ActiveRecord: 0.2ms)
2213
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2214
+  (1.1ms) rollback transaction
2215
+  (0.1ms) begin transaction
2216
+ -------------------------------------------------------------------------------------------------
2217
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
2218
+ -------------------------------------------------------------------------------------------------
2219
+  (0.1ms) rollback transaction
2220
+  (0.1ms) begin transaction
2221
+ ----------------------------------------------------------------------------------------------------------
2222
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
2223
+ ----------------------------------------------------------------------------------------------------------
2224
+  (0.1ms) rollback transaction
2225
+  (0.1ms) begin transaction
2226
+ ---------------------------------------------------------------------------------------------------------------------------
2227
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2228
+ ---------------------------------------------------------------------------------------------------------------------------
2229
+  (0.1ms) SAVEPOINT active_record_1
2230
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2231
+ Binary data inserted for `string` type on column `encrypted_password`
2232
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:35.143339"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$.ymAz11W5w/uvr5Igl4JGeB2SQTgHvbP3cl.12cwCQdKEZnUQSjwe"], ["updated_at", "2014-12-24 14:06:35.143339"]]
2233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2234
+  (0.1ms) SAVEPOINT active_record_1
2235
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:06:35.145749"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:06:35.144707"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:06:35.145749"]]
2236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2237
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2238
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2239
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2240
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2241
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2242
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2243
+  (0.1ms) SAVEPOINT active_record_1
2244
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:06:35.158117"], ["updated_at", "2014-12-24 14:06:35.158889"]]
2245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2246
+ Redirected to http://test.host/
2247
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
2248
+  (0.2ms) rollback transaction
2249
+  (0.1ms) begin transaction
2250
+ ---------------------------------------------------------------------------------------
2251
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
2252
+ ---------------------------------------------------------------------------------------
2253
+  (0.1ms) SAVEPOINT active_record_1
2254
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2255
+ Binary data inserted for `string` type on column `encrypted_password`
2256
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:06:35.168049"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$iO3vVflAua3sJD0MHk5JTOS6Vd/IE0SLAzInVqlmPhdmUsVM07i6C"], ["updated_at", "2014-12-24 14:06:35.168049"]]
2257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2258
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2259
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2260
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2261
+ Completed 406 Not Acceptable in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
2262
+  (0.2ms) rollback transaction
2263
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2264
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2265
+  (0.2ms) begin transaction
2266
+ -------------------------------------------------------------------------------------------------------------------------
2267
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2268
+ -------------------------------------------------------------------------------------------------------------------------
2269
+  (0.1ms) SAVEPOINT active_record_1
2270
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2271
+ Binary data inserted for `string` type on column `encrypted_password`
2272
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:05.896115"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$X6DDmE3gbmILV4mP095jB.z4jBj2zUDtTi28cLR9HFXc4bhrEApQW"], ["updated_at", "2014-12-24 14:08:05.896115"]]
2273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2274
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2275
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2276
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2277
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2278
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (2.8ms)
2279
+ Completed 406 Not Acceptable in 29ms (Views: 19.7ms | ActiveRecord: 0.2ms)
2280
+  (0.2ms) rollback transaction
2281
+  (0.2ms) begin transaction
2282
+ ---------------------------------------------------------------------------------------
2283
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
2284
+ ---------------------------------------------------------------------------------------
2285
+  (0.1ms) SAVEPOINT active_record_1
2286
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2287
+ Binary data inserted for `string` type on column `encrypted_password`
2288
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:05.955193"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$0pnTr3V/zxrmP6L3Ab07u.Rkldf5vhO7zr3oySX1Hww7s1PtQCWk6"], ["updated_at", "2014-12-24 14:08:05.955193"]]
2289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2290
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2291
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2292
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2293
+ Completed 406 Not Acceptable in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms)
2294
+  (0.2ms) rollback transaction
2295
+  (0.1ms) begin transaction
2296
+ -------------------------------------------------------------------------------------------------
2297
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
2298
+ -------------------------------------------------------------------------------------------------
2299
+  (0.0ms) rollback transaction
2300
+  (0.0ms) begin transaction
2301
+ ----------------------------------------------------------------------------------------------------------
2302
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
2303
+ ----------------------------------------------------------------------------------------------------------
2304
+  (0.0ms) rollback transaction
2305
+  (0.1ms) begin transaction
2306
+ ------------------------------------------------------------------------------------------------------------------
2307
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
2308
+ ------------------------------------------------------------------------------------------------------------------
2309
+  (0.0ms) rollback transaction
2310
+  (0.1ms) begin transaction
2311
+ ---------------------------------------------------------------------------------------------------------------------------
2312
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2313
+ ---------------------------------------------------------------------------------------------------------------------------
2314
+  (0.0ms) SAVEPOINT active_record_1
2315
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2316
+ Binary data inserted for `string` type on column `encrypted_password`
2317
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:05.982350"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$y2tatEeoJ3JxpH9akcqYHu6M8QfHhjB5gWBE9.anBLR.QMLuDygSW"], ["updated_at", "2014-12-24 14:08:05.982350"]]
2318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2319
+  (0.1ms) SAVEPOINT active_record_1
2320
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:08:05.998940"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:05.983566"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:05.998940"]]
2321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2322
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2323
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2324
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2325
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2326
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2327
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2328
+  (0.1ms) SAVEPOINT active_record_1
2329
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:08:06.017633"], ["updated_at", "2014-12-24 14:08:06.018486"]]
2330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2331
+ Redirected to http://test.host/
2332
+ Completed 302 Found in 17ms (ActiveRecord: 0.9ms)
2333
+  (0.2ms) rollback transaction
2334
+  (0.1ms) begin transaction
2335
+ ------------------------------------------------------------------------------------
2336
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
2337
+ ------------------------------------------------------------------------------------
2338
+  (0.1ms) SAVEPOINT active_record_1
2339
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2340
+ Binary data inserted for `string` type on column `encrypted_password`
2341
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.059261"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$KRHXvJE5gPjsRLsQ.XPepe0hIKxeRJnGdQa3PaFG2wmljMepFo3Le"], ["updated_at", "2014-12-24 14:08:06.059261"]]
2342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2343
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
2344
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2345
+ Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.3ms)
2346
+  (0.2ms) rollback transaction
2347
+  (0.1ms) begin transaction
2348
+ ----------------------------------------------------------------------------------------------------------------------
2349
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
2350
+ ----------------------------------------------------------------------------------------------------------------------
2351
+  (0.1ms) SAVEPOINT active_record_1
2352
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2353
+ Binary data inserted for `string` type on column `encrypted_password`
2354
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.098697"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$vuAr2eqhbPCDnUQg0UrhDeWuWix1aY97z3FXI4YDXDw9u5Vb.jGJS"], ["updated_at", "2014-12-24 14:08:06.098697"]]
2355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2356
+  (0.1ms) SAVEPOINT active_record_1
2357
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:08:06.101026"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.100012"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.101026"]]
2358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2360
+ SQL (0.1ms) DELETE FROM "users"
2361
+  (0.2ms) rollback transaction
2362
+  (0.1ms) begin transaction
2363
+ -------------------------------------------------------------------------------------------------------------------
2364
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
2365
+ -------------------------------------------------------------------------------------------------------------------
2366
+  (0.1ms) SAVEPOINT active_record_1
2367
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2368
+ Binary data inserted for `string` type on column `encrypted_password`
2369
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.120299"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$kUMJJN2frUUk9nO0l84ECefPkvzDFo36kaM1JUO4jtM/xGfP2d/iq"], ["updated_at", "2014-12-24 14:08:06.120299"]]
2370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2371
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2372
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2373
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2374
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2375
+ Completed 406 Not Acceptable in 8ms (Views: 3.1ms | ActiveRecord: 0.2ms)
2376
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2377
+  (0.2ms) rollback transaction
2378
+  (0.1ms) begin transaction
2379
+ -------------------------------------------------------------------------------------------------------
2380
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
2381
+ -------------------------------------------------------------------------------------------------------
2382
+  (0.0ms) SAVEPOINT active_record_1
2383
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2384
+ Binary data inserted for `string` type on column `encrypted_password`
2385
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.142634"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$UjpI/4JR96FwnglAr9c2auG.lq9pPydr0qxiRoXDhl/1JghjE7faC"], ["updated_at", "2014-12-24 14:08:06.142634"]]
2386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2387
+  (0.0ms) SAVEPOINT active_record_1
2388
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:08:06.144854"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.143876"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.144854"]]
2389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2390
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2391
+ SQL (0.1ms) DELETE FROM "users"
2392
+  (0.1ms) rollback transaction
2393
+  (0.0ms) begin transaction
2394
+ --------------------------------------------------------------------------------------------------------------
2395
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
2396
+ --------------------------------------------------------------------------------------------------------------
2397
+  (0.1ms) SAVEPOINT active_record_1
2398
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2399
+ Binary data inserted for `string` type on column `encrypted_password`
2400
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.151892"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$XMpFD7LeSDhNYLTlFwmzQex88BABFXtN9zqDikkC.rjsMYhXZOWLi"], ["updated_at", "2014-12-24 14:08:06.151892"]]
2401
+  (1.9ms) RELEASE SAVEPOINT active_record_1
2402
+  (0.1ms) SAVEPOINT active_record_1
2403
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:08:06.155984"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.154952"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.155984"]]
2404
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2405
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2406
+ SQL (0.1ms) DELETE FROM "users"
2407
+  (0.2ms) rollback transaction
2408
+  (0.1ms) begin transaction
2409
+ -----------------------------------------------------------------------------------------
2410
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
2411
+ -----------------------------------------------------------------------------------------
2412
+  (0.1ms) SAVEPOINT active_record_1
2413
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2414
+ Binary data inserted for `string` type on column `encrypted_password`
2415
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.166532"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$yIN27guplTsYMZ0dgyHrMOUnfriLWHiWoG0ndtPZJN7N8GANVPt0q"], ["updated_at", "2014-12-24 14:08:06.166532"]]
2416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2417
+  (0.0ms) SAVEPOINT active_record_1
2418
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:08:06.168896"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.167787"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.168896"]]
2419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2420
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2421
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2422
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2423
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2424
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2425
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2426
+  (0.1ms) SAVEPOINT active_record_1
2427
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:08:06.177683"], ["updated_at", "2014-12-24 14:08:06.178403"]]
2428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2429
+ Redirected to http://test.host/
2430
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
2431
+  (0.2ms) rollback transaction
2432
+  (0.1ms) begin transaction
2433
+ ------------------------------------------------------------------------------------
2434
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
2435
+ ------------------------------------------------------------------------------------
2436
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2437
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2438
+  (0.1ms) rollback transaction
2439
+  (0.0ms) begin transaction
2440
+ ----------------------------------------------------------------------
2441
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
2442
+ ----------------------------------------------------------------------
2443
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2444
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2445
+  (0.1ms) rollback transaction
2446
+  (0.1ms) begin transaction
2447
+ --------------------------------------------------------------------------------------
2448
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
2449
+ --------------------------------------------------------------------------------------
2450
+  (0.1ms) SAVEPOINT active_record_1
2451
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2452
+ Binary data inserted for `string` type on column `encrypted_password`
2453
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.241668"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$e9qyu8I/fU8RrzFNgYHg0OixmPZttCW4ez4oR4nEHC3yAwPpeXrZW"], ["updated_at", "2014-12-24 14:08:06.241668"]]
2454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2455
+  (0.0ms) SAVEPOINT active_record_1
2456
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:08:06.246220"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.245042"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.246220"]]
2457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2458
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2459
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2460
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2461
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.4ms)
2462
+  (0.3ms) rollback transaction
2463
+  (0.1ms) begin transaction
2464
+ -------------------------------------------------------------------------------------------------------------------
2465
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
2466
+ -------------------------------------------------------------------------------------------------------------------
2467
+  (0.1ms) SAVEPOINT active_record_1
2468
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2469
+ Binary data inserted for `string` type on column `encrypted_password`
2470
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:08:06.267045"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ep1Sw5pAXq3V0QmY.uy5Xea5uEELuVkJFiXe5IrOuaRt6eStZzIKO"], ["updated_at", "2014-12-24 14:08:06.267045"]]
2471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2472
+  (0.1ms) SAVEPOINT active_record_1
2473
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:08:06.269822"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:08:06.268667"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:08:06.269822"]]
2474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2475
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2476
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2477
+ Redirected to http://test.host/
2478
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2479
+  (0.2ms) rollback transaction
2480
+  (0.2ms) begin transaction
2481
+ ---------------------------------------------------------------------------------------------------------------------
2482
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
2483
+ ---------------------------------------------------------------------------------------------------------------------
2484
+  (0.1ms) SAVEPOINT active_record_1
2485
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2486
+ Binary data inserted for `string` type on column `encrypted_password`
2487
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:10:32.313746"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$MbuVrQJHgh9wHeaZfA7b9er4xotGx9Q925zsbqqDRcNrH0iW1bq4G"], ["updated_at", "2014-12-24 14:10:32.313746"]]
2488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2489
+  (0.1ms) SAVEPOINT active_record_1
2490
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:10:32.318040"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:10:32.316889"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:10:32.318040"]]
2491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2492
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2493
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2494
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2495
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2496
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2497
+ Completed 406 Not Acceptable in 9ms (Views: 2.2ms | ActiveRecord: 0.5ms)
2498
+  (0.2ms) rollback transaction
2499
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2500
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2501
+  (0.1ms) begin transaction
2502
+ -------------------------------------------------------------------------------------------------------------------------
2503
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2504
+ -------------------------------------------------------------------------------------------------------------------------
2505
+  (0.1ms) SAVEPOINT active_record_1
2506
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2507
+ Binary data inserted for `string` type on column `encrypted_password`
2508
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.036393"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$XDNxzZkRPCqtYYeilYQm1ee2cm6hz8r1Kh3Vf4zoZvVEFA8rRIW6e"], ["updated_at", "2014-12-24 14:11:26.036393"]]
2509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2510
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2511
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2512
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2513
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2514
+ Rendered /home/harkins/biz/two_factor_auth/ruby/app/views/two_factor_auth/registrations/new.html.erb within layouts/application (2.6ms)
2515
+ Completed 406 Not Acceptable in 30ms (Views: 19.5ms | ActiveRecord: 0.2ms)
2516
+  (0.2ms) rollback transaction
2517
+  (0.1ms) begin transaction
2518
+ ----------------------------------------------------------------------------------------------------------------------
2519
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
2520
+ ----------------------------------------------------------------------------------------------------------------------
2521
+  (0.1ms) SAVEPOINT active_record_1
2522
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2523
+ Binary data inserted for `string` type on column `encrypted_password`
2524
+ SQL (1.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.101366"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$pKoIDXojd9AlZD7ZvQrSP.z2PJm7KfPVH4nXD21OlBVn5750FLofq"], ["updated_at", "2014-12-24 14:11:26.101366"]]
2525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2526
+  (0.1ms) SAVEPOINT active_record_1
2527
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:26.110319"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.104088"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.110319"]]
2528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2529
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2530
+ SQL (0.1ms) DELETE FROM "users"
2531
+  (0.2ms) rollback transaction
2532
+  (0.1ms) begin transaction
2533
+ ---------------------------------------------------------------------------------------
2534
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
2535
+ ---------------------------------------------------------------------------------------
2536
+  (0.1ms) SAVEPOINT active_record_1
2537
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2538
+ Binary data inserted for `string` type on column `encrypted_password`
2539
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.127618"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$PPD7DSayh1LbfObdSYaPyOaAnbm.dFp4zOY6ijxeMZ1gDyQCspsnu"], ["updated_at", "2014-12-24 14:11:26.127618"]]
2540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2541
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2542
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2543
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2544
+ Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)
2545
+  (0.2ms) rollback transaction
2546
+  (0.1ms) begin transaction
2547
+ ------------------------------------------------------------------------------------------------------------------
2548
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
2549
+ ------------------------------------------------------------------------------------------------------------------
2550
+  (0.1ms) rollback transaction
2551
+  (0.1ms) begin transaction
2552
+ -------------------------------------------------------------------------------------------------------
2553
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
2554
+ -------------------------------------------------------------------------------------------------------
2555
+  (0.1ms) SAVEPOINT active_record_1
2556
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2557
+ Binary data inserted for `string` type on column `encrypted_password`
2558
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.157530"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$P3BSLOXRQDNhZhVsOo20oOfcG3i5zyBuqssR8bZFJPdnuEPNjDf4u"], ["updated_at", "2014-12-24 14:11:26.157530"]]
2559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2560
+  (0.7ms) SAVEPOINT active_record_1
2561
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:26.161683"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.158766"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.161683"]]
2562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2563
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2564
+ SQL (0.1ms) DELETE FROM "users"
2565
+  (0.2ms) rollback transaction
2566
+  (0.0ms) begin transaction
2567
+ --------------------------------------------------------------------------------------------------------------
2568
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
2569
+ --------------------------------------------------------------------------------------------------------------
2570
+  (0.1ms) SAVEPOINT active_record_1
2571
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2572
+ Binary data inserted for `string` type on column `encrypted_password`
2573
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.169155"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$dvKwYt2xQg95R3zA8U9fjeYBS/OC9LwxwzyNKSzN763DKbyiBUM3G"], ["updated_at", "2014-12-24 14:11:26.169155"]]
2574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2575
+  (0.0ms) SAVEPOINT active_record_1
2576
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:26.171541"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.170425"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.171541"]]
2577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2578
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2579
+ SQL (0.1ms) DELETE FROM "users"
2580
+  (0.4ms) rollback transaction
2581
+  (0.1ms) begin transaction
2582
+ -----------------------------------------------------------------------------------------
2583
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
2584
+ -----------------------------------------------------------------------------------------
2585
+  (0.1ms) SAVEPOINT active_record_1
2586
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2587
+ Binary data inserted for `string` type on column `encrypted_password`
2588
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.194599"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$jDAZbvPWU3.8bbLaPAUM.O.JJzg3Y9lCK9Wa/TdFEUmgjtm/tOj92"], ["updated_at", "2014-12-24 14:11:26.194599"]]
2589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2590
+  (0.0ms) SAVEPOINT active_record_1
2591
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:26.197107"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.196058"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.197107"]]
2592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2593
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2594
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2595
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2596
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2597
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2598
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2599
+  (0.1ms) SAVEPOINT active_record_1
2600
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:26.211133"], ["updated_at", "2014-12-24 14:11:26.212100"]]
2601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
+ Redirected to http://test.host/
2603
+ Completed 302 Found in 11ms (ActiveRecord: 0.9ms)
2604
+  (0.2ms) rollback transaction
2605
+  (0.1ms) begin transaction
2606
+ -------------------------------------------------------------------------------------------------------------------
2607
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
2608
+ -------------------------------------------------------------------------------------------------------------------
2609
+  (0.1ms) SAVEPOINT active_record_1
2610
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2611
+ Binary data inserted for `string` type on column `encrypted_password`
2612
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.254232"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$VHJiQfSv1XVIuV/1GOTfAecjC3F.EFK9GSZIe2MIMEpVAn7n2sZ7y"], ["updated_at", "2014-12-24 14:11:26.254232"]]
2613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2614
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2615
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2616
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2617
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2618
+ Completed 406 Not Acceptable in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
2619
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2620
+  (0.2ms) rollback transaction
2621
+  (0.1ms) begin transaction
2622
+ ---------------------------------------------------------------------------------------------------------------------------
2623
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2624
+ ---------------------------------------------------------------------------------------------------------------------------
2625
+  (0.0ms) SAVEPOINT active_record_1
2626
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2627
+ Binary data inserted for `string` type on column `encrypted_password`
2628
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.271427"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SyDYrwy3eTtRUAf4RDAbp.bpW8EoG6GHrrXQTKTVazqG4jf/uBu0q"], ["updated_at", "2014-12-24 14:11:26.271427"]]
2629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2630
+  (0.0ms) SAVEPOINT active_record_1
2631
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:26.273625"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.272632"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.273625"]]
2632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2633
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2634
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2635
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2636
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2637
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2638
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2639
+  (0.1ms) SAVEPOINT active_record_1
2640
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:26.281920"], ["updated_at", "2014-12-24 14:11:26.282589"]]
2641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2642
+ Redirected to http://test.host/
2643
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
2644
+  (2.0ms) rollback transaction
2645
+  (0.1ms) begin transaction
2646
+ ------------------------------------------------------------------------------------
2647
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
2648
+ ------------------------------------------------------------------------------------
2649
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2650
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
2651
+  (0.1ms) rollback transaction
2652
+  (0.0ms) begin transaction
2653
+ ----------------------------------------------------------------------
2654
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
2655
+ ----------------------------------------------------------------------
2656
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2657
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2658
+  (0.1ms) rollback transaction
2659
+  (0.1ms) begin transaction
2660
+ --------------------------------------------------------------------------------------
2661
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
2662
+ --------------------------------------------------------------------------------------
2663
+  (0.1ms) SAVEPOINT active_record_1
2664
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2665
+ Binary data inserted for `string` type on column `encrypted_password`
2666
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.304038"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$h2ELlxWTzvwVdLEMnZxInuVj2bp8LclyXq3ioTfB5BIT6cEO/4OzC"], ["updated_at", "2014-12-24 14:11:26.304038"]]
2667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2668
+  (0.0ms) SAVEPOINT active_record_1
2669
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:26.306598"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.305499"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.306598"]]
2670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2671
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2672
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2673
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2674
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
2675
+  (0.2ms) rollback transaction
2676
+  (0.1ms) begin transaction
2677
+ -------------------------------------------------------------------------------------------------------------------
2678
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
2679
+ -------------------------------------------------------------------------------------------------------------------
2680
+  (0.1ms) SAVEPOINT active_record_1
2681
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2682
+ Binary data inserted for `string` type on column `encrypted_password`
2683
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.339280"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Jip8Jh1WqZut6Dco3VraheyXeRrPd91f0OMTpN5McSCQT32N1xaqy"], ["updated_at", "2014-12-24 14:11:26.339280"]]
2684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2685
+  (0.0ms) SAVEPOINT active_record_1
2686
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:26.341542"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.340579"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.341542"]]
2687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2688
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2689
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2690
+ Redirected to http://test.host/
2691
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2692
+  (0.2ms) rollback transaction
2693
+  (0.1ms) begin transaction
2694
+ -------------------------------------------------------------------------------------------------
2695
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
2696
+ -------------------------------------------------------------------------------------------------
2697
+  (0.0ms) rollback transaction
2698
+  (0.1ms) begin transaction
2699
+ ----------------------------------------------------------------------------------------------------------
2700
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
2701
+ ----------------------------------------------------------------------------------------------------------
2702
+  (0.0ms) rollback transaction
2703
+  (0.1ms) begin transaction
2704
+ ------------------------------------------------------------------------------------
2705
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
2706
+ ------------------------------------------------------------------------------------
2707
+  (0.1ms) SAVEPOINT active_record_1
2708
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2709
+ Binary data inserted for `string` type on column `encrypted_password`
2710
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.377038"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$QoGbcn/FwPCGwX.PJJuhRuCRjVlUmJo2UXJLy889qi7cPmghkeaK6"], ["updated_at", "2014-12-24 14:11:26.377038"]]
2711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2712
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
2713
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2714
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
2715
+  (0.2ms) rollback transaction
2716
+  (0.1ms) begin transaction
2717
+ ---------------------------------------------------------------------------------------------------------------------
2718
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
2719
+ ---------------------------------------------------------------------------------------------------------------------
2720
+  (0.1ms) SAVEPOINT active_record_1
2721
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2722
+ Binary data inserted for `string` type on column `encrypted_password`
2723
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:26.395893"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$WASCSiAh7rgRsUztYy2daubhQmza0vT6GWrbP4rHJf3M4k386vyPG"], ["updated_at", "2014-12-24 14:11:26.395893"]]
2724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2725
+  (0.1ms) SAVEPOINT active_record_1
2726
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:26.398204"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:26.397212"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:26.398204"]]
2727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2728
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2729
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2730
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2731
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2732
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2733
+ Completed 406 Not Acceptable in 18ms (Views: 2.0ms | ActiveRecord: 0.4ms)
2734
+  (0.2ms) rollback transaction
2735
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2736
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2737
+  (0.1ms) begin transaction
2738
+ ----------------------------------------------------------------------------------------------------------------------
2739
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
2740
+ ----------------------------------------------------------------------------------------------------------------------
2741
+  (0.1ms) SAVEPOINT active_record_1
2742
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2743
+ Binary data inserted for `string` type on column `encrypted_password`
2744
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.204163"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$8kq6DP966caaZHfHnTTApeJ75wgu5dclb5S5qAOSjwqUhLImuXT5S"], ["updated_at", "2014-12-24 14:11:55.204163"]]
2745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2746
+  (0.1ms) SAVEPOINT active_record_1
2747
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:55.223322"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.208288"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.223322"]]
2748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2749
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2750
+ SQL (0.1ms) DELETE FROM "users"
2751
+  (0.2ms) rollback transaction
2752
+  (0.1ms) begin transaction
2753
+ ---------------------------------------------------------------------------------------
2754
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
2755
+ ---------------------------------------------------------------------------------------
2756
+  (0.1ms) SAVEPOINT active_record_1
2757
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2758
+ Binary data inserted for `string` type on column `encrypted_password`
2759
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.242462"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$giYha/6zUMKqPbITUPT9veZhD8VJsiBWyQvzPpRwEf1TRTU2fPpmu"], ["updated_at", "2014-12-24 14:11:55.242462"]]
2760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2761
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2762
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2763
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2764
+  (0.1ms) SAVEPOINT active_record_1
2765
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-24 14:11:55.272340"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.271110"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.272340"]]
2766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2767
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2768
+  (0.0ms) SAVEPOINT active_record_1
2769
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-24 14:11:55.274606"], ["updated_at", "2014-12-24 14:11:55.275218"]]
2770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2771
+ Redirected to http://test.host/
2772
+ Completed 302 Found in 15ms (ActiveRecord: 0.9ms)
2773
+  (0.2ms) rollback transaction
2774
+  (0.1ms) begin transaction
2775
+ -------------------------------------------------------------------------------------------------------
2776
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
2777
+ -------------------------------------------------------------------------------------------------------
2778
+  (0.1ms) SAVEPOINT active_record_1
2779
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2780
+ Binary data inserted for `string` type on column `encrypted_password`
2781
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.286716"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$bZIofat2zt/CqKbgRkAi3.2toJEppLJU0W9VFQQ8qXedeNa9n6Aci"], ["updated_at", "2014-12-24 14:11:55.286716"]]
2782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2783
+  (0.1ms) SAVEPOINT active_record_1
2784
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:55.289262"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.287963"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.289262"]]
2785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2786
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2787
+ SQL (0.1ms) DELETE FROM "users"
2788
+  (0.2ms) rollback transaction
2789
+  (0.1ms) begin transaction
2790
+ --------------------------------------------------------------------------------------------------------------
2791
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
2792
+ --------------------------------------------------------------------------------------------------------------
2793
+  (0.1ms) SAVEPOINT active_record_1
2794
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2795
+ Binary data inserted for `string` type on column `encrypted_password`
2796
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.298446"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$02aTaZpjlspoI5VOQxejKug2CjCEezPkKzftNzWcausnexw4Sm1r6"], ["updated_at", "2014-12-24 14:11:55.298446"]]
2797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2798
+  (0.0ms) SAVEPOINT active_record_1
2799
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-24 14:11:55.300617"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.299654"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.300617"]]
2800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2801
+ TwoFactorAuth::Registration Load (0.4ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2802
+ SQL (0.1ms) DELETE FROM "users"
2803
+  (0.2ms) rollback transaction
2804
+  (0.2ms) begin transaction
2805
+ -------------------------------------------------------------------------------------------------
2806
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
2807
+ -------------------------------------------------------------------------------------------------
2808
+  (0.1ms) rollback transaction
2809
+  (0.1ms) begin transaction
2810
+ ----------------------------------------------------------------------------------------------------------
2811
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
2812
+ ----------------------------------------------------------------------------------------------------------
2813
+  (0.1ms) rollback transaction
2814
+  (0.1ms) begin transaction
2815
+ ---------------------------------------------------------------------------------------------------------------------------
2816
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2817
+ ---------------------------------------------------------------------------------------------------------------------------
2818
+  (0.1ms) SAVEPOINT active_record_1
2819
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2820
+ Binary data inserted for `string` type on column `encrypted_password`
2821
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.355529"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$liuMYCoLE8B3/G9qZqh2jekEnXMXzRI8.pq1Tyhz9hnSUHZx1dgN2"], ["updated_at", "2014-12-24 14:11:55.355529"]]
2822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2823
+  (0.0ms) SAVEPOINT active_record_1
2824
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:55.357941"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.356937"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.357941"]]
2825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2826
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2827
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2829
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2830
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2831
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2832
+  (0.1ms) SAVEPOINT active_record_1
2833
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:55.368557"], ["updated_at", "2014-12-24 14:11:55.369368"]]
2834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2835
+ Redirected to http://test.host/
2836
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
2837
+  (0.2ms) rollback transaction
2838
+  (0.1ms) begin transaction
2839
+ -------------------------------------------------------------------------------------------------------------------------
2840
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2841
+ -------------------------------------------------------------------------------------------------------------------------
2842
+  (0.1ms) SAVEPOINT active_record_1
2843
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2844
+ Binary data inserted for `string` type on column `encrypted_password`
2845
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.377389"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$JqAiLHMMmagHiMa4RtSgyuGup3/lZOkPRiw1drZz.7g7QpIYELAhy"], ["updated_at", "2014-12-24 14:11:55.377389"]]
2846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2847
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2848
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2849
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2851
+  (0.1ms) SAVEPOINT active_record_1
2852
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-24 14:11:55.385844"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.384715"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.385844"]]
2853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2854
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2855
+  (0.0ms) SAVEPOINT active_record_1
2856
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-24 14:11:55.388247"], ["updated_at", "2014-12-24 14:11:55.388780"]]
2857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2858
+ Redirected to http://test.host/
2859
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
2860
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? [["login_id", 1], ["login_type", "User"]]
2861
+  (0.2ms) rollback transaction
2862
+  (0.1ms) begin transaction
2863
+ ---------------------------------------------------------------------------------------------------------------------
2864
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
2865
+ ---------------------------------------------------------------------------------------------------------------------
2866
+  (0.7ms) SAVEPOINT active_record_1
2867
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2868
+ Binary data inserted for `string` type on column `encrypted_password`
2869
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.398601"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$un2wokqG47sZpc986.Az3ePSEBqdkXDhJ5finX3jtH/2rf8ptBaH."], ["updated_at", "2014-12-24 14:11:55.398601"]]
2870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2871
+  (0.0ms) SAVEPOINT active_record_1
2872
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:55.400919"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.399982"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.400919"]]
2873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2874
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2875
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2876
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2877
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2878
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2879
+ Completed 406 Not Acceptable in 24ms (Views: 19.5ms | ActiveRecord: 0.4ms)
2880
+  (0.2ms) rollback transaction
2881
+  (0.1ms) begin transaction
2882
+ ------------------------------------------------------------------------------------
2883
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
2884
+ ------------------------------------------------------------------------------------
2885
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2886
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2887
+  (0.1ms) rollback transaction
2888
+  (0.0ms) begin transaction
2889
+ ----------------------------------------------------------------------
2890
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
2891
+ ----------------------------------------------------------------------
2892
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
2893
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2894
+  (0.1ms) rollback transaction
2895
+  (0.1ms) begin transaction
2896
+ ------------------------------------------------------------------------------------------------------------------
2897
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
2898
+ ------------------------------------------------------------------------------------------------------------------
2899
+  (0.0ms) rollback transaction
2900
+  (0.1ms) begin transaction
2901
+ -----------------------------------------------------------------------------------------
2902
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
2903
+ -----------------------------------------------------------------------------------------
2904
+  (0.1ms) SAVEPOINT active_record_1
2905
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2906
+ Binary data inserted for `string` type on column `encrypted_password`
2907
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.450697"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$6TRXaq/PLZK.GHjDsbTPzelMvP8.DWMKYv39G0ClUkgRsqb9Ef72u"], ["updated_at", "2014-12-24 14:11:55.450697"]]
2908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2909
+  (0.0ms) SAVEPOINT active_record_1
2910
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:55.453333"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.452035"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.453333"]]
2911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2912
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
2913
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
2914
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2915
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
2916
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2917
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2918
+  (0.1ms) SAVEPOINT active_record_1
2919
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:55.462639"], ["updated_at", "2014-12-24 14:11:55.463339"]]
2920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2921
+ Redirected to http://test.host/
2922
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
2923
+  (0.2ms) rollback transaction
2924
+  (0.1ms) begin transaction
2925
+ ------------------------------------------------------------------------------------
2926
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
2927
+ ------------------------------------------------------------------------------------
2928
+  (0.1ms) SAVEPOINT active_record_1
2929
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2930
+ Binary data inserted for `string` type on column `encrypted_password`
2931
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.478360"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$d5QZO0maQNfAZUBoZG6Px.0S5pqW7HJXhwBgmg3t6wACBilj2.2kS"], ["updated_at", "2014-12-24 14:11:55.478360"]]
2932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2933
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
2934
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2935
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.2ms)
2936
+  (0.2ms) rollback transaction
2937
+  (0.1ms) begin transaction
2938
+ --------------------------------------------------------------------------------------
2939
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
2940
+ --------------------------------------------------------------------------------------
2941
+  (0.1ms) SAVEPOINT active_record_1
2942
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2943
+ Binary data inserted for `string` type on column `encrypted_password`
2944
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.510453"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$659SK4fh8UwYi0NyJptLHeGZycM2MRuDLDKUtSdFTmWAmDrm68dHi"], ["updated_at", "2014-12-24 14:11:55.510453"]]
2945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2946
+  (0.0ms) SAVEPOINT active_record_1
2947
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:55.512915"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.511918"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.512915"]]
2948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2949
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2950
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2951
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
2952
+ Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)
2953
+  (0.2ms) rollback transaction
2954
+  (0.1ms) begin transaction
2955
+ -------------------------------------------------------------------------------------------------------------------
2956
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
2957
+ -------------------------------------------------------------------------------------------------------------------
2958
+  (0.1ms) SAVEPOINT active_record_1
2959
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2960
+ Binary data inserted for `string` type on column `encrypted_password`
2961
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.528390"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Bet4KY.8.Dq2SwATs6E73uJBHI9B8m5QcA2v3cb8Tfqw1oOK3sYEW"], ["updated_at", "2014-12-24 14:11:55.528390"]]
2962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2963
+  (0.1ms) SAVEPOINT active_record_1
2964
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-24 14:11:55.530795"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-24 14:11:55.529785"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-24 14:11:55.530795"]]
2965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2966
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2967
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
2968
+ Redirected to http://test.host/
2969
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2970
+  (0.2ms) rollback transaction
2971
+  (0.1ms) begin transaction
2972
+ -------------------------------------------------------------------------------------------------------------------
2973
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
2974
+ -------------------------------------------------------------------------------------------------------------------
2975
+  (0.1ms) SAVEPOINT active_record_1
2976
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2977
+ Binary data inserted for `string` type on column `encrypted_password`
2978
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-24 14:11:55.589526"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SxGAuEJnatelbVS.PX.5tuKGCJOsxp6gwE7VDYTWqZPMFtxTcMt2W"], ["updated_at", "2014-12-24 14:11:55.589526"]]
2979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2980
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2981
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
2982
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
2983
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
2984
+ Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)
2985
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2986
+  (0.2ms) rollback transaction
2987
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2988
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2989
+  (0.1ms) begin transaction
2990
+ -------------------------------------------------------------------------------------------------------------------------
2991
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
2992
+ -------------------------------------------------------------------------------------------------------------------------
2993
+  (0.1ms) SAVEPOINT active_record_1
2994
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
2995
+ Binary data inserted for `string` type on column `encrypted_password`
2996
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.790511"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$df8NjDF2JFwqmDIiowOF/ONfOLlfQ1vrtqqCDX5PXbW0yygqmoPOy"], ["updated_at", "2014-12-26 04:58:36.790511"]]
2997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2998
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
2999
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3000
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3001
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3002
+  (0.1ms) SAVEPOINT active_record_1
3003
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-26 04:58:36.830193"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:36.815614"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:36.830193"]]
3004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3005
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3006
+  (0.1ms) SAVEPOINT active_record_1
3007
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-26 04:58:36.854637"], ["updated_at", "2014-12-26 04:58:36.855441"]]
3008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3009
+ Redirected to http://test.host/
3010
+ Completed 302 Found in 56ms (ActiveRecord: 1.3ms)
3011
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? [["login_id", 1], ["login_type", "User"]]
3012
+  (0.2ms) rollback transaction
3013
+  (0.1ms) begin transaction
3014
+ -------------------------------------------------------------------------------------------------------------------
3015
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
3016
+ -------------------------------------------------------------------------------------------------------------------
3017
+  (0.1ms) SAVEPOINT active_record_1
3018
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3019
+ Binary data inserted for `string` type on column `encrypted_password`
3020
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.894633"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$WpySitgaWz2HgQpqJXb.yOv0nk24vSgVTp.RnwEa/ezpR7aedLjcq"], ["updated_at", "2014-12-26 04:58:36.894633"]]
3021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3022
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
3023
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3024
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3025
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3026
+ Completed 406 Not Acceptable in 28ms (Views: 23.7ms | ActiveRecord: 0.2ms)
3027
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
3028
+  (0.2ms) rollback transaction
3029
+  (0.1ms) begin transaction
3030
+ -------------------------------------------------------------------------------------------------------
3031
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
3032
+ -------------------------------------------------------------------------------------------------------
3033
+  (0.1ms) SAVEPOINT active_record_1
3034
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3035
+ Binary data inserted for `string` type on column `encrypted_password`
3036
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.938188"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$iFssXlOadHSYfNSIGJmAaeVYcfbvbsDmmhI37dQKXXpeJUvF8bf5q"], ["updated_at", "2014-12-26 04:58:36.938188"]]
3037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3038
+  (0.0ms) SAVEPOINT active_record_1
3039
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 04:58:36.940385"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:36.939425"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:36.940385"]]
3040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3041
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3042
+ SQL (0.2ms) DELETE FROM "users"
3043
+  (0.2ms) rollback transaction
3044
+  (0.1ms) begin transaction
3045
+ --------------------------------------------------------------------------------------------------------------
3046
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
3047
+ --------------------------------------------------------------------------------------------------------------
3048
+  (0.1ms) SAVEPOINT active_record_1
3049
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3050
+ Binary data inserted for `string` type on column `encrypted_password`
3051
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.948190"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$LIvW1xP.yM0rmYfKnoAG5e8AH6uOA/O3xRPQDkaYXZKjK5yYrojSm"], ["updated_at", "2014-12-26 04:58:36.948190"]]
3052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3053
+  (0.0ms) SAVEPOINT active_record_1
3054
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 04:58:36.950267"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:36.949402"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:36.950267"]]
3055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3056
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3057
+ SQL (0.1ms) DELETE FROM "users"
3058
+  (0.2ms) rollback transaction
3059
+  (0.1ms) begin transaction
3060
+ --------------------------------------------------------------------------------------
3061
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
3062
+ --------------------------------------------------------------------------------------
3063
+  (0.0ms) SAVEPOINT active_record_1
3064
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3065
+ Binary data inserted for `string` type on column `encrypted_password`
3066
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.958061"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$E51sA.b9T0VmNh/s5pCqlu24SIOB/vbQ8YOK2BhEJWXokXBjY0Pgm"], ["updated_at", "2014-12-26 04:58:36.958061"]]
3067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3068
+  (0.0ms) SAVEPOINT active_record_1
3069
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 04:58:36.960114"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:36.959252"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:36.960114"]]
3070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3071
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
3072
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3073
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3074
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)
3075
+  (0.2ms) rollback transaction
3076
+  (0.1ms) begin transaction
3077
+ -------------------------------------------------------------------------------------------------------------------
3078
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
3079
+ -------------------------------------------------------------------------------------------------------------------
3080
+  (0.1ms) SAVEPOINT active_record_1
3081
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3082
+ Binary data inserted for `string` type on column `encrypted_password`
3083
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:36.994653"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$NpGh6CIuqsyz0.JKFiUQlOQ9y7Nl3ZXeAJ2c/3X/5OByS0UDIOLvW"], ["updated_at", "2014-12-26 04:58:36.994653"]]
3084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3085
+  (0.0ms) SAVEPOINT active_record_1
3086
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 04:58:36.996842"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:36.995884"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:36.996842"]]
3087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3088
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3089
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
3090
+ Redirected to http://test.host/
3091
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3092
+  (0.2ms) rollback transaction
3093
+  (0.1ms) begin transaction
3094
+ ------------------------------------------------------------------------------------
3095
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
3096
+ ------------------------------------------------------------------------------------
3097
+  (0.1ms) SAVEPOINT active_record_1
3098
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3099
+ Binary data inserted for `string` type on column `encrypted_password`
3100
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.010219"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$WDEHVGKvYtDF6z2A3cIL0OtTfCkAPaBP03O69kbqfQiZrQVYvW0V2"], ["updated_at", "2014-12-26 04:58:37.010219"]]
3101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3102
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
3103
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3104
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
3105
+  (0.2ms) rollback transaction
3106
+  (0.1ms) begin transaction
3107
+ ---------------------------------------------------------------------------------------------------------------------------
3108
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
3109
+ ---------------------------------------------------------------------------------------------------------------------------
3110
+  (0.1ms) SAVEPOINT active_record_1
3111
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3112
+ Binary data inserted for `string` type on column `encrypted_password`
3113
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.023354"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$eealeyFuvK7UlItidZBmueVe3SWp76KS7cprR3SlLKZy994.yqUn6"], ["updated_at", "2014-12-26 04:58:37.023354"]]
3114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3115
+  (0.0ms) SAVEPOINT active_record_1
3116
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 04:58:37.025499"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:37.024503"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:37.025499"]]
3117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3118
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3119
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3120
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3121
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3122
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3123
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3124
+  (0.1ms) SAVEPOINT active_record_1
3125
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-26 04:58:37.035366"], ["updated_at", "2014-12-26 04:58:37.036150"]]
3126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3127
+ Redirected to http://test.host/
3128
+ Completed 302 Found in 9ms (ActiveRecord: 1.4ms)
3129
+  (0.2ms) rollback transaction
3130
+  (0.1ms) begin transaction
3131
+ -----------------------------------------------------------------------------------------
3132
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
3133
+ -----------------------------------------------------------------------------------------
3134
+  (0.1ms) SAVEPOINT active_record_1
3135
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3136
+ Binary data inserted for `string` type on column `encrypted_password`
3137
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.048442"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$AFIVKMlQ8wBP3mEoe4L.T.S32GJd9JG6GS1PidzH5JdNyvpc3j9xy"], ["updated_at", "2014-12-26 04:58:37.048442"]]
3138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3139
+  (0.0ms) SAVEPOINT active_record_1
3140
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 04:58:37.050712"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:37.049710"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:37.050712"]]
3141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3142
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3143
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3144
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3145
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3146
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3147
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3148
+  (0.1ms) SAVEPOINT active_record_1
3149
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-26 04:58:37.059154"], ["updated_at", "2014-12-26 04:58:37.059850"]]
3150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3151
+ Redirected to http://test.host/
3152
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
3153
+  (0.2ms) rollback transaction
3154
+  (0.1ms) begin transaction
3155
+ ------------------------------------------------------------------------------------
3156
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
3157
+ ------------------------------------------------------------------------------------
3158
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
3159
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
3160
+  (0.1ms) rollback transaction
3161
+  (0.5ms) begin transaction
3162
+ ----------------------------------------------------------------------
3163
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
3164
+ ----------------------------------------------------------------------
3165
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
3166
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
3167
+  (0.1ms) rollback transaction
3168
+  (0.1ms) begin transaction
3169
+ ----------------------------------------------------------------------------------------------------------------------
3170
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
3171
+ ----------------------------------------------------------------------------------------------------------------------
3172
+  (0.0ms) SAVEPOINT active_record_1
3173
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3174
+ Binary data inserted for `string` type on column `encrypted_password`
3175
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.081039"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ipbu8/920ZoJ.9SXDtb7h.Ygz.LPcYwPPtha2nyUNS3D.d4ptpt/K"], ["updated_at", "2014-12-26 04:58:37.081039"]]
3176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3177
+  (0.0ms) SAVEPOINT active_record_1
3178
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 04:58:37.083243"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:37.082247"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:37.083243"]]
3179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3180
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3181
+ SQL (0.1ms) DELETE FROM "users"
3182
+  (0.2ms) rollback transaction
3183
+  (0.1ms) begin transaction
3184
+ ------------------------------------------------------------------------------------------------------------------
3185
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
3186
+ ------------------------------------------------------------------------------------------------------------------
3187
+  (0.1ms) rollback transaction
3188
+  (0.1ms) begin transaction
3189
+ -------------------------------------------------------------------------------------------------
3190
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
3191
+ -------------------------------------------------------------------------------------------------
3192
+  (0.1ms) rollback transaction
3193
+  (0.1ms) begin transaction
3194
+ ----------------------------------------------------------------------------------------------------------
3195
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
3196
+ ----------------------------------------------------------------------------------------------------------
3197
+  (0.1ms) rollback transaction
3198
+  (0.1ms) begin transaction
3199
+ ---------------------------------------------------------------------------------------------------------------------
3200
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
3201
+ ---------------------------------------------------------------------------------------------------------------------
3202
+  (0.1ms) SAVEPOINT active_record_1
3203
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3204
+ Binary data inserted for `string` type on column `encrypted_password`
3205
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.173479"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ykQ8wV.IxZMIdHrdbOmbL.P0r0Jv2.wavohkD0qxLXdvbyXSvvm62"], ["updated_at", "2014-12-26 04:58:37.173479"]]
3206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3207
+  (0.0ms) SAVEPOINT active_record_1
3208
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 04:58:37.175675"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:37.174697"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:37.175675"]]
3209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3210
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3211
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3212
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3213
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3214
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3215
+ Completed 406 Not Acceptable in 6ms (Views: 2.0ms | ActiveRecord: 0.4ms)
3216
+  (0.2ms) rollback transaction
3217
+  (0.1ms) begin transaction
3218
+ ---------------------------------------------------------------------------------------
3219
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
3220
+ ---------------------------------------------------------------------------------------
3221
+  (0.1ms) SAVEPOINT active_record_1
3222
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3223
+ Binary data inserted for `string` type on column `encrypted_password`
3224
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 04:58:37.193346"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$EqL.OEHJ0KWihYydpiv6juD/rH.DiyUuaHJI3T1bxsC1OYEs.i3eq"], ["updated_at", "2014-12-26 04:58:37.193346"]]
3225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3226
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3227
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3228
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3229
+  (0.1ms) SAVEPOINT active_record_1
3230
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-26 04:58:37.200928"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 04:58:37.199814"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 04:58:37.200928"]]
3231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3232
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3233
+  (0.0ms) SAVEPOINT active_record_1
3234
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-26 04:58:37.203219"], ["updated_at", "2014-12-26 04:58:37.203770"]]
3235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3236
+ Redirected to http://test.host/
3237
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
3238
+  (0.2ms) rollback transaction
3239
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3240
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3241
+  (0.1ms) begin transaction
3242
+ -------------------------------------------------------------------------------------------------------
3243
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
3244
+ -------------------------------------------------------------------------------------------------------
3245
+  (0.1ms) SAVEPOINT active_record_1
3246
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3247
+ Binary data inserted for `string` type on column `encrypted_password`
3248
+ SQL (4.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.393000"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$ucfSfamhovyWAjnoeHq9JOXroqczisyfBLmG5ZPVa0CIuDmR/j05G"], ["updated_at", "2014-12-26 06:09:53.393000"]]
3249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3250
+  (0.1ms) SAVEPOINT active_record_1
3251
+ SQL (0.4ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 06:09:53.420613"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.405042"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.420613"]]
3252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3253
+ TwoFactorAuth::Registration Load (0.3ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3254
+ SQL (0.1ms) DELETE FROM "users"
3255
+  (0.2ms) rollback transaction
3256
+  (0.1ms) begin transaction
3257
+ --------------------------------------------------------------------------------------------------------------
3258
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
3259
+ --------------------------------------------------------------------------------------------------------------
3260
+  (0.1ms) SAVEPOINT active_record_1
3261
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3262
+ Binary data inserted for `string` type on column `encrypted_password`
3263
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.438909"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$sTmWt5bc9xrohydg82.uBuXPqvBiVZWS.P50QeKA/Rh4yzxLdaROC"], ["updated_at", "2014-12-26 06:09:53.438909"]]
3264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3265
+  (0.1ms) SAVEPOINT active_record_1
3266
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 06:09:53.441548"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.440535"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.441548"]]
3267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3268
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3269
+ SQL (0.1ms) DELETE FROM "users"
3270
+  (0.2ms) rollback transaction
3271
+  (0.1ms) begin transaction
3272
+ -------------------------------------------------------------------------------------------------------------------------
3273
+ TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
3274
+ -------------------------------------------------------------------------------------------------------------------------
3275
+  (0.1ms) SAVEPOINT active_record_1
3276
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3277
+ Binary data inserted for `string` type on column `encrypted_password`
3278
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.450021"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$0hdjc7/0K/cgtgHZfdv0jeqXY6Yw0kPFDyAeH4f.L1WyDMW6JY/Oi"], ["updated_at", "2014-12-26 06:09:53.450021"]]
3279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3280
+  (0.2ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
3281
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3282
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3283
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3284
+  (0.1ms) SAVEPOINT active_record_1
3285
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-26 06:09:53.492012"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.490729"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.492012"]]
3286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3287
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3288
+  (0.1ms) SAVEPOINT active_record_1
3289
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-26 06:09:53.494292"], ["updated_at", "2014-12-26 06:09:53.494933"]]
3290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3291
+ Redirected to http://test.host/
3292
+ Completed 302 Found in 30ms (ActiveRecord: 1.0ms)
3293
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? [["login_id", 1], ["login_type", "User"]]
3294
+  (0.2ms) rollback transaction
3295
+  (0.1ms) begin transaction
3296
+ ------------------------------------------------------------------------------------------------------------------
3297
+ TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
3298
+ ------------------------------------------------------------------------------------------------------------------
3299
+  (0.0ms) rollback transaction
3300
+  (0.2ms) begin transaction
3301
+ -----------------------------------------------------------------------------------------
3302
+ TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
3303
+ -----------------------------------------------------------------------------------------
3304
+  (0.1ms) SAVEPOINT active_record_1
3305
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3306
+ Binary data inserted for `string` type on column `encrypted_password`
3307
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.548137"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$tZVE6.txZNayVbkDF6szlO4xR5K9FzpwzVTDBgbR7WZ2u0Bt1PKPO"], ["updated_at", "2014-12-26 06:09:53.548137"]]
3308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3309
+  (0.0ms) SAVEPOINT active_record_1
3310
+ SQL (0.3ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 06:09:53.550412"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.549406"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.550412"]]
3311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3312
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3313
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3314
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3315
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3316
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3317
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3318
+  (0.1ms) SAVEPOINT active_record_1
3319
+ SQL (0.2ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-26 06:09:53.561735"], ["updated_at", "2014-12-26 06:09:53.562533"]]
3320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3321
+ Redirected to http://test.host/
3322
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
3323
+  (0.2ms) rollback transaction
3324
+  (0.1ms) begin transaction
3325
+ ---------------------------------------------------------------------------------------------------------------------------
3326
+ TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
3327
+ ---------------------------------------------------------------------------------------------------------------------------
3328
+  (0.0ms) SAVEPOINT active_record_1
3329
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3330
+ Binary data inserted for `string` type on column `encrypted_password`
3331
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.581670"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$sIjtlTxBMWqnpaIcbYBmLejwkNtwSGhi7iMjNq210j4tSOR9UeHv."], ["updated_at", "2014-12-26 06:09:53.581670"]]
3332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3333
+  (0.0ms) SAVEPOINT active_record_1
3334
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 06:09:53.584070"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.582928"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.584070"]]
3335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3336
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3337
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3338
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3339
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3340
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3341
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3342
+  (0.1ms) SAVEPOINT active_record_1
3343
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["counter", 16], ["last_authenticated_at", "2014-12-26 06:09:53.593495"], ["updated_at", "2014-12-26 06:09:53.594234"]]
3344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3345
+ Redirected to http://test.host/
3346
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
3347
+  (0.2ms) rollback transaction
3348
+  (0.1ms) begin transaction
3349
+ -------------------------------------------------------------------------------------------------
3350
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
3351
+ -------------------------------------------------------------------------------------------------
3352
+  (0.0ms) rollback transaction
3353
+  (0.1ms) begin transaction
3354
+ ----------------------------------------------------------------------------------------------------------
3355
+ TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
3356
+ ----------------------------------------------------------------------------------------------------------
3357
+  (0.0ms) rollback transaction
3358
+  (0.1ms) begin transaction
3359
+ ----------------------------------------------------------------------------------------------------------------------
3360
+ TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
3361
+ ----------------------------------------------------------------------------------------------------------------------
3362
+  (0.0ms) SAVEPOINT active_record_1
3363
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3364
+ Binary data inserted for `string` type on column `encrypted_password`
3365
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.607971"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$0fw0EPOX.rik9mFgOLPc2u8FYTpYFPmKiFfcG/PcJmf48t7qJ4SZC"], ["updated_at", "2014-12-26 06:09:53.607971"]]
3366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3367
+  (0.0ms) SAVEPOINT active_record_1
3368
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<11 bytes of binary data>"], ["created_at", "2014-12-26 06:09:53.610084"], ["key_handle", "<10 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.609135"], ["login_id", 1], ["login_type", "User"], ["public_key", "<10 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.610084"]]
3369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3370
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3371
+ SQL (0.1ms) DELETE FROM "users"
3372
+  (0.2ms) rollback transaction
3373
+  (0.1ms) begin transaction
3374
+ -------------------------------------------------------------------------------------------------------------------
3375
+ TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
3376
+ -------------------------------------------------------------------------------------------------------------------
3377
+  (0.1ms) SAVEPOINT active_record_1
3378
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3379
+ Binary data inserted for `string` type on column `encrypted_password`
3380
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.618747"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$awTgin4T86G40neXZDeUX.Jh5tWzU/VTHPgjsXrLk72sTq.ft1Dku"], ["updated_at", "2014-12-26 06:09:53.618747"]]
3381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3382
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
3383
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3384
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3386
+ Completed 406 Not Acceptable in 27ms (Views: 22.6ms | ActiveRecord: 0.2ms)
3387
+  (0.1ms) SELECT COUNT(*) FROM "two_factor_auth_registrations"
3388
+  (0.2ms) rollback transaction
3389
+  (0.1ms) begin transaction
3390
+ ---------------------------------------------------------------------------------------
3391
+ TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
3392
+ ---------------------------------------------------------------------------------------
3393
+  (0.0ms) SAVEPOINT active_record_1
3394
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3395
+ Binary data inserted for `string` type on column `encrypted_password`
3396
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.657161"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$yd/B4WapmOx4XTiQ.PU5cOeoPtdOWFAaKgVHRSMMshQXfpQDlAORK"], ["updated_at", "2014-12-26 06:09:53.657161"]]
3397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3398
+ Processing by TwoFactorAuth::RegistrationsController#create as HTML
3399
+ Parameters: {"clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6IjVmeGF6cWFuUkh0ZDdBdEVIQkd4eERwU2o2bWRCRjI2WEY0eGRBOW03SnciLCJvcmlnaW4iOiJodHRwOi8vbG9jYWwuZmlkb2xvZ2luLmNvbTozMDAwIiwiY2lkX3B1YmtleSI6IiJ9", "registrationData"=>"BQQqdFC3zhANYW9DmErAjFQYZjBExK22PLx-ViMOch04-wZ990aqOcF2gxS5gzSUDKzpPGXpliMk3UoXgYlC2QNuQGbQ4E5v_UrLCzT58SXg902p9JXmLboTF42QkuZXIbdea_97h96lVovJ7xrA-iWTrZiOSRVZoBZsTrCW64XMrUcwggIcMIIBBqADAgECAgQk26tAMAsGCSqGSIb3DQEBCzAuMSwwKgYDVQQDEyNZdWJpY28gVTJGIFJvb3QgQ0EgU2VyaWFsIDQ1NzIwMDYzMTAgFw0xNDA4MDEwMDAwMDBaGA8yMDUwMDkwNDAwMDAwMFowKzEpMCcGA1UEAwwgWXViaWNvIFUyRiBFRSBTZXJpYWwgMTM1MDMyNzc4ODgwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCsJS-NH1HeUHEd46-xcpN7SpHn6oeb-w5r-veDCBwy1vUvWnJanjjv4dR_rV5G436ysKUAXUcsVe5fAnkORo2oxIwEDAOBgorBgEEAYLECgEBBAAwCwYJKoZIhvcNAQELA4IBAQCjY64OmDrzC7rxLIst81pZvxy7ShsPy2jEhFWEkPaHNFhluNsCacNG5VOITCxWB68OonuQrIzx70MfcqwYnbIcgkkUvxeIpVEaM9B7TI40ZHzp9h4VFqmps26QCkAgYfaapG4SxTK5k_lCPvqqTPmjtlS03d7ykkpUj9WZlVEN1Pf02aTVIZOHPHHJuH6GhT6eLadejwxtKDBTdNTv3V4UlvjDOQYQe9aL1jUNqtLDeBHso8pDvJMLc0CX3vadaI2UVQxM-xip4kuGouXYj0mYmaCbzluBDFNsrzkNyL3elg3zMMrKvAUhoYMjlX_-vKWcqQsgsQ0JtSMcWMJ-umeDMEUCIQCPkI4L_gHM88JrqJj_ZNRghQyC0gJyCC9RBrnfI2mDTwIgPOuEiD1AOfRaGO_EaHi-z4XyIGDhkG8-BYH-syVY5_o"}
3400
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3401
+  (0.1ms) SAVEPOINT active_record_1
3402
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["created_at", "2014-12-26 06:09:53.664801"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.663535"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.664801"]]
3403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3404
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3405
+  (0.1ms) SAVEPOINT active_record_1
3406
+ SQL (0.1ms) UPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1 [["last_authenticated_at", "2014-12-26 06:09:53.667093"], ["updated_at", "2014-12-26 06:09:53.667656"]]
3407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3408
+ Redirected to http://test.host/
3409
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
3410
+  (0.2ms) rollback transaction
3411
+  (0.1ms) begin transaction
3412
+ --------------------------------------------------------------------------------------
3413
+ TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
3414
+ --------------------------------------------------------------------------------------
3415
+  (0.1ms) SAVEPOINT active_record_1
3416
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3417
+ Binary data inserted for `string` type on column `encrypted_password`
3418
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.674572"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$pAPW0mSwBk2ykR232f7NruLWXw6Fai/SMxzAPmnPZqfavPt6Kx0R6"], ["updated_at", "2014-12-26 06:09:53.674572"]]
3419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3420
+  (0.0ms) SAVEPOINT active_record_1
3421
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 06:09:53.676695"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.675772"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.676695"]]
3422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3423
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
3424
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3425
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3426
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.3ms)
3427
+  (0.3ms) rollback transaction
3428
+  (0.1ms) begin transaction
3429
+ -------------------------------------------------------------------------------------------------------------------
3430
+ TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
3431
+ -------------------------------------------------------------------------------------------------------------------
3432
+  (0.1ms) SAVEPOINT active_record_1
3433
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3434
+ Binary data inserted for `string` type on column `encrypted_password`
3435
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.709129"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$CeNqt6BrlIOwNInpkCvzluxoNz7GiY9ROr5bS3f20aKpCAvvJT3Ly"], ["updated_at", "2014-12-26 06:09:53.709129"]]
3436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3437
+  (0.0ms) SAVEPOINT active_record_1
3438
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 06:09:53.711491"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.710369"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.711491"]]
3439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3440
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3441
+ Processing by TwoFactorAuth::AuthenticationsController#new as HTML
3442
+ Redirected to http://test.host/
3443
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
3444
+  (0.2ms) rollback transaction
3445
+  (0.1ms) begin transaction
3446
+ ------------------------------------------------------------------------------------
3447
+ TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
3448
+ ------------------------------------------------------------------------------------
3449
+  (0.1ms) SAVEPOINT active_record_1
3450
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3451
+ Binary data inserted for `string` type on column `encrypted_password`
3452
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.722211"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$g61UT9J7d58JtOkj9uA7cuSgrNU97SNdNzNPCXAqPNQyCuVKXByCy"], ["updated_at", "2014-12-26 06:09:53.722211"]]
3453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3454
+ Processing by TwoFactorAuth::RegistrationsController#new as HTML
3455
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3456
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
3457
+  (0.2ms) rollback transaction
3458
+  (0.1ms) begin transaction
3459
+ ---------------------------------------------------------------------------------------------------------------------
3460
+ TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
3461
+ ---------------------------------------------------------------------------------------------------------------------
3462
+  (0.1ms) SAVEPOINT active_record_1
3463
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
3464
+ Binary data inserted for `string` type on column `encrypted_password`
3465
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-26 06:09:53.748007"], ["email", "user@example.com"], ["encrypted_password", "$2a$04$7A/2Hd3olnAznnojDh.sueuZsdqScT8olroHQGMGXCOXXnzqOi3y6"], ["updated_at", "2014-12-26 06:09:53.748007"]]
3466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3467
+  (0.1ms) SAVEPOINT active_record_1
3468
+ SQL (0.2ms) INSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["certificate", "<544 bytes of binary data>"], ["counter", 3], ["created_at", "2014-12-26 06:09:53.750320"], ["key_handle", "<64 bytes of binary data>"], ["last_authenticated_at", "2014-12-26 06:09:53.749323"], ["login_id", 1], ["login_type", "User"], ["public_key", "<65 bytes of binary data>"], ["updated_at", "2014-12-26 06:09:53.750320"]]
3469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3470
+ Processing by TwoFactorAuth::AuthenticationsController#create as HTML
3471
+ Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
3472
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3473
+ TwoFactorAuth::Registration Load (0.2ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
3474
+ TwoFactorAuth::Registration Load (0.1ms) SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ? ORDER BY "two_factor_auth_registrations"."id" ASC LIMIT 1 [["login_id", 1], ["login_type", "User"]]
3475
+ Completed 406 Not Acceptable in 8ms (Views: 3.0ms | ActiveRecord: 0.4ms)
3476
+  (0.2ms) rollback transaction
3477
+  (0.1ms) begin transaction
3478
+ ------------------------------------------------------------------------------------
3479
+ TwoFactorAuth::TrustedFacetsController: test_0001_returns the list of facets as json
3480
+ ------------------------------------------------------------------------------------
3481
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
3482
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
3483
+  (0.1ms) rollback transaction
3484
+  (0.0ms) begin transaction
3485
+ ----------------------------------------------------------------------
3486
+ TwoFactorAuth::TrustedFacetsController: test_0002_has the U2F mimetype
3487
+ ----------------------------------------------------------------------
3488
+ Processing by TwoFactorAuth::TrustedFacetsController#index as HTML
3489
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3490
+  (0.1ms) rollback transaction