Skip to content

1.11.0

Compare
Choose a tag to compare
@janko janko released this 21 Aug 17:08
· 87 commits to main since this release
9f0c0a1
  • The Rodauth::Rails.authenticate routing constraint has been added, which calls rodauth.require_account instead of rodauth.require_authentication, and this way handles if the account has been deleted or closed from the console.

    Rails.application.routes.draw do
      constraints Rodauth::Rails.authenticate do
        mount Sidekiq::Web => "/sidekiq"
      end
    end

    The previous Rodauth::Rails.authenticated routing constraint is now deprecated.

  • The Rodauth::Rails.lib method now accept plugin options as well, just like Rodauth.lib.

    RodauthMain = Rodauth::Rails.lib(render: false) do
      # ...
    end
  • Loading of Roda's render plugin and the Tilt gem will now be skipped when render: false plugin option is passed in.

    class RodauthApp < Rodauth::Rails::App
      configure RodauthMain, render: false # skips loading render plugin and Tilt
    end
  • There have been several improvements to the rodauth:routes Rake task:

    • it now has a description and shows up in rails -T
    • two factor manage & auth JSON POST routes are now listed
    • HTTP verbs are separated with | symbol, just like in rails routes
    • the JS routes for WebAuthn features are excluded, since they stop being relevant with custom JS