gitlab-org--gitlab-foss/lib/api
Timothy Andrew 791cc9138b Add a `U2fRegistrations` table/model.
- To hold registrations from U2F devices, and to authenticate them.
- Previously, `User#two_factor_enabled` was aliased to the
  `otp_required_for_login` column on `users`.
- This commit changes things a bit:
    - `User#two_factor_enabled` is not a method anymore
    - `User#two_factor_enabled?` checks both the
      `otp_required_for_login` column, as well as `U2fRegistration`s
    - Change all instances of `User#two_factor_enabled` to
      `User#two_factor_enabled?`
- Add the `u2f` gem, and implement registration/authentication at the
  model level.
2016-06-06 12:50:31 +05:30
..
api.rb Backend for a gitignores dropdown 2016-05-20 15:58:36 -05:00
api_guard.rb Fix a few places where autoloading would fail 2016-05-10 11:51:19 +02:00
branches.rb Changed the argument of not_found for 'unprotect' 2016-04-06 15:07:31 +05:30
builds.rb Fix API implementation 2016-02-19 18:30:43 +01:00
commit_statuses.rb Fix a few places where autoloading would fail 2016-05-10 11:51:19 +02:00
commits.rb Extract LegacyDiffNote out of Note 2016-05-13 17:31:43 -05:00
deploy_keys.rb Fix failing tests due to updates on the return messages. 2015-01-07 11:39:20 +01:00
entities.rb Add a `U2fRegistrations` table/model. 2016-06-06 12:50:31 +05:30
files.rb WIP lazy blobs 2016-02-01 10:41:52 +01:00
gitignores.rb Dropdown implementation 2016-05-20 15:58:36 -05:00
group_members.rb Track who created a group or project member. 2015-04-14 12:06:42 +02:00
groups.rb Fix groups API to list only user's accessible projects 2016-05-24 18:14:12 -07:00
helpers.rb Enable Style/DefWithParentheses cop and fix single offense 2016-05-23 13:06:36 -04:00
internal.rb Fix setting of "action" for Grape transactions 2016-04-20 22:42:52 +02:00
issues.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
keys.rb Add API method for get user by ID of an SSH key 2015-09-03 15:47:22 +03:00
labels.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
licenses.rb Enable Style/IndentAssignment Rubocop style cop 2016-05-30 10:45:10 +02:00
merge_requests.rb fixup! Add `sha` parameter to MR accept API 2016-06-02 17:00:16 +01:00
milestones.rb Filter confidential issues from milestones API if user does not have access 2016-04-25 12:20:29 +02:00
namespaces.rb Make namespace API available to all users 2015-05-28 11:39:12 -07:00
notes.rb Move note helper method to notes entity file 2016-05-17 21:41:53 -05:00
project_hooks.rb Prevent users from deleting Webhooks via API they do not own 2016-04-24 23:53:59 -07:00
project_members.rb Allow a project member to leave the projected through the API 2016-04-12 14:30:42 +02:00
project_snippets.rb Prevent private snippets in public/internal projects from being leaked via API 2016-04-25 12:02:06 -07:00
projects.rb Merge remote-tracking branch 'origin/master' into docker-registry 2016-05-13 17:14:46 -05:00
repositories.rb Enable Lint/AmbiguousOperator rubocop cop 2016-06-03 10:59:43 +02:00
runners.rb Extend runner options that are configurable via API 2016-05-19 22:01:53 +02:00
services.rb Hide passwords to non-admin users in the services API 2015-10-12 15:24:00 +02:00
session.rb Add LDAP support to /api/session 2013-07-16 11:28:19 +03:00
settings.rb Add tests and improve logic 2015-07-06 16:47:19 +02:00
subscriptions.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
system_hooks.rb Added X-GitLab-Event header for web hooks 2015-05-08 16:49:03 +03:00
tags.rb API: Present an array of Gitlab::Git::Tag instead of array of rugged tags 2016-04-17 11:03:10 +02:00
triggers.rb Make the CI permission model simpler 2016-02-02 09:18:08 +01:00
users.rb Enable Style/RedundantParentheses rubocop cop 2016-05-30 15:07:18 +02:00
variables.rb Make the CI permission model simpler 2016-02-02 09:18:08 +01:00