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.
- checksums.yaml +7 -0
- data/LICENSE +634 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/two_factor_auth/application.js +13 -0
- data/app/assets/stylesheets/two_factor_auth/application.css +15 -0
- data/app/controllers/two_factor_auth/authentications_controller.rb +32 -0
- data/app/controllers/two_factor_auth/registrations_controller.rb +29 -0
- data/app/controllers/two_factor_auth/trusted_facets_controller.rb +10 -0
- data/app/controllers/two_factor_auth/two_factor_auth_controller.rb +19 -0
- data/app/helpers/two_factor_auth/application_helper.rb +21 -0
- data/app/helpers/two_factor_auth/authentications_helper.rb +17 -0
- data/app/helpers/two_factor_auth/registrations_helper.rb +17 -0
- data/app/models/two_factor_auth/authentication_client_data.rb +11 -0
- data/app/models/two_factor_auth/authentication_request.rb +30 -0
- data/app/models/two_factor_auth/authentication_response.rb +49 -0
- data/app/models/two_factor_auth/authentication_verifier.rb +68 -0
- data/app/models/two_factor_auth/client_data.rb +57 -0
- data/app/models/two_factor_auth/registration.rb +18 -0
- data/app/models/two_factor_auth/registration_request.rb +33 -0
- data/app/models/two_factor_auth/registration_response.rb +91 -0
- data/app/models/two_factor_auth/registration_verifier.rb +91 -0
- data/app/views/layouts/two_factor_auth/application.html.erb +16 -0
- data/app/views/two_factor_auth/authentications/new.html.erb +30 -0
- data/app/views/two_factor_auth/registrations/new.html.erb +26 -0
- data/config/routes.rb +3 -0
- data/lib/generators/templates/README +6 -0
- data/lib/generators/templates/initializer.rb +38 -0
- data/lib/generators/templates/migration.rb +15 -0
- data/lib/generators/two_factor_auth/install_generator.rb +32 -0
- data/lib/tasks/two_factor_auth_tasks.rake +13 -0
- data/lib/two_factor_auth/authentication_hook.rb +18 -0
- data/lib/two_factor_auth/engine.rb +5 -0
- data/lib/two_factor_auth/registration_hook.rb +17 -0
- data/lib/two_factor_auth/version.rb +3 -0
- data/lib/two_factor_auth.rb +155 -0
- data/test/controllers/two_factor_auth/authentications_controller_test.rb +70 -0
- data/test/controllers/two_factor_auth/registrations_controller_test.rb +57 -0
- data/test/controllers/two_factor_auth/trusted_facets_controller_test.rb +17 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/secrets_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +8 -0
- data/test/dummy/app/views/layouts/application.html.erb +16 -0
- data/test/dummy/app/views/secrets/index.html.erb +10 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +24 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/two_factor_auth.rb +38 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141026231953_devise_create_users.rb +42 -0
- data/test/dummy/db/migrate/20141224135949_create_two_factor_auth_registrations.rb +15 -0
- data/test/dummy/db/schema.rb +50 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +198 -0
- data/test/dummy/log/test.log +3490 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/helpers/two_factor_auth/authentication_helper_test.rb +54 -0
- data/test/helpers/two_factor_auth/registrations_helper_test.rb +34 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/lib/two_factor_auth_test.rb +169 -0
- data/test/models/two_factor_auth/authentication_request_test.rb +35 -0
- data/test/models/two_factor_auth/authentication_response_test.rb +44 -0
- data/test/models/two_factor_auth/authentication_verifier_test.rb +83 -0
- data/test/models/two_factor_auth/client_data_test.rb +79 -0
- data/test/models/two_factor_auth/registration_request_test.rb +29 -0
- data/test/models/two_factor_auth/registration_response_test.rb +87 -0
- data/test/models/two_factor_auth/registration_verifier_test.rb +96 -0
- data/test/test_helper.rb +43 -0
- metadata +351 -0
|
@@ -0,0 +1,3490 @@
|
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2
|
+
------------------------------------------------------------------------------------
|
|
3
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
4
|
+
------------------------------------------------------------------------------------
|
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
7
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
8
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
9
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
12
|
+
---------------------------------------------------------------------------------------
|
|
13
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
14
|
+
---------------------------------------------------------------------------------------
|
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
17
|
+
-----------------------------------------------------------------------------------------
|
|
18
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
19
|
+
-----------------------------------------------------------------------------------------
|
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
22
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
23
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
24
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
25
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
27
|
+
------------------------------------------------------------------------------------------------------------------
|
|
28
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
29
|
+
------------------------------------------------------------------------------------------------------------------
|
|
30
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
31
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
32
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
33
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
34
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
35
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
36
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
37
|
+
--------------------------------------------------------------------------------------
|
|
38
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
39
|
+
--------------------------------------------------------------------------------------
|
|
40
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
42
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
43
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
44
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
46
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
47
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
48
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
49
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
50
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
52
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
53
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
54
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
55
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
56
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
57
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
58
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
59
|
+
-------------------------------------------------------------------------------------------------
|
|
60
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
61
|
+
-------------------------------------------------------------------------------------------------
|
|
62
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
63
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
64
|
+
----------------------------------------------------------------------------------------------------------
|
|
65
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
66
|
+
----------------------------------------------------------------------------------------------------------
|
|
67
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
68
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
69
|
+
-------------------------------------------------------------------------------------------------------
|
|
70
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
71
|
+
-------------------------------------------------------------------------------------------------------
|
|
72
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users"[0m
|
|
73
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
74
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
75
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
76
|
+
--------------------------------------------------------------------------------------------------------------
|
|
77
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
78
|
+
--------------------------------------------------------------------------------------------------------------
|
|
79
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
80
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
81
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
82
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
89
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
96
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
97
|
+
---------------------------------------------------------------------------------------
|
|
98
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
99
|
+
---------------------------------------------------------------------------------------
|
|
100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
102
|
+
-------------------------------------------------------------------------------------------------
|
|
103
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
104
|
+
-------------------------------------------------------------------------------------------------
|
|
105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
107
|
+
----------------------------------------------------------------------------------------------------------
|
|
108
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
109
|
+
----------------------------------------------------------------------------------------------------------
|
|
110
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
112
|
+
------------------------------------------------------------------------------------
|
|
113
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
114
|
+
------------------------------------------------------------------------------------
|
|
115
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
117
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
118
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
119
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
120
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
121
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
122
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
123
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
124
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
125
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
126
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
127
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
129
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
130
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
131
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
132
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
133
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
134
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
135
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
136
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
137
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
139
|
+
-------------------------------------------------------------------------------------------------------
|
|
140
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
141
|
+
-------------------------------------------------------------------------------------------------------
|
|
142
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users"[0m
|
|
143
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
144
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
145
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
146
|
+
--------------------------------------------------------------------------------------------------------------
|
|
147
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
148
|
+
--------------------------------------------------------------------------------------------------------------
|
|
149
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
150
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
151
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
152
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
153
|
+
------------------------------------------------------------------------------------------------------------------
|
|
154
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
155
|
+
------------------------------------------------------------------------------------------------------------------
|
|
156
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
157
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
158
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
159
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
160
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
161
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
162
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
169
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
177
|
+
-----------------------------------------------------------------------------------------
|
|
178
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
179
|
+
-----------------------------------------------------------------------------------------
|
|
180
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
182
|
+
--------------------------------------------------------------------------------------
|
|
183
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
184
|
+
--------------------------------------------------------------------------------------
|
|
185
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
186
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
187
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
188
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
189
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
190
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
192
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
193
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
194
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
196
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
197
|
+
------------------------------------------------------------------------------------------------------------------
|
|
198
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
199
|
+
------------------------------------------------------------------------------------------------------------------
|
|
200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
202
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
203
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
204
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
207
|
+
-------------------------------------------------------------------------------------------------------
|
|
208
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
209
|
+
-------------------------------------------------------------------------------------------------------
|
|
210
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
211
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
212
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
214
|
+
--------------------------------------------------------------------------------------------------------------
|
|
215
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
216
|
+
--------------------------------------------------------------------------------------------------------------
|
|
217
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
218
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
219
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
221
|
+
-----------------------------------------------------------------------------------------
|
|
222
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
223
|
+
-----------------------------------------------------------------------------------------
|
|
224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
226
|
+
-------------------------------------------------------------------------------------------------
|
|
227
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
228
|
+
-------------------------------------------------------------------------------------------------
|
|
229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
231
|
+
----------------------------------------------------------------------------------------------------------
|
|
232
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
233
|
+
----------------------------------------------------------------------------------------------------------
|
|
234
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
236
|
+
---------------------------------------------------------------------------------------
|
|
237
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
238
|
+
---------------------------------------------------------------------------------------
|
|
239
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
255
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
256
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
257
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
260
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
261
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
262
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
263
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
264
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
265
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
267
|
+
------------------------------------------------------------------------------------
|
|
268
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
269
|
+
------------------------------------------------------------------------------------
|
|
270
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
271
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
272
|
+
--------------------------------------------------------------------------------------
|
|
273
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
274
|
+
--------------------------------------------------------------------------------------
|
|
275
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
277
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
278
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
279
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
280
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
282
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
283
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
284
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
285
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
287
|
+
--------------------------------------------------------------------------------------
|
|
288
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
289
|
+
--------------------------------------------------------------------------------------
|
|
290
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
292
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
293
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
294
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
295
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
297
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
298
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
299
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
302
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
303
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
304
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
305
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
307
|
+
------------------------------------------------------------------------------------
|
|
308
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
309
|
+
------------------------------------------------------------------------------------
|
|
310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
312
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
313
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
314
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
315
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
316
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
323
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
331
|
+
-------------------------------------------------------------------------------------------------------
|
|
332
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
333
|
+
-------------------------------------------------------------------------------------------------------
|
|
334
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
335
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
336
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
338
|
+
--------------------------------------------------------------------------------------------------------------
|
|
339
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
340
|
+
--------------------------------------------------------------------------------------------------------------
|
|
341
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
342
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
343
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
345
|
+
---------------------------------------------------------------------------------------
|
|
346
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
347
|
+
---------------------------------------------------------------------------------------
|
|
348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
350
|
+
-----------------------------------------------------------------------------------------
|
|
351
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
352
|
+
-----------------------------------------------------------------------------------------
|
|
353
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
355
|
+
------------------------------------------------------------------------------------------------------------------
|
|
356
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
357
|
+
------------------------------------------------------------------------------------------------------------------
|
|
358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
360
|
+
-------------------------------------------------------------------------------------------------
|
|
361
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
362
|
+
-------------------------------------------------------------------------------------------------
|
|
363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
365
|
+
----------------------------------------------------------------------------------------------------------
|
|
366
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
367
|
+
----------------------------------------------------------------------------------------------------------
|
|
368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
370
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
371
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
372
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
373
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users"
|
|
374
|
+
SQLite3::SQLException: no such table: users: DELETE FROM "users"
|
|
375
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
377
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
378
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
379
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
380
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
381
|
+
[1m[36m (40.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
382
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
383
|
+
[1m[36m (16.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
384
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
385
|
+
Migrating to DeviseCreateUsers (20141026231953)
|
|
386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
387
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
|
389
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
|
398
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141026231953"]]
|
|
399
|
+
[1m[36m (39.3ms)[0m [1mcommit transaction[0m
|
|
400
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
401
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
|
409
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
418
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
419
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
420
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
421
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
422
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
423
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
424
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
425
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
426
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
428
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
429
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
430
|
+
------------------------------------------------------------------------------------
|
|
431
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
432
|
+
------------------------------------------------------------------------------------
|
|
433
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
434
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
435
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
436
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
438
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
439
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
443
|
+
---------------------------------------------------------------------------------------
|
|
444
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
445
|
+
---------------------------------------------------------------------------------------
|
|
446
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
447
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
454
|
+
Completed 406 Not Acceptable in 7ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
|
455
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
456
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
457
|
+
-------------------------------------------------------------------------------------------------
|
|
458
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
459
|
+
-------------------------------------------------------------------------------------------------
|
|
460
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
461
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
462
|
+
----------------------------------------------------------------------------------------------------------
|
|
463
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
464
|
+
----------------------------------------------------------------------------------------------------------
|
|
465
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
467
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
468
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
469
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
470
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
471
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
472
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
473
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
475
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
476
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
477
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
478
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
479
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
480
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
481
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
482
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
483
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
485
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
486
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
488
|
+
--------------------------------------------------------------------------------------
|
|
489
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
490
|
+
--------------------------------------------------------------------------------------
|
|
491
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
492
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
496
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
497
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
498
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
499
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
500
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
502
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
506
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
508
|
+
-----------------------------------------------------------------------------------------
|
|
509
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
510
|
+
-----------------------------------------------------------------------------------------
|
|
511
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
512
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
518
|
+
------------------------------------------------------------------------------------------------------------------
|
|
519
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
520
|
+
------------------------------------------------------------------------------------------------------------------
|
|
521
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
523
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
524
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
525
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
526
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
527
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
531
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
533
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
534
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
535
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
537
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
541
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
542
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
549
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
557
|
+
-------------------------------------------------------------------------------------------------------
|
|
558
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
559
|
+
-------------------------------------------------------------------------------------------------------
|
|
560
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
561
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
565
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
566
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
568
|
+
--------------------------------------------------------------------------------------------------------------
|
|
569
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
570
|
+
--------------------------------------------------------------------------------------------------------------
|
|
571
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
572
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
573
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
574
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
576
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
577
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
579
|
+
Migrating to CreateTwoFactorAuthRegistrations (20141224135949)
|
|
580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
581
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
|
582
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
583
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_two_factor_auth_registrations_on_login_id_and_login_type" ON "two_factor_auth_registrations" ("login_id", "login_type")[0m
|
|
584
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_two_factor_auth_registrations_on_key_handle" ON "two_factor_auth_registrations" ("key_handle")[0m
|
|
593
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
|
609
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_two_factor_auth_registrations_on_last_authenticated_at" ON "two_factor_auth_registrations" ("last_authenticated_at")
|
|
610
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141224135949"]]
|
|
611
|
+
[1m[35m (17.6ms)[0m commit transaction
|
|
612
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
613
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
|
629
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
|
645
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
654
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
655
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
656
|
+
------------------------------------------------------------------------------------------------------------------
|
|
657
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
658
|
+
------------------------------------------------------------------------------------------------------------------
|
|
659
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
660
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
661
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
662
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
663
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
664
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
665
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
666
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
667
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
669
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
670
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
672
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
673
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
674
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
675
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
676
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
677
|
+
Completed 406 Not Acceptable in 52ms (Views: 18.4ms | ActiveRecord: 0.6ms)
|
|
678
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
679
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
686
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
694
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
695
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
696
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
697
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
698
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
699
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
700
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
703
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
705
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
706
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
707
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
708
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
709
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
710
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
711
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
712
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
713
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
717
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
723
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
725
|
+
---------------------------------------------------------------------------------------
|
|
726
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
727
|
+
---------------------------------------------------------------------------------------
|
|
728
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
729
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
730
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
731
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
738
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
739
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
740
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
741
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
743
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
747
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
754
|
+
------------------------------------------------------------------------------------
|
|
755
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
756
|
+
------------------------------------------------------------------------------------
|
|
757
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
758
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
762
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
763
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
764
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
|
765
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
766
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
767
|
+
-------------------------------------------------------------------------------------------------
|
|
768
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
769
|
+
-------------------------------------------------------------------------------------------------
|
|
770
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
772
|
+
----------------------------------------------------------------------------------------------------------
|
|
773
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
774
|
+
----------------------------------------------------------------------------------------------------------
|
|
775
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
776
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
777
|
+
-------------------------------------------------------------------------------------------------------
|
|
778
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
779
|
+
-------------------------------------------------------------------------------------------------------
|
|
780
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
781
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
782
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
783
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
786
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
788
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
789
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
790
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
791
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
792
|
+
--------------------------------------------------------------------------------------------------------------
|
|
793
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
794
|
+
--------------------------------------------------------------------------------------------------------------
|
|
795
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
796
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
800
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
801
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
803
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
805
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
806
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
807
|
+
--------------------------------------------------------------------------------------
|
|
808
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
809
|
+
--------------------------------------------------------------------------------------
|
|
810
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
811
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
812
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
813
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
815
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
816
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
818
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
819
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
820
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
824
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
825
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
826
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
827
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
828
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
833
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
835
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
841
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
842
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
843
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
844
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
845
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
849
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
850
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
852
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
853
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
854
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
855
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
856
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
859
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
860
|
+
-----------------------------------------------------------------------------------------
|
|
861
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
862
|
+
-----------------------------------------------------------------------------------------
|
|
863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
864
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
868
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
869
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
871
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
872
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
873
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
874
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
875
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
878
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
879
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
880
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
881
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
882
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
883
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
884
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
885
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
886
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
887
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
889
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
896
|
+
[1m[36m (2.1ms)[0m [1mbegin transaction[0m
|
|
897
|
+
-------------------------------------------------------------------------------------------------------
|
|
898
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
899
|
+
-------------------------------------------------------------------------------------------------------
|
|
900
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
901
|
+
[1m[36mUser Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
902
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
903
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
905
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
906
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
908
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
909
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
910
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
911
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
912
|
+
--------------------------------------------------------------------------------------------------------------
|
|
913
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
914
|
+
--------------------------------------------------------------------------------------------------------------
|
|
915
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
916
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
920
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
921
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
923
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
925
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
926
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
927
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
928
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
929
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
931
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
932
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
933
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
935
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
936
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
938
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
939
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
940
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
941
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
942
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
943
|
+
Completed 406 Not Acceptable in 12ms (Views: 5.7ms | ActiveRecord: 0.5ms)
|
|
944
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
946
|
+
------------------------------------------------------------------------------------
|
|
947
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
948
|
+
------------------------------------------------------------------------------------
|
|
949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
950
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
951
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
952
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
954
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
955
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
958
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
959
|
+
------------------------------------------------------------------------------------------------------------------
|
|
960
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
961
|
+
------------------------------------------------------------------------------------------------------------------
|
|
962
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
963
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
964
|
+
--------------------------------------------------------------------------------------
|
|
965
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
966
|
+
--------------------------------------------------------------------------------------
|
|
967
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
968
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
973
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
975
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
976
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
977
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
978
|
+
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
|
979
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
980
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
981
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
982
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
983
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
985
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
986
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
987
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
989
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
990
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
992
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
993
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
994
|
+
Redirected to http://test.host/
|
|
995
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
996
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
997
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
998
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
999
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
1000
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1001
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1002
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1003
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1004
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1007
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1009
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1010
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1011
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1013
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1014
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1015
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1017
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1021
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
1027
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1029
|
+
---------------------------------------------------------------------------------------
|
|
1030
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
1031
|
+
---------------------------------------------------------------------------------------
|
|
1032
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1033
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1034
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1035
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1042
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1049
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1057
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1058
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1059
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1060
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1061
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1065
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1066
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1068
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1069
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1070
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1071
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
1072
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1075
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1076
|
+
-------------------------------------------------------------------------------------------------
|
|
1077
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
1078
|
+
-------------------------------------------------------------------------------------------------
|
|
1079
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1081
|
+
----------------------------------------------------------------------------------------------------------
|
|
1082
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
1083
|
+
----------------------------------------------------------------------------------------------------------
|
|
1084
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1085
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1086
|
+
-----------------------------------------------------------------------------------------
|
|
1087
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
1088
|
+
-----------------------------------------------------------------------------------------
|
|
1089
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1090
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1095
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1097
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1098
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1099
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1100
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
1101
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1104
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1105
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1106
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1122
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1123
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1124
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1125
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1126
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1127
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1128
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1131
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1133
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1134
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1135
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1136
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1137
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1138
|
+
Completed 406 Not Acceptable in 46ms (Views: 14.3ms | ActiveRecord: 0.7ms)
|
|
1139
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1140
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1141
|
+
---------------------------------------------------------------------------------------
|
|
1142
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
1143
|
+
---------------------------------------------------------------------------------------
|
|
1144
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1145
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1146
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1147
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1155
|
+
-------------------------------------------------------------------------------------------------------
|
|
1156
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
1157
|
+
-------------------------------------------------------------------------------------------------------
|
|
1158
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1159
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1164
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1166
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1168
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1169
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1170
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1171
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
1172
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1173
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1174
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1175
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1176
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1178
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1179
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1181
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1182
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1183
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1185
|
+
-------------------------------------------------------------------------------------------------
|
|
1186
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
1187
|
+
-------------------------------------------------------------------------------------------------
|
|
1188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1190
|
+
----------------------------------------------------------------------------------------------------------
|
|
1191
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
1192
|
+
----------------------------------------------------------------------------------------------------------
|
|
1193
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1195
|
+
------------------------------------------------------------------------------------
|
|
1196
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
1197
|
+
------------------------------------------------------------------------------------
|
|
1198
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1199
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1203
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
1204
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1205
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
|
1206
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1208
|
+
-----------------------------------------------------------------------------------------
|
|
1209
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
1210
|
+
-----------------------------------------------------------------------------------------
|
|
1211
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1212
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1213
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1214
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1216
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1217
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1219
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1220
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1221
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1222
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1223
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1224
|
+
Completed 406 Not Acceptable in 7ms (Views: 2.1ms | ActiveRecord: 0.5ms)
|
|
1225
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1227
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1228
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1229
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1231
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1232
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1233
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1235
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1239
|
+
Completed 406 Not Acceptable in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
|
1240
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "two_factor_auth_registrations"
|
|
1241
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1243
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1244
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1245
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1246
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1247
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1251
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1258
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1259
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1260
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1262
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1267
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1269
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1270
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1271
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1272
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
1273
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1277
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1278
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
1279
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1280
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1281
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
1282
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1283
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
1284
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1285
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1286
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1290
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1291
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1293
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1295
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
1296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1297
|
+
--------------------------------------------------------------------------------------
|
|
1298
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
1299
|
+
--------------------------------------------------------------------------------------
|
|
1300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1301
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1302
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1303
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1305
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1306
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1308
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1309
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1310
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1313
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1314
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1315
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
1316
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1317
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1318
|
+
[1m[35mUser Exists (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1322
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1323
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1325
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1330
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1331
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1333
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1334
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1335
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1336
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1337
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1338
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1339
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1341
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "two_factor_auth_registrations"
|
|
1348
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1349
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1356
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1363
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
1364
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1365
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
1366
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1367
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1368
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1372
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1373
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1375
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1377
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1379
|
+
-----------------------------------------------------------------------------------------
|
|
1380
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
1381
|
+
-----------------------------------------------------------------------------------------
|
|
1382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1383
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1384
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1385
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1388
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1390
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1391
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1392
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1393
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1394
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1395
|
+
Completed 406 Not Acceptable in 12ms (Views: 5.4ms | ActiveRecord: 0.4ms)
|
|
1396
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
1397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1398
|
+
------------------------------------------------------------------------------------
|
|
1399
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
1400
|
+
------------------------------------------------------------------------------------
|
|
1401
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1402
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1403
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1404
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1406
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
1407
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1411
|
+
-------------------------------------------------------------------------------------------------
|
|
1412
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
1413
|
+
-------------------------------------------------------------------------------------------------
|
|
1414
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1415
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1416
|
+
----------------------------------------------------------------------------------------------------------
|
|
1417
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
1418
|
+
----------------------------------------------------------------------------------------------------------
|
|
1419
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1421
|
+
-------------------------------------------------------------------------------------------------------
|
|
1422
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
1423
|
+
-------------------------------------------------------------------------------------------------------
|
|
1424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1425
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1430
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1432
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1434
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1436
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1437
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
1438
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1439
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1440
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1441
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1442
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1444
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1445
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1447
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1448
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1449
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1450
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1451
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1452
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1453
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1454
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1455
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1459
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1465
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
1466
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1467
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1468
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1469
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1470
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1475
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1477
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1478
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1479
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1480
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
1481
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
1484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1485
|
+
--------------------------------------------------------------------------------------
|
|
1486
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
1487
|
+
--------------------------------------------------------------------------------------
|
|
1488
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1489
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1494
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1496
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1497
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1498
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1499
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
|
1500
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1502
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1503
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
1504
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1506
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1507
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1508
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1511
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1513
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1514
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1515
|
+
Redirected to http://test.host/
|
|
1516
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
1517
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1518
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1519
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1520
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
1521
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1522
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
1523
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1524
|
+
---------------------------------------------------------------------------------------
|
|
1525
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
1526
|
+
---------------------------------------------------------------------------------------
|
|
1527
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1528
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1529
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1530
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1537
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1538
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1539
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1540
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1541
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1542
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1546
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1547
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1549
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1550
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1551
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1552
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
1553
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1557
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1558
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1559
|
+
-------------------------------------------------------------------------------------------------
|
|
1560
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
1561
|
+
-------------------------------------------------------------------------------------------------
|
|
1562
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1564
|
+
----------------------------------------------------------------------------------------------------------
|
|
1565
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
1566
|
+
----------------------------------------------------------------------------------------------------------
|
|
1567
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
1568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1569
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1570
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1571
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1572
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1573
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1574
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1575
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1578
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1580
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1581
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1582
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1583
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1584
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1585
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1587
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1589
|
+
Redirected to http://test.host/
|
|
1590
|
+
Completed 302 Found in 34ms (ActiveRecord: 1.0ms)
|
|
1591
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
1592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1593
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1594
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
1595
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1596
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
1597
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1598
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1599
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1600
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
1601
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1602
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1603
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1604
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1606
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1610
|
+
Completed 406 Not Acceptable in 22ms (Views: 18.5ms | ActiveRecord: 0.2ms)
|
|
1611
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1612
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
1613
|
+
------------------------------------------------------------------------------------
|
|
1614
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
1615
|
+
------------------------------------------------------------------------------------
|
|
1616
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
1617
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1618
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1619
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1621
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
1622
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1626
|
+
--------------------------------------------------------------------------------------
|
|
1627
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
1628
|
+
--------------------------------------------------------------------------------------
|
|
1629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1630
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1634
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1635
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1637
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1638
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1639
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1640
|
+
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms)
|
|
1641
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1642
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1643
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1644
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
1645
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1646
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1647
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1648
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1649
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1651
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1652
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1654
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1655
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1656
|
+
Redirected to http://test.host/
|
|
1657
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
1658
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1659
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1660
|
+
---------------------------------------------------------------------------------------
|
|
1661
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
1662
|
+
---------------------------------------------------------------------------------------
|
|
1663
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1664
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1665
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1666
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1673
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1674
|
+
-------------------------------------------------------------------------------------------------------
|
|
1675
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
1676
|
+
-------------------------------------------------------------------------------------------------------
|
|
1677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1678
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1682
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1683
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1685
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1687
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1688
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1689
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1690
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
1691
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1692
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1693
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1694
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1695
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1698
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1700
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1701
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1702
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1703
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1710
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1718
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1719
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
1720
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1721
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1722
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1727
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1729
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1731
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1733
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1734
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1735
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1736
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1737
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1738
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1739
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1741
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1742
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1744
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1745
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1746
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1747
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1748
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1749
|
+
Completed 406 Not Acceptable in 10ms (Views: 2.8ms | ActiveRecord: 0.5ms)
|
|
1750
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1751
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1752
|
+
-----------------------------------------------------------------------------------------
|
|
1753
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
1754
|
+
-----------------------------------------------------------------------------------------
|
|
1755
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1756
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1757
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1758
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1760
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1761
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1763
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1764
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1765
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1766
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1767
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1768
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1770
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1772
|
+
Redirected to http://test.host/
|
|
1773
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
|
|
1774
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1775
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1776
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1777
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1778
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1779
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1780
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1781
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1782
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1784
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1788
|
+
Completed 406 Not Acceptable in 56ms (Views: 1.9ms | ActiveRecord: 0.3ms)
|
|
1789
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "two_factor_auth_registrations"
|
|
1790
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1791
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1792
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
1793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1794
|
+
---------------------------------------------------------------------------------------
|
|
1795
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
1796
|
+
---------------------------------------------------------------------------------------
|
|
1797
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1798
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1799
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1800
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1808
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1809
|
+
-------------------------------------------------------------------------------------------------
|
|
1810
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
1811
|
+
-------------------------------------------------------------------------------------------------
|
|
1812
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1813
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1814
|
+
----------------------------------------------------------------------------------------------------------
|
|
1815
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
1816
|
+
----------------------------------------------------------------------------------------------------------
|
|
1817
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1819
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1820
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
1821
|
+
------------------------------------------------------------------------------------------------------------------
|
|
1822
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1824
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1825
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1826
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1827
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1828
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1832
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
1838
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1840
|
+
------------------------------------------------------------------------------------
|
|
1841
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
1842
|
+
------------------------------------------------------------------------------------
|
|
1843
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1844
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1845
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1846
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1848
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
1849
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1853
|
+
--------------------------------------------------------------------------------------
|
|
1854
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
1855
|
+
--------------------------------------------------------------------------------------
|
|
1856
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1857
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1862
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1864
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1865
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
1866
|
+
[1m[36mTwoFactorAuth::Registration Load (0.3ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1867
|
+
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.4ms)
|
|
1868
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1869
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1870
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1871
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
1872
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
1873
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1874
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1875
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1876
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1878
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1879
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1881
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1882
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
1883
|
+
Redirected to http://test.host/
|
|
1884
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
1885
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1886
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1887
|
+
-------------------------------------------------------------------------------------------------------
|
|
1888
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
1889
|
+
-------------------------------------------------------------------------------------------------------
|
|
1890
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1891
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1892
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1893
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1895
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1896
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1898
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1899
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1900
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1901
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
1902
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1903
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
1904
|
+
--------------------------------------------------------------------------------------------------------------
|
|
1905
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1906
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1910
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1911
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1913
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
1915
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1916
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1917
|
+
-----------------------------------------------------------------------------------------
|
|
1918
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
1919
|
+
-----------------------------------------------------------------------------------------
|
|
1920
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1921
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1922
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1923
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1925
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1926
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1928
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1929
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1930
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1931
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1932
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1933
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1935
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1937
|
+
Redirected to http://test.host/
|
|
1938
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
|
|
1939
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1941
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1942
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
1943
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
1944
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1945
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1946
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1947
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1949
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1950
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1952
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
1953
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
1954
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
1955
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
1956
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1957
|
+
Completed 406 Not Acceptable in 6ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
|
1958
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
1959
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1966
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
1973
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1974
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1975
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
1976
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
1977
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1978
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
1979
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
1980
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1982
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1983
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1985
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
1986
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
1987
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1988
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1989
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1990
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
1991
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
1992
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1993
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1997
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1998
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (46.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2000
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2001
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2002
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2003
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2004
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2006
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2007
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:05:52.899432"], ["updated_at", "2014-12-24 14:05:52.900251"]]
|
|
2008
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2009
|
+
Redirected to http://test.host/
|
|
2010
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
|
2011
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2013
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2014
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2015
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2017
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2021
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2027
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2028
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2029
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2030
|
+
------------------------------------------------------------------------------------
|
|
2031
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
2032
|
+
------------------------------------------------------------------------------------
|
|
2033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2034
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2035
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2036
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2038
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
2039
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2043
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2044
|
+
-------------------------------------------------------------------------------------------------------
|
|
2045
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
2046
|
+
-------------------------------------------------------------------------------------------------------
|
|
2047
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2048
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2053
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2055
|
+
[1m[35mTwoFactorAuth::Registration Load (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
2057
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2058
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2059
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2060
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
2061
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2063
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2064
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2065
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2067
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2068
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2070
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2071
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2072
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2073
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2074
|
+
-----------------------------------------------------------------------------------------
|
|
2075
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
2076
|
+
-----------------------------------------------------------------------------------------
|
|
2077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2078
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2082
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2083
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2085
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2086
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2087
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2088
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2089
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2092
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:06:34.886995"], ["updated_at", "2014-12-24 14:06:34.887872"]]
|
|
2093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2094
|
+
Redirected to http://test.host/
|
|
2095
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
|
|
2096
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2097
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2098
|
+
--------------------------------------------------------------------------------------
|
|
2099
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
2100
|
+
--------------------------------------------------------------------------------------
|
|
2101
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2102
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2106
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2107
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2109
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2110
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2111
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2112
|
+
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms)
|
|
2113
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
2114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2115
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2116
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
2117
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2119
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2120
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2121
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2123
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2124
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2126
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2127
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2128
|
+
Redirected to http://test.host/
|
|
2129
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
2130
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2132
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2133
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
2134
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2135
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2136
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2137
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2138
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2140
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2141
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2143
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2144
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2145
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2146
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2153
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2160
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2161
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2162
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
2163
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2164
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2166
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2167
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2168
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2169
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2170
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2175
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2177
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2178
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2179
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2180
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2181
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2185
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2186
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2187
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2189
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2193
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2199
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2200
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2201
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2202
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2203
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2204
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2208
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
2214
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
|
2215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2216
|
+
-------------------------------------------------------------------------------------------------
|
|
2217
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
2218
|
+
-------------------------------------------------------------------------------------------------
|
|
2219
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2221
|
+
----------------------------------------------------------------------------------------------------------
|
|
2222
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
2223
|
+
----------------------------------------------------------------------------------------------------------
|
|
2224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2226
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2227
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2228
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2230
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2231
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2232
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2234
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2235
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2237
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2238
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2239
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2240
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
2241
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2242
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2244
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2246
|
+
Redirected to http://test.host/
|
|
2247
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
|
|
2248
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2250
|
+
---------------------------------------------------------------------------------------
|
|
2251
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
2252
|
+
---------------------------------------------------------------------------------------
|
|
2253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2254
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2255
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2256
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2263
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2264
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2265
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
2266
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2267
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2268
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2270
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2271
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2272
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2274
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2281
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
2282
|
+
---------------------------------------------------------------------------------------
|
|
2283
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
2284
|
+
---------------------------------------------------------------------------------------
|
|
2285
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2286
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2287
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2288
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2296
|
+
-------------------------------------------------------------------------------------------------
|
|
2297
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
2298
|
+
-------------------------------------------------------------------------------------------------
|
|
2299
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
2300
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
2301
|
+
----------------------------------------------------------------------------------------------------------
|
|
2302
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
2303
|
+
----------------------------------------------------------------------------------------------------------
|
|
2304
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
2305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2306
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2307
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
2308
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2309
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
2310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2311
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2312
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2313
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2315
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2319
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2320
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2322
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2323
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2324
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2325
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2326
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2328
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2329
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:08:06.017633"], ["updated_at", "2014-12-24 14:08:06.018486"]]
|
|
2330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2331
|
+
Redirected to http://test.host/
|
|
2332
|
+
Completed 302 Found in 17ms (ActiveRecord: 0.9ms)
|
|
2333
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2334
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2335
|
+
------------------------------------------------------------------------------------
|
|
2336
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
2337
|
+
------------------------------------------------------------------------------------
|
|
2338
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2339
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2343
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
2344
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2345
|
+
Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.3ms)
|
|
2346
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2348
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2349
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
2350
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2351
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2352
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2353
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2354
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2357
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2359
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2360
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2361
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2363
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2364
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2365
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2366
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2367
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2371
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
2377
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2379
|
+
-------------------------------------------------------------------------------------------------------
|
|
2380
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
2381
|
+
-------------------------------------------------------------------------------------------------------
|
|
2382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2383
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2384
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2385
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2388
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2390
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2391
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2392
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2393
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
2394
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2395
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
2396
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2397
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2398
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.9ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2402
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2403
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2405
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
2407
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2409
|
+
-----------------------------------------------------------------------------------------
|
|
2410
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
2411
|
+
-----------------------------------------------------------------------------------------
|
|
2412
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2413
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2414
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2415
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2417
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2418
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2420
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2421
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2422
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2423
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
2424
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2425
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2427
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2429
|
+
Redirected to http://test.host/
|
|
2430
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
|
|
2431
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2439
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2446
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2447
|
+
--------------------------------------------------------------------------------------
|
|
2448
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
2449
|
+
--------------------------------------------------------------------------------------
|
|
2450
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2451
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2452
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2453
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2456
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2458
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2459
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2460
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
2463
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2464
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2465
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
2466
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2467
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2468
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2472
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2473
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2475
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2480
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
2481
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2482
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2483
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2484
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2485
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2489
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2490
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2492
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2493
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2494
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2495
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2496
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2499
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2500
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2502
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2503
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2504
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2506
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2507
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2508
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2510
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2517
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2518
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2519
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
2520
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2521
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2522
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2523
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2524
|
+
[1m[35mSQL (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2526
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2527
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2529
|
+
[1m[36mTwoFactorAuth::Registration Load (0.3ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2530
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2531
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2533
|
+
---------------------------------------------------------------------------------------
|
|
2534
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
2535
|
+
---------------------------------------------------------------------------------------
|
|
2536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2537
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2544
|
+
Completed 406 Not Acceptable in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
|
2545
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2547
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2548
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
2549
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2552
|
+
-------------------------------------------------------------------------------------------------------
|
|
2553
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
2554
|
+
-------------------------------------------------------------------------------------------------------
|
|
2555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2556
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2557
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2558
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2560
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
|
2561
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2563
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2564
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2565
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
2567
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2568
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
2569
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2570
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2571
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2576
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2578
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
2580
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
2581
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2582
|
+
-----------------------------------------------------------------------------------------
|
|
2583
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
2584
|
+
-----------------------------------------------------------------------------------------
|
|
2585
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2586
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2587
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2588
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2591
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2593
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2594
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2595
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2596
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
2597
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2598
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2600
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2602
|
+
Redirected to http://test.host/
|
|
2603
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.9ms)
|
|
2604
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2606
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2607
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2608
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2609
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2610
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2611
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2612
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2614
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2618
|
+
Completed 406 Not Acceptable in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
|
2619
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "two_factor_auth_registrations"
|
|
2620
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2621
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2622
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2623
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2624
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2625
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2626
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2631
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2633
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2634
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2635
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2636
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2637
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2639
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2640
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:26.281920"], ["updated_at", "2014-12-24 14:11:26.282589"]]
|
|
2641
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2642
|
+
Redirected to http://test.host/
|
|
2643
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
|
2644
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
|
2645
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2652
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2659
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2660
|
+
--------------------------------------------------------------------------------------
|
|
2661
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
2662
|
+
--------------------------------------------------------------------------------------
|
|
2663
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2664
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2669
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2671
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2672
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2673
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2674
|
+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
|
|
2675
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2677
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2678
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
2679
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2680
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2681
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2682
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2683
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2686
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2688
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2689
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2690
|
+
Redirected to http://test.host/
|
|
2691
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
2692
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2694
|
+
-------------------------------------------------------------------------------------------------
|
|
2695
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
2696
|
+
-------------------------------------------------------------------------------------------------
|
|
2697
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
2698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2699
|
+
----------------------------------------------------------------------------------------------------------
|
|
2700
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
2701
|
+
----------------------------------------------------------------------------------------------------------
|
|
2702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
2703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2704
|
+
------------------------------------------------------------------------------------
|
|
2705
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
2706
|
+
------------------------------------------------------------------------------------
|
|
2707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2708
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2709
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2710
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2712
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
2713
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2717
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2718
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2719
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2720
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2721
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2725
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2726
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2728
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2729
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2730
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2731
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2732
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2735
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2736
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2738
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2739
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
2740
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
2741
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2742
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2743
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2744
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2746
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2747
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2749
|
+
[1m[36mTwoFactorAuth::Registration Load (0.3ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2750
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2751
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2752
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2753
|
+
---------------------------------------------------------------------------------------
|
|
2754
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
2755
|
+
---------------------------------------------------------------------------------------
|
|
2756
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2757
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2764
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2765
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2767
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2768
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2769
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["last_authenticated_at", "2014-12-24 14:11:55.274606"], ["updated_at", "2014-12-24 14:11:55.275218"]]
|
|
2770
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2771
|
+
Redirected to http://test.host/
|
|
2772
|
+
Completed 302 Found in 15ms (ActiveRecord: 0.9ms)
|
|
2773
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2774
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2775
|
+
-------------------------------------------------------------------------------------------------------
|
|
2776
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
2777
|
+
-------------------------------------------------------------------------------------------------------
|
|
2778
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2779
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2783
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2784
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2786
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
2788
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2789
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2790
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2791
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
2792
|
+
--------------------------------------------------------------------------------------------------------------
|
|
2793
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2794
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2795
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2796
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2798
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2799
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2801
|
+
[1m[36mTwoFactorAuth::Registration Load (0.4ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2802
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
2803
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2804
|
+
[1m[35m (0.2ms)[0m begin transaction
|
|
2805
|
+
-------------------------------------------------------------------------------------------------
|
|
2806
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
2807
|
+
-------------------------------------------------------------------------------------------------
|
|
2808
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2809
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2810
|
+
----------------------------------------------------------------------------------------------------------
|
|
2811
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
2812
|
+
----------------------------------------------------------------------------------------------------------
|
|
2813
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2814
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2815
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2816
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2817
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
2818
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2819
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2824
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2826
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2827
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2828
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2829
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2830
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2832
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2833
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:55.368557"], ["updated_at", "2014-12-24 14:11:55.369368"]]
|
|
2834
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2835
|
+
Redirected to http://test.host/
|
|
2836
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
|
|
2837
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2839
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2840
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2841
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2842
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2843
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2847
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2851
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2852
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2854
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2856
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2858
|
+
Redirected to http://test.host/
|
|
2859
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
|
2860
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2862
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2863
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2864
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2865
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
2866
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2867
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2871
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2872
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2874
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2875
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2876
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2877
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2878
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2881
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2888
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
2895
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2896
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2897
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
2898
|
+
------------------------------------------------------------------------------------------------------------------
|
|
2899
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
2900
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2901
|
+
-----------------------------------------------------------------------------------------
|
|
2902
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
2903
|
+
-----------------------------------------------------------------------------------------
|
|
2904
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2905
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2909
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2910
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2912
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
2913
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
2914
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
2915
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
2916
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
2918
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2919
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-24 14:11:55.462639"], ["updated_at", "2014-12-24 14:11:55.463339"]]
|
|
2920
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2921
|
+
Redirected to http://test.host/
|
|
2922
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
|
2923
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2924
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2925
|
+
------------------------------------------------------------------------------------
|
|
2926
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
2927
|
+
------------------------------------------------------------------------------------
|
|
2928
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2929
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2933
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
2934
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2935
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
|
2936
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2937
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2938
|
+
--------------------------------------------------------------------------------------
|
|
2939
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
2940
|
+
--------------------------------------------------------------------------------------
|
|
2941
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2942
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2943
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2944
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2946
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
2947
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2949
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
2950
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2951
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2954
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2955
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2956
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
2957
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2958
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2959
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2963
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2964
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2966
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
2971
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
2972
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2973
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
2974
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
2975
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2976
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2980
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
2986
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
2987
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2988
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2989
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2990
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2991
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
2992
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
2993
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2994
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
2995
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
2996
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2998
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3002
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3003
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3005
|
+
[1m[36mTwoFactorAuth::Registration Load (0.3ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3006
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3007
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["last_authenticated_at", "2014-12-26 04:58:36.854637"], ["updated_at", "2014-12-26 04:58:36.855441"]]
|
|
3008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3009
|
+
Redirected to http://test.host/
|
|
3010
|
+
Completed 302 Found in 56ms (ActiveRecord: 1.3ms)
|
|
3011
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ?[0m [["login_id", 1], ["login_type", "User"]]
|
|
3012
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3014
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3015
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
3016
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3017
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3018
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3019
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3020
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3022
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3026
|
+
Completed 406 Not Acceptable in 28ms (Views: 23.7ms | ActiveRecord: 0.2ms)
|
|
3027
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "two_factor_auth_registrations"
|
|
3028
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3029
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3030
|
+
-------------------------------------------------------------------------------------------------------
|
|
3031
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
3032
|
+
-------------------------------------------------------------------------------------------------------
|
|
3033
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3034
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3038
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3039
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3041
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users"[0m
|
|
3043
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3044
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3045
|
+
--------------------------------------------------------------------------------------------------------------
|
|
3046
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
3047
|
+
--------------------------------------------------------------------------------------------------------------
|
|
3048
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3049
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3050
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3051
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3053
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3054
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3056
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3057
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
3058
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3060
|
+
--------------------------------------------------------------------------------------
|
|
3061
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
3062
|
+
--------------------------------------------------------------------------------------
|
|
3063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3064
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3068
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3069
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3071
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
3072
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
3073
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3074
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)
|
|
3075
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3076
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3077
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3078
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
3079
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3080
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3081
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3082
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3083
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3085
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3086
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3088
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3089
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
3090
|
+
Redirected to http://test.host/
|
|
3091
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
3092
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3093
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3094
|
+
------------------------------------------------------------------------------------
|
|
3095
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
3096
|
+
------------------------------------------------------------------------------------
|
|
3097
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3098
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3099
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3100
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3102
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
3103
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3107
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
3108
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
3109
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
3110
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3111
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3116
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3118
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3119
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3120
|
+
[1m[35mUser Load (0.9ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
3121
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
3122
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3125
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-26 04:58:37.035366"], ["updated_at", "2014-12-26 04:58:37.036150"]]
|
|
3126
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3127
|
+
Redirected to http://test.host/
|
|
3128
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.4ms)
|
|
3129
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3131
|
+
-----------------------------------------------------------------------------------------
|
|
3132
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
3133
|
+
-----------------------------------------------------------------------------------------
|
|
3134
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3135
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3140
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3142
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3143
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3144
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
3145
|
+
[1m[36mTwoFactorAuth::Registration Load (0.2ms)[0m [1mSELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1[0m
|
|
3146
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3148
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3149
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "counter" = ?, "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["counter", 16], ["last_authenticated_at", "2014-12-26 04:58:37.059154"], ["updated_at", "2014-12-26 04:58:37.059850"]]
|
|
3150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3151
|
+
Redirected to http://test.host/
|
|
3152
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
|
3153
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3154
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
3161
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
3168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3169
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
3170
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
3171
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
3172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3173
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3178
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3180
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
3182
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3183
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3184
|
+
------------------------------------------------------------------------------------------------------------------
|
|
3185
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
3186
|
+
------------------------------------------------------------------------------------------------------------------
|
|
3187
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3188
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3189
|
+
-------------------------------------------------------------------------------------------------
|
|
3190
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
3191
|
+
-------------------------------------------------------------------------------------------------
|
|
3192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3194
|
+
----------------------------------------------------------------------------------------------------------
|
|
3195
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
3196
|
+
----------------------------------------------------------------------------------------------------------
|
|
3197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3199
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
3200
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
3201
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
3202
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3203
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3204
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3205
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3207
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3208
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3210
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3211
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3212
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3213
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
3214
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3215
|
+
Completed 406 Not Acceptable in 6ms (Views: 2.0ms | ActiveRecord: 0.4ms)
|
|
3216
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3218
|
+
---------------------------------------------------------------------------------------
|
|
3219
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
3220
|
+
---------------------------------------------------------------------------------------
|
|
3221
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3222
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3223
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3224
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
3229
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3230
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3232
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3234
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3236
|
+
Redirected to http://test.host/
|
|
3237
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
|
3238
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3239
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3240
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3242
|
+
-------------------------------------------------------------------------------------------------------
|
|
3243
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0001_creates AuthenticationRequests
|
|
3244
|
+
-------------------------------------------------------------------------------------------------------
|
|
3245
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3246
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3247
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3248
|
+
[1m[35mSQL (4.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3250
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3251
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3253
|
+
[1m[36mTwoFactorAuth::Registration Load (0.3ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3254
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
3255
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3257
|
+
--------------------------------------------------------------------------------------------------------------
|
|
3258
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request: test_0002_persists the challenge in the request
|
|
3259
|
+
--------------------------------------------------------------------------------------------------------------
|
|
3260
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3261
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3265
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3266
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3268
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users"[0m
|
|
3270
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3272
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
3273
|
+
TwoFactorAuth::RegistrationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
3274
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
3275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3276
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3277
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3278
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3280
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3285
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3287
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3289
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "two_factor_auth_registrations" SET "last_authenticated_at" = ?, "updated_at" = ? WHERE "two_factor_auth_registrations"."id" = 1[0m [["last_authenticated_at", "2014-12-26 06:09:53.494292"], ["updated_at", "2014-12-26 06:09:53.494933"]]
|
|
3290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3291
|
+
Redirected to http://test.host/
|
|
3292
|
+
Completed 302 Found in 30ms (ActiveRecord: 1.0ms)
|
|
3293
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."login_id" = ? AND "two_factor_auth_registrations"."login_type" = ?[0m [["login_id", 1], ["login_type", "User"]]
|
|
3294
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3296
|
+
------------------------------------------------------------------------------------------------------------------
|
|
3297
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request with pending challenge: test_0001_uses pending challenge
|
|
3298
|
+
------------------------------------------------------------------------------------------------------------------
|
|
3299
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
3300
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
3301
|
+
-----------------------------------------------------------------------------------------
|
|
3302
|
+
TwoFactorAuth::AuthenticationsController::#create: test_0001_clears the pending challenge
|
|
3303
|
+
-----------------------------------------------------------------------------------------
|
|
3304
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3305
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3306
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3307
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3310
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3312
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3313
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3314
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3315
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
3316
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3317
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3319
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3321
|
+
Redirected to http://test.host/
|
|
3322
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
|
|
3323
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3324
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3325
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
3326
|
+
TwoFactorAuth::AuthenticationsController::#create::success: test_0001_creates a Registration when the challenge is verified
|
|
3327
|
+
---------------------------------------------------------------------------------------------------------------------------
|
|
3328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3329
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3330
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3331
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3334
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3336
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3337
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3338
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3339
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
3340
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3341
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3343
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3345
|
+
Redirected to http://test.host/
|
|
3346
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
|
3347
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3348
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3349
|
+
-------------------------------------------------------------------------------------------------
|
|
3350
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0001_creates RegistrationRequests
|
|
3351
|
+
-------------------------------------------------------------------------------------------------
|
|
3352
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
3353
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3354
|
+
----------------------------------------------------------------------------------------------------------
|
|
3355
|
+
TwoFactorAuth::RegistrationsHelper::#registration_request: test_0002_persists the challenge in the request
|
|
3356
|
+
----------------------------------------------------------------------------------------------------------
|
|
3357
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
3358
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3359
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
3360
|
+
TwoFactorAuth::AuthenticationsHelper::#authentication_request with pending challenge: test_0001_uses pending challenge
|
|
3361
|
+
----------------------------------------------------------------------------------------------------------------------
|
|
3362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3363
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3364
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3365
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3368
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3370
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3371
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users"
|
|
3372
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3374
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3375
|
+
TwoFactorAuth::RegistrationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
3376
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3377
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3378
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3382
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "two_factor_auth_registrations"[0m
|
|
3388
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3390
|
+
---------------------------------------------------------------------------------------
|
|
3391
|
+
TwoFactorAuth::RegistrationsController::#create: test_0001_clears the pending challenge
|
|
3392
|
+
---------------------------------------------------------------------------------------
|
|
3393
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3394
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3395
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3396
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
|
3401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3402
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3404
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3406
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3408
|
+
Redirected to http://test.host/
|
|
3409
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
|
3410
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3412
|
+
--------------------------------------------------------------------------------------
|
|
3413
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0001_has a form linking to create
|
|
3414
|
+
--------------------------------------------------------------------------------------
|
|
3415
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3416
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3417
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3418
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3420
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
3421
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3423
|
+
Processing by TwoFactorAuth::AuthenticationsController#new as HTML
|
|
3424
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3425
|
+
[1m[35mTwoFactorAuth::Registration Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
3428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3429
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3430
|
+
TwoFactorAuth::AuthenticationsController::#new: test_0002_does not prompt for re-authentication if you already have
|
|
3431
|
+
-------------------------------------------------------------------------------------------------------------------
|
|
3432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3433
|
+
[1m[35mUser Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3437
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3438
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3440
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
3445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
3446
|
+
------------------------------------------------------------------------------------
|
|
3447
|
+
TwoFactorAuth::RegistrationsController::#new: test_0001_has a form linking to create
|
|
3448
|
+
------------------------------------------------------------------------------------
|
|
3449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3450
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3454
|
+
Processing by TwoFactorAuth::RegistrationsController#new as HTML
|
|
3455
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3456
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
|
3457
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3459
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
3460
|
+
TwoFactorAuth::AuthenticationsController::#create::failure: test_0001_renders an error when challenge is not verified
|
|
3461
|
+
---------------------------------------------------------------------------------------------------------------------
|
|
3462
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3463
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
|
3464
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
|
3465
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3467
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3468
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "two_factor_auth_registrations" ("certificate", "counter", "created_at", "key_handle", "last_authenticated_at", "login_id", "login_type", "public_key", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3470
|
+
Processing by TwoFactorAuth::AuthenticationsController#create as HTML
|
|
3471
|
+
Parameters: {"keyHandle"=>"fNKqlc0cHr7CcAScmiwJF3qL5WP5YY9vSZR5i474rPWmg8qjTHIckZA_v2Xioj6RB6BNJqzxUVUwG6wfksKXtA", "clientData"=>"eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiNDMweDN6Yk5nN3RkSEJkczNfYVhvU2pwODF4V2VfMmVab0VnUjg1NnR2OCIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbC5maWRvbG9naW4uY29tOjMwMDAiLCJjaWRfcHVia2V5IjoiIn0", "signatureData"=>"AQAAABAwRgIhAPueB6u8s63myrtQBT7KNOR3c4CVoNPVAiEkSOB8WGzqAiEA5zYbDQopgsVUl3d3pC947pKFSSIJs00ouC3xn3m7Pxo"}
|
|
3472
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
3473
|
+
[1m[35mTwoFactorAuth::Registration Load (0.2ms)[0m SELECT "two_factor_auth_registrations".* FROM "two_factor_auth_registrations" WHERE "two_factor_auth_registrations"."key_handle" = x'7cd2aa95cd1c1ebec270049c9a2c09177a8be563f9618f6f4994798b8ef8acf5a683caa34c721c91903fbf65e2a23e9107a04d26acf15155301bac1f92c297b4' LIMIT 1
|
|
3474
|
+
[1m[36mTwoFactorAuth::Registration Load (0.1ms)[0m [1mSELECT "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[0m [["login_id", 1], ["login_type", "User"]]
|
|
3475
|
+
Completed 406 Not Acceptable in 8ms (Views: 3.0ms | ActiveRecord: 0.4ms)
|
|
3476
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
|
3477
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|