Commit graph

27 commits

Author SHA1 Message Date
Mike Greiling
f248be7257
require jQuery to be explicitly imported 2018-03-09 15:18:09 -06:00
Mike Greiling
d79df7baf7 Remove u2f webpack bundle 2018-03-01 18:13:50 +00:00
Filipa Lacerda
41b430b2cf
Remove u2f from globalnamespace 2017-10-09 23:21:56 +01:00
Mike Greiling
283f968ef2 update frontend specs to use ES module syntax 2017-05-16 16:01:51 -05:00
Mike Greiling
e0c6ea8798 remove bind polyfill from mock_u2f_device.js 2017-05-08 17:40:24 -05:00
Jose Ivan Vargas
7592137f21 Fix rspec and spinach tests 2017-04-06 14:58:57 -05:00
Mike Greiling
c74b7eb271 fix overlooked window binding in spec files 2017-02-17 17:02:14 -06:00
Mike Greiling
69e4072f89 Merge branch 'master' into go-go-gadget-webpack
* master: (389 commits)
  Document "No gems fetched from git repositories" policy [ci skip]
  Typos
  Small gramatical tweaks
  Typos
  Added PHP & NPM doc
  Use `:empty_project` where possible in request specs
  Add caching of droplab ajax requests
  Use `:empty_project` where possible in model specs
  Revert 3f17f29a
  Remove unused js response from refs controller
  Add MR id to changelog entry
  fixed small mini pipeline graph line glitch
  Prevent form to be submitted twice
  Fix Error 500 when repositories contain annotated tags pointing to blobs
  Fix /explore sorting (trending)
  Simplify wording in "adding an image" docs
  Remove "official merge window" from CONTRIBUTING.md [ci skip]
  Update repository check documentation
  Fixed flexbox and wrap issues
  Update two_factor_authentication.md
  ...
2017-01-27 19:33:58 -06:00
Mike Greiling
04eff5fdb0 resolve all x-spacing and no-spaced-x eslint violations 2017-01-18 17:18:40 -06:00
Mike Greiling
ccada28f30 resolve all padded-blocks eslint violations 2017-01-18 17:16:41 -06:00
Mike Greiling
5f2d171218 prevent u2f authenticate test from auto-submitting a form 2017-01-10 12:30:45 -06:00
Mike Greiling
8d2099cb53 use ~ to reference non-local scripts instead of resolve.root 2017-01-10 12:30:43 -06:00
Mike Greiling
52c6702ec7 include spec_helper within karma config rather than each individual test 2017-01-10 12:30:43 -06:00
Mike Greiling
eb1bbe73d0 fix spec_helper missing/broken references 2017-01-10 12:30:41 -06:00
Luke "Jared" Bennett
7c47cc94c5 Swapped out teaspoon for karma 2017-01-10 12:30:40 -06:00
Mike Greiling
7a2a9bb45e replace Teaspoon fixture methods with jasmine-jquery methods to reduce dependency on Teaspoon 2017-01-05 14:11:07 -06:00
Mike Greiling
df5223de61 generate u2f frontend fixtures dynamically 2017-01-05 14:03:32 -06:00
Luke "Jared" Bennett
b285abeccc
Improved the u2f flow
Added tests
2016-12-27 00:18:17 +00:00
Mike Greiling
8e0e902b13 resolve all instances of no-undef eslint rule violations 2016-12-14 02:11:13 -06:00
Luke "Jared" Bennett
7cefaea876
explicitly disable eslint inline 2016-11-15 16:30:34 +00:00
winniehell
02f94cf038 disable ESLint for all JavaScript files 2016-10-26 10:02:58 +02:00
Bryce Johnson
1dd826d4aa Make UX upgrades to SignIn/Register views.
- Tab between register and sign in forms
- Add individual input validation error messages
- Validate username
- Update many styles for all login-box forms
2016-10-15 08:27:21 +02:00
Jared Deckard
7f6474b269 Restore comments lost when converting CoffeeScript to JavaScript 2016-09-08 12:23:12 -05:00
Fatih Acet
aaa9509d12 ES6ify all the things! 2016-07-24 23:45:11 +03:00
Timothy Andrew
3572582dd2 Use a single challenge for U2F authentication.
1. According to the spec, either we have a single challenge with
   a number of `signRequests`, or a number of `signRequests`, each with
   it's own challenge.

2. Previously, we had both these - per-request challenges, as well as a
   single extra challenge.

3. This commit changes this so that the per-request challenges are
   removed, leaving only a single challenge, as per the v1.1 U2F API.

4. The existing implementation didn't work in Firefox, because the
   Firefox (extension) implementation is less flexible with regard to
   the inputs.

5. Fix teaspoon specs.

6. References: https://fidoalliance.org/specs/fido-u2f-v1.0-nfc-bt-amendment-20150514/fido-u2f-javascript-api.html#h2_background
2016-07-14 08:19:09 +05:30
Timothy Andrew
86b07caa59 Implement authentication (login) using a U2F device.
- Move the `authenticate_with_two_factor` method from
  `ApplicationController` to the `AuthenticatesWithTwoFactor` module,
  where it should be.
2016-06-06 12:50:31 +05:30
Timothy Andrew
128549f10b 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
2016-06-06 12:50:31 +05:30