devise
devise copied to clipboard
Flexible authentication solution for Rails with Warden.
The `define_helpers` method takes an instance of `Devise::Mapping` as an argument, which is a very large object. Within the method a local variable `mapping`, which is set to the name...
During generating and setting `encrypted_password` by default `BCrypt::Password.create` is [used](https://github.com/plataformatec/devise/blob/f39c6fd92774cb66f96f546d8d5e8281542b4e78/lib/devise/encryptor.rb#L11). At the moment in the test environment the cost is set to 1. It is passed to `BCrypt::Password.create` and later...
Closes #5143. ~~Depends on #5092.~~
If/Else conditional statements based on a users session status are relatively common at the controller and view level of applications. These conditional statements are repetitive, accumulate quickly and make our...
This is an attempt to address the Webrat / Nokogiri compatibility issue discussed [here](https://github.com/sparklemotion/nokogiri/issues/2469). It monkeypatches Webrat to explicitly add the old default arguments to the invocation of `to_xpath`. This...
A common scenario is to scope email to a parent model (i.e. `Account`), but the Validatable module does not easily allow this. Judging by the posts on StackOverflow, many people...
## Context When using different authentication strategies, [devise_saml_autheticatable](https://github.com/apokalipto/devise_saml_authenticatable) in my case, it's common to redirect the user to an external host after logout. Rails 7 requires to explicitly pass `allow_other_host:...
The path `GET /resource/unlock?unlock_token=TOKEN` is not currently idempotent, which brings some problems when the page is hit by an antivirus, prefetch, or anything other than the user. For example, Microsoft...
Doubling relative_url_root on wrong auth and Rails "config.relative_url_root" not taken into account
(I know something similar has been issued before, but not as detailed with samples as here and not fixed, so here's my issue). ## Environment - Ruby 2.3.1p112 (2016-04-26 revision...
## Environment - Ruby **[3.1.2]** - Rails **[7.0.2]** - Devise **[4.8.1]** - Database **postgresql** ## Premise Hello, i'm facing a problem linked to registrations: In my app i need to...