All Projects → HCLarsen → devise-uncommon_password

HCLarsen / devise-uncommon_password

Licence: MIT license
Devise extension to prevent users from using a common password.

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to devise-uncommon password

token-master
Minimal and Simple user management for Ruby and Rails applications.
Stars: ✭ 18 (-25%)
Mutual labels:  devise
Furatto Rails Start Kit
A rails app with Furatto, Devise, and Facebook Authentication perfect for hackathons!
Stars: ✭ 46 (+91.67%)
Mutual labels:  devise
Doorkeeper Provider App
An example OAuth 2 provider application using the Doorkeeper gem, Rails and Devise
Stars: ✭ 146 (+508.33%)
Mutual labels:  devise
Devise token auth
Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Stars: ✭ 3,263 (+13495.83%)
Mutual labels:  devise
Devise
Flexible authentication solution for Rails with Warden.
Stars: ✭ 22,088 (+91933.33%)
Mutual labels:  devise
Graphql devise
GraphQL interface on top devise_token_auth
Stars: ✭ 100 (+316.67%)
Mutual labels:  devise
devise-multi email
✉️ Let devise support multiple emails (authenticatable, confirmable and validatable).
Stars: ✭ 72 (+200%)
Mutual labels:  devise
Rails Devise Graphql
A Rails 6 boilerplate to create your next Saas product. Preloaded with graphQL, devise, JWT, CanCanCan, RailsAdmin, Rubocop, Rspec, i18n and more.
Stars: ✭ 199 (+729.17%)
Mutual labels:  devise
Devise Jwt
JWT token authentication with devise and rails
Stars: ✭ 881 (+3570.83%)
Mutual labels:  devise
Base App
An app to help jumpstart a new Rails 4 app. Features Ruby 2.0, PostgreSQL, jQuery, RSpec, Cucumber, user and admin system built with Devise, Facebook login.
Stars: ✭ 127 (+429.17%)
Mutual labels:  devise
Milia
Easy multi-tenanting for Rails5 (or Rails4) + Devise
Stars: ✭ 326 (+1258.33%)
Mutual labels:  devise
Devise masquerade
Extension for devise, enable login as functionality. Add link to the masquerade_path(resource) and use it.
Stars: ✭ 380 (+1483.33%)
Mutual labels:  devise
Simple token authentication
Simple (but safe) token authentication for Rails apps or API with Devise.
Stars: ✭ 1,474 (+6041.67%)
Mutual labels:  devise
Devise Security
A security extension for devise, meeting industrial standard security demands for web applications.
Stars: ✭ 302 (+1158.33%)
Mutual labels:  devise
Passport
Provides authentication for phoenix application
Stars: ✭ 159 (+562.5%)
Mutual labels:  devise
limestone-accounts
Boilerplate Rails 5.2 multitenant SaaS application with webpack and Docker integration. Billing is scoped to accounts.
Stars: ✭ 97 (+304.17%)
Mutual labels:  devise
Instuigram
🎓 Learning Ruby on Rails through building the Instagram Application.
Stars: ✭ 88 (+266.67%)
Mutual labels:  devise
Devise invitable
An invitation strategy for devise
Stars: ✭ 2,491 (+10279.17%)
Mutual labels:  devise
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (+695.83%)
Mutual labels:  devise
Spree auth devise
Provides authentication (user accounts, login & signup) for @spree by using Devise
Stars: ✭ 124 (+416.67%)
Mutual labels:  devise

Devise Uncommon Password

Build Status Code Climate

Devise::UncommonPassword is an extension for the devise gem, which prevents users from signing up using one of the 100 most common passwords. The list is derived from the darkweb2017_top10K.txt found at: https://github.com/danielmiessler/SecLists/tree/master/Passwords.

Usage

Add the :uncommon_password module to your model:

class AdminUser < ApplicationRecord
  devise :database_authenticatable,
         :recoverable, :rememberable, :trackable, :validatable, :uncommon_password
end

By default, the password is checked against the 100 most common passwords that fit within the minimum and maximum lengths specified in the /config/initializers/devise.rb file. However, if a developer wants to check against a larger list, they may override this default by adding the following line to that same file:

# Number of common passwords to check entered password against.
config.password_matches = 1000

Internationalization and Customization

The default message for users who attempt to use a common password is:

is a very common password. Please choose something harder to guess.

This can be changed by modifying the devise.en.yml file, under errors/messages/common_password. Translations can be provided using the devise translation files in the same location.

en:
  errors:
    messages:
      common_password: 'is a very common password. Please choose something harder to guess.'

Installation

Add this line to your application's Gemfile:

gem 'devise-uncommon_password'

And then execute:

$ bundle install

Contributing

You can contribute by doing the following:

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork it
  • Write your changes
  • Test
  • Commit
  • Send a pull request

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].