-
- Downloads
Merge branch '2fa' into 'master'
Two-factor authentication Implement's Two-factor authentication using tokens. - [X] Authentication logic - [X] Enable/disable 2FA feature - [x] Make 2-step login process if 2FA enabled - [x] Backup codes - [x] Backup code removed after being used - [x] Check backup codes for mysql db (mention mysql limitation if applied) - [x] Add tests - [x] Test if https://github.com/tinfoil/devise-two-factor#disabling-automatic-login-after-password-resets applies, and address if so - [x] Wait for fixed version of `attr_encrypted` or fork and use forked version - https://github.com/attr-encrypted/attr_encrypted/issues/155 Fixes http://feedback.gitlab.com/forums/176466-general/suggestions/4516817-implement-two-factor-authentication-2fa See merge request !474
No related branches found
No related tags found
Showing
- CHANGELOG 1 addition, 1 deletionCHANGELOG
- Gemfile 5 additions, 0 deletionsGemfile
- Gemfile.lock 17 additions, 0 deletionsGemfile.lock
- app/controllers/application_controller.rb 1 addition, 1 deletionapp/controllers/application_controller.rb
- app/controllers/passwords_controller.rb 21 additions, 0 deletionsapp/controllers/passwords_controller.rb
- app/controllers/profiles/two_factor_auths_controller.rb 49 additions, 0 deletionsapp/controllers/profiles/two_factor_auths_controller.rb
- app/controllers/sessions_controller.rb 53 additions, 2 deletionsapp/controllers/sessions_controller.rb
- app/models/user.rb 13 additions, 2 deletionsapp/models/user.rb
- app/views/devise/sessions/two_factor.html.haml 10 additions, 0 deletionsapp/views/devise/sessions/two_factor.html.haml
- app/views/layouts/nav/_profile.html.haml 1 addition, 1 deletionapp/views/layouts/nav/_profile.html.haml
- app/views/profiles/accounts/show.html.haml 29 additions, 2 deletionsapp/views/profiles/accounts/show.html.haml
- app/views/profiles/two_factor_auths/_codes.html.haml 11 additions, 0 deletionsapp/views/profiles/two_factor_auths/_codes.html.haml
- app/views/profiles/two_factor_auths/codes.html.haml 5 additions, 0 deletionsapp/views/profiles/two_factor_auths/codes.html.haml
- app/views/profiles/two_factor_auths/create.html.haml 6 additions, 0 deletionsapp/views/profiles/two_factor_auths/create.html.haml
- app/views/profiles/two_factor_auths/new.html.haml 23 additions, 0 deletionsapp/views/profiles/two_factor_auths/new.html.haml
- config/application.rb 1 addition, 1 deletionconfig/application.rb
- config/initializers/devise.rb 5 additions, 0 deletionsconfig/initializers/devise.rb
- config/routes.rb 5 additions, 0 deletionsconfig/routes.rb
- db/migrate/20150327223628_add_devise_two_factor_to_users.rb 8 additions, 0 deletionsdb/migrate/20150327223628_add_devise_two_factor_to_users.rb
- db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb 5 additions, 0 deletions...150331183602_add_devise_two_factor_backupable_to_users.rb
Loading
| Loading
| @@ -34,6 +34,11 @@ gem 'omniauth-bitbucket' |
gem 'doorkeeper', '2.1.3' | ||
gem "rack-oauth2", "~> 1.0.5" | ||
# Two-factor authentication | ||
gem 'devise-two-factor' | ||
gem 'rqrcode-rails3' | ||
gem 'attr_encrypted', '1.3.4' | ||
# Browser detection | ||
gem "browser" | ||
Loading
| Loading
|
Please register or sign in to comment