2016-11-15 10:56:29 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-20 16:53:20 -05:00
|
|
|
source 'https://rubygems.org'
|
2020-03-20 22:10:24 -04:00
|
|
|
ruby '>= 2.5.0', '< 3.0.0'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2019-10-28 07:48:08 -04:00
|
|
|
gem 'pkg-config', '~> 1.4'
|
2017-04-14 05:15:03 -04:00
|
|
|
|
2020-09-22 09:23:36 -04:00
|
|
|
gem 'puma', '~> 5.0'
|
2020-09-14 09:08:13 -04:00
|
|
|
gem 'rails', '~> 5.2.4.4'
|
2020-01-04 16:48:34 -05:00
|
|
|
gem 'sprockets', '~> 3.7.2'
|
2020-09-16 14:40:12 -04:00
|
|
|
gem 'thor', '~> 1.0'
|
2020-06-17 00:30:57 -04:00
|
|
|
gem 'rack', '~> 2.2.3'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2020-07-27 18:01:59 -04:00
|
|
|
gem 'thwait', '~> 0.2.0'
|
2020-01-09 23:34:25 -05:00
|
|
|
gem 'e2mmap', '~> 0.1.0'
|
|
|
|
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'hamlit-rails', '~> 0.2'
|
2019-12-30 10:21:51 -05:00
|
|
|
gem 'pg', '~> 1.2'
|
2018-08-18 15:06:12 -04:00
|
|
|
gem 'makara', '~> 0.4'
|
2020-08-06 11:34:12 -04:00
|
|
|
gem 'pghero', '~> 2.7'
|
2019-02-25 09:55:53 -05:00
|
|
|
gem 'dotenv-rails', '~> 2.7'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2020-09-21 08:25:53 -04:00
|
|
|
gem 'aws-sdk-s3', '~> 1.81', require: false
|
2018-10-22 10:58:36 -04:00
|
|
|
gem 'fog-core', '<= 2.1.0'
|
|
|
|
gem 'fog-openstack', '~> 0.3', require: false
|
2018-03-24 07:52:45 -04:00
|
|
|
gem 'paperclip', '~> 6.0'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'paperclip-av-transcoder', '~> 0.6'
|
2018-02-16 01:22:20 -05:00
|
|
|
gem 'streamio-ffmpeg', '~> 3.0'
|
2019-04-26 21:24:09 -04:00
|
|
|
gem 'blurhash', '~> 0.1'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2017-07-06 22:02:06 -04:00
|
|
|
gem 'active_model_serializers', '~> 0.10'
|
2019-09-04 23:31:47 -04:00
|
|
|
gem 'addressable', '~> 2.7'
|
2019-02-12 20:55:06 -05:00
|
|
|
gem 'bootsnap', '~> 1.4', require: false
|
2017-06-25 10:54:30 -04:00
|
|
|
gem 'browser'
|
2019-11-26 21:53:50 -05:00
|
|
|
gem 'charlock_holmes', '~> 0.7.7'
|
2017-09-08 06:32:22 -04:00
|
|
|
gem 'iso-639'
|
2019-09-24 14:28:25 -04:00
|
|
|
gem 'chewy', '~> 5.1'
|
2020-03-08 19:12:52 -04:00
|
|
|
gem 'cld3', '~> 3.3.0'
|
2019-08-26 10:04:52 -04:00
|
|
|
gem 'devise', '~> 4.7'
|
2019-08-12 07:11:55 -04:00
|
|
|
gem 'devise-two-factor', '~> 3.1'
|
2018-02-02 04:18:55 -05:00
|
|
|
|
2018-03-19 15:08:56 -04:00
|
|
|
group :pam_authentication, optional: true do
|
2018-09-14 11:42:45 -04:00
|
|
|
gem 'devise_pam_authenticatable2', '~> 9.2'
|
2018-03-19 15:08:56 -04:00
|
|
|
end
|
2018-04-07 15:36:58 -04:00
|
|
|
|
2019-11-27 07:33:20 -05:00
|
|
|
gem 'net-ldap', '~> 0.16'
|
2018-03-06 20:25:17 -05:00
|
|
|
gem 'omniauth-cas', '~> 1.1'
|
|
|
|
gem 'omniauth-saml', '~> 1.10'
|
2018-12-17 04:15:14 -05:00
|
|
|
gem 'omniauth', '~> 1.9'
|
2018-02-02 04:18:55 -05:00
|
|
|
|
2020-07-05 12:28:25 -04:00
|
|
|
gem 'color_diff', '~> 0.1'
|
2020-03-25 17:48:52 -04:00
|
|
|
gem 'discard', '~> 1.2'
|
2020-05-12 09:25:33 -04:00
|
|
|
gem 'doorkeeper', '~> 5.4'
|
2020-06-02 13:24:53 -04:00
|
|
|
gem 'ed25519', '~> 1.2'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'fast_blank', '~> 1.0'
|
2018-02-20 21:40:12 -05:00
|
|
|
gem 'fastimage'
|
2018-01-23 08:30:42 -05:00
|
|
|
gem 'goldfinger', '~> 2.1'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'hiredis', '~> 0.6'
|
2020-08-25 07:57:44 -04:00
|
|
|
gem 'redis-namespace', '~> 1.8'
|
2019-09-24 14:28:25 -04:00
|
|
|
gem 'health_check', git: 'https://github.com/ianheggie/health_check', ref: '0b799ead604f900ed50685e9b2d469cd2befba5b'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'htmlentities', '~> 4.3'
|
2020-05-08 12:42:12 -04:00
|
|
|
gem 'http', '~> 4.4'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'http_accept_language', '~> 2.1'
|
2020-06-15 10:22:01 -04:00
|
|
|
gem 'httplog', '~> 1.4.3'
|
2017-07-15 11:24:35 -04:00
|
|
|
gem 'idn-ruby', require: 'idn'
|
2020-05-04 07:53:42 -04:00
|
|
|
gem 'kaminari', '~> 1.2'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'link_header', '~> 0.0'
|
2020-01-04 16:48:18 -05:00
|
|
|
gem 'mime-types', '~> 3.3.1', require: 'mime/types/columnar'
|
2019-07-13 10:45:50 -04:00
|
|
|
gem 'nilsimsa', git: 'https://github.com/witgo/nilsimsa', ref: 'fd184883048b922b176939f851338d0a4971a532'
|
2019-01-08 08:10:30 -05:00
|
|
|
gem 'nokogiri', '~> 1.10'
|
2017-09-28 21:16:44 -04:00
|
|
|
gem 'nsa', '~> 0.2'
|
2019-12-23 16:35:04 -05:00
|
|
|
gem 'oj', '~> 3.10'
|
2020-03-31 06:42:17 -04:00
|
|
|
gem 'ox', '~> 2.13'
|
2019-07-26 22:42:08 -04:00
|
|
|
gem 'parslet'
|
2019-11-27 06:49:19 -05:00
|
|
|
gem 'parallel', '~> 1.19'
|
2020-07-28 11:59:29 -04:00
|
|
|
gem 'posix-spawn'
|
2019-08-19 09:36:45 -04:00
|
|
|
gem 'pundit', '~> 2.1'
|
2018-01-15 21:29:11 -05:00
|
|
|
gem 'premailer-rails'
|
2020-05-08 11:44:24 -04:00
|
|
|
gem 'rack-attack', '~> 6.3'
|
2019-11-26 21:59:57 -05:00
|
|
|
gem 'rack-cors', '~> 1.1', require: 'rack/cors'
|
2018-04-12 08:45:17 -04:00
|
|
|
gem 'rails-i18n', '~> 5.1'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'rails-settings-cached', '~> 0.6'
|
2020-06-15 10:11:20 -04:00
|
|
|
gem 'redis', '~> 4.2', require: ['redis', 'redis/connection/hiredis']
|
2017-07-19 08:44:04 -04:00
|
|
|
gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
|
2020-01-11 05:51:04 -05:00
|
|
|
gem 'rqrcode', '~> 1.1'
|
2019-09-10 07:48:48 -04:00
|
|
|
gem 'ruby-progressbar', '~> 1.10'
|
2020-06-08 02:02:10 -04:00
|
|
|
gem 'sanitize', '~> 5.2'
|
2020-07-28 11:54:00 -04:00
|
|
|
gem 'sidekiq', '~> 6.1'
|
2018-09-26 13:11:21 -04:00
|
|
|
gem 'sidekiq-scheduler', '~> 3.0'
|
2019-01-14 04:18:55 -05:00
|
|
|
gem 'sidekiq-unique-jobs', '~> 6.0'
|
2018-11-22 06:47:36 -05:00
|
|
|
gem 'sidekiq-bulk', '~>0.2.0'
|
2019-08-19 12:49:17 -04:00
|
|
|
gem 'simple-navigation', '~> 4.1'
|
2019-10-30 06:00:41 -04:00
|
|
|
gem 'simple_form', '~> 5.0'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
|
2020-07-27 14:00:35 -04:00
|
|
|
gem 'stoplight', '~> 2.2.1'
|
2020-07-28 13:18:59 -04:00
|
|
|
gem 'strong_migrations', '~> 0.7'
|
2020-07-28 11:51:15 -04:00
|
|
|
gem 'tty-prompt', '~> 0.22', require: false
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'twitter-text', '~> 1.14'
|
2020-05-08 12:50:36 -04:00
|
|
|
gem 'tzinfo-data', '~> 1.2020'
|
2020-08-20 16:23:52 -04:00
|
|
|
gem 'webpacker', '~> 5.2'
|
2017-07-13 16:15:32 -04:00
|
|
|
gem 'webpush'
|
Add WebAuthn as an alternative 2FA method (#14466)
* feat: add possibility of adding WebAuthn security keys to use as 2FA
This adds a basic UI for enabling WebAuthn 2FA. We did a little refactor
to the Settings page for editing the 2FA methods – now it will list the
methods that are available to the user (TOTP and WebAuthn) and from
there they'll be able to add or remove any of them.
Also, it's worth mentioning that for enabling WebAuthn it's required to
have TOTP enabled, so the first time that you go to the 2FA Settings
page, you'll be asked to set it up.
This work was inspired by the one donde by Github in their platform, and
despite it could be approached in different ways, we decided to go with
this one given that we feel that this gives a great UX.
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: add request for WebAuthn as second factor at login if enabled
This commits adds the feature for using WebAuthn as a second factor for
login when enabled.
If users have WebAuthn enabled, now a page requesting for the use of a
WebAuthn credential for log in will appear, although a link redirecting
to the old page for logging in using a two-factor code will also be
present.
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: add possibility of deleting WebAuthn Credentials
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: disable WebAuthn when an Admin disables 2FA for a user
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* feat: remove ability to disable TOTP leaving only WebAuthn as 2FA
Following examples form other platforms like Github, we decided to make
Webauthn 2FA secondary to 2FA with TOTP, so that we removed the
possibility of removing TOTP authentication only, leaving users with
just WEbAuthn as 2FA. Instead, users will have to click on 'Disable 2FA'
in order to remove second factor auth.
The reason for WebAuthn being secondary to TOPT is that in that way,
users will still be able to log in using their code from their phone's
application if they don't have their security keys with them – or maybe
even lost them.
* We had to change a little the flow for setting up TOTP, given that now
it's possible to setting up again if you already had TOTP, in order to
let users modify their authenticator app – given that now it's not
possible for them to disable TOTP and set it up again with another
authenticator app.
So, basically, now instead of storing the new `otp_secret` in the
user, we store it in the session until the process of set up is
finished.
This was because, as it was before, when users clicked on 'Edit' in
the new two-factor methods lists page, but then went back without
finishing the flow, their `otp_secret` had been changed therefore
invalidating their previous authenticator app, making them unable to
log in again using TOTP.
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
* refactor: fix eslint errors
The PR build was failing given that linting returning some errors.
This commit attempts to fix them.
* refactor: normalize i18n translations
The build was failing given that i18n translations files were not
normalized.
This commits fixes that.
* refactor: avoid having the webauthn gem locked to a specific version
* refactor: use symbols for routes without '/'
* refactor: avoid sending webauthn disabled email when 2FA is disabled
When an admins disable 2FA for users, we were sending two mails
to them, one notifying that 2FA was disabled and the other to notify
that WebAuthn was disabled.
As the second one is redundant since the first email includes it, we can
remove it and send just one email to users.
* refactor: avoid creating new env variable for webauthn_origin config
* refactor: improve flash error messages for webauthn pages
Co-authored-by: Facundo Padula <facundo.padula@cedarcode.com>
2020-08-24 10:46:27 -04:00
|
|
|
gem 'webauthn', '~> 3.0.0.alpha1'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2020-01-13 13:01:43 -05:00
|
|
|
gem 'json-ld'
|
2020-02-10 07:26:53 -05:00
|
|
|
gem 'json-ld-preloaded', '~> 3.1'
|
2020-01-10 17:02:16 -05:00
|
|
|
gem 'rdf-normalize', '~> 0.4'
|
2017-08-26 07:47:38 -04:00
|
|
|
|
2016-02-20 16:53:20 -05:00
|
|
|
group :development, :test do
|
2019-12-02 08:55:43 -05:00
|
|
|
gem 'fabrication', '~> 2.21'
|
2019-11-11 08:05:16 -05:00
|
|
|
gem 'fuubar', '~> 2.5'
|
2018-10-29 20:06:47 -04:00
|
|
|
gem 'i18n-tasks', '~> 0.9', require: false
|
2020-05-08 12:52:57 -04:00
|
|
|
gem 'pry-byebug', '~> 3.9'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'pry-rails', '~> 0.3'
|
2020-04-02 12:54:41 -04:00
|
|
|
gem 'rspec-rails', '~> 4.0'
|
2016-02-24 18:17:01 -05:00
|
|
|
end
|
|
|
|
|
2018-02-24 13:16:11 -05:00
|
|
|
group :production, :test do
|
2018-09-20 18:42:59 -04:00
|
|
|
gem 'private_address_check', '~> 0.5'
|
2018-02-24 13:16:11 -05:00
|
|
|
end
|
|
|
|
|
2016-02-24 18:17:01 -05:00
|
|
|
group :test do
|
2020-06-25 04:48:40 -04:00
|
|
|
gem 'capybara', '~> 3.33'
|
2017-05-31 11:09:17 -04:00
|
|
|
gem 'climate_control', '~> 0.2'
|
2020-09-21 03:11:55 -04:00
|
|
|
gem 'faker', '~> 2.14'
|
2020-01-04 16:48:34 -05:00
|
|
|
gem 'microformats', '~> 4.2'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'rails-controller-testing', '~> 1.0'
|
2020-06-25 04:47:34 -04:00
|
|
|
gem 'rspec-sidekiq', '~> 3.1'
|
2020-08-20 16:31:28 -04:00
|
|
|
gem 'simplecov', '~> 0.19', require: false
|
2020-09-15 23:45:52 -04:00
|
|
|
gem 'webmock', '~> 3.9'
|
2020-09-22 03:53:24 -04:00
|
|
|
gem 'parallel_tests', '~> 3.3'
|
2020-05-01 14:19:01 -04:00
|
|
|
gem 'rspec_junit_formatter', '~> 0.4'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
group :development do
|
2019-10-28 21:55:07 -04:00
|
|
|
gem 'active_record_query_trace', '~> 1.7'
|
2020-04-09 14:32:39 -04:00
|
|
|
gem 'annotate', '~> 3.1'
|
2020-09-21 03:12:11 -04:00
|
|
|
gem 'better_errors', '~> 2.8'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'binding_of_caller', '~> 0.7'
|
2020-01-06 09:02:46 -05:00
|
|
|
gem 'bullet', '~> 6.1'
|
2018-12-11 00:34:02 -05:00
|
|
|
gem 'letter_opener', '~> 1.7'
|
2020-02-10 06:28:22 -05:00
|
|
|
gem 'letter_opener_web', '~> 1.4'
|
2018-02-21 17:21:32 -05:00
|
|
|
gem 'memory_profiler'
|
2020-09-29 01:59:31 -04:00
|
|
|
gem 'rubocop', '~> 0.92', require: false
|
2020-09-07 16:08:17 -04:00
|
|
|
gem 'rubocop-rails', '~> 2.8', require: false
|
2020-08-16 13:17:00 -04:00
|
|
|
gem 'brakeman', '~> 4.9', require: false
|
2020-06-15 11:57:20 -04:00
|
|
|
gem 'bundler-audit', '~> 0.7', require: false
|
2017-01-30 14:03:17 -05:00
|
|
|
|
2020-05-08 15:29:03 -04:00
|
|
|
gem 'capistrano', '~> 3.14'
|
2020-07-27 23:24:53 -04:00
|
|
|
gem 'capistrano-rails', '~> 1.6'
|
2020-07-27 14:24:09 -04:00
|
|
|
gem 'capistrano-rbenv', '~> 2.2'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'capistrano-yarn', '~> 2.0'
|
2018-05-02 12:58:48 -04:00
|
|
|
|
|
|
|
gem 'stackprof'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
group :production do
|
2019-04-20 22:49:05 -04:00
|
|
|
gem 'lograge', '~> 0.11'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'redis-rails', '~> 5.0'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
2019-01-15 03:24:35 -05:00
|
|
|
|
|
|
|
gem 'concurrent-ruby', require: false
|
2019-07-01 18:34:38 -04:00
|
|
|
gem 'connection_pool', require: false
|