You need to instruct the warden manager when to use the strategy. Update the strategies
key that you're passing to the use
method to reflect which strategies you want to enable and the order in which they should be run. You could do this:
use ::Warden::Manager do |manager|
manager.scope_defaults :default,
strategies: [:udid, :password],
action: 'sessions/unauthenticated'
end
There's a bunch of examples on the Warden wiki on github