-
- Downloads
Implement U2F registration.
- Move the `TwoFactorAuthsController`'s `new` action to `show`, since the page is not used to create a single "two factor auth" anymore. We can have a single 2FA authenticator app, along with any number of U2F devices, in any combination, so the page will be accessed after the first "two factor auth" is created. - Add the `u2f` javascript library, which provides an API to the browser's U2F implementation. - Add tests for the JS components
Showing
- app/assets/javascripts/application.js.coffee 2 additions, 0 deletionsapp/assets/javascripts/application.js.coffee
- app/assets/javascripts/u2f/error.js.coffee 13 additions, 0 deletionsapp/assets/javascripts/u2f/error.js.coffee
- app/assets/javascripts/u2f/register.js.coffee 63 additions, 0 deletionsapp/assets/javascripts/u2f/register.js.coffee
- app/assets/javascripts/u2f/util.js.coffee.erb 15 additions, 0 deletionsapp/assets/javascripts/u2f/util.js.coffee.erb
- app/controllers/application_controller.rb 11 additions, 0 deletionsapp/controllers/application_controller.rb
- app/controllers/profiles/two_factor_auths_controller.rb 39 additions, 6 deletionsapp/controllers/profiles/two_factor_auths_controller.rb
- app/views/profiles/accounts/show.html.haml 13 additions, 12 deletionsapp/views/profiles/accounts/show.html.haml
- app/views/profiles/two_factor_auths/new.html.haml 0 additions, 39 deletionsapp/views/profiles/two_factor_auths/new.html.haml
- app/views/profiles/two_factor_auths/show.html.haml 69 additions, 0 deletionsapp/views/profiles/two_factor_auths/show.html.haml
- app/views/u2f/_register.html.haml 31 additions, 0 deletionsapp/views/u2f/_register.html.haml
- config/routes.rb 2 additions, 1 deletionconfig/routes.rb
- spec/controllers/profiles/two_factor_auths_controller_spec.rb 7 additions, 7 deletions.../controllers/profiles/two_factor_auths_controller_spec.rb
- spec/javascripts/fixtures/u2f/register.html.haml 1 addition, 0 deletionsspec/javascripts/fixtures/u2f/register.html.haml
- spec/javascripts/u2f/mock_u2f_device.js.coffee 15 additions, 0 deletionsspec/javascripts/u2f/mock_u2f_device.js.coffee
- spec/javascripts/u2f/register_spec.js.coffee 57 additions, 0 deletionsspec/javascripts/u2f/register_spec.js.coffee
- vendor/assets/javascripts/u2f.js 748 additions, 0 deletionsvendor/assets/javascripts/u2f.js
Loading
Please register or sign in to comment