Module: HanamiId::Warden::AppHelper

Defined in:
lib/hanami_id/warden/app_helper.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/hanami_id/warden/app_helper.rb', line 6

def self.included(base)
  base.configure do
    middleware.use ::Warden::Manager do |manager|
      manager.default_strategies :password
      manager.failure_app = HanamiId.failure_app
    end
  end
end