lib/grape/middleware/auth/strategies.rb in grape-0.13.0 vs lib/grape/middleware/auth/strategies.rb in grape-0.14.0
- old
+ new
@@ -3,10 +3,10 @@
module Auth
module Strategies
module_function
def add(label, strategy, option_fetcher = ->(_) { [] })
- auth_strategies[label] = StrategyInfo.new(strategy, option_fetcher)
+ auth_strategies[label] = StrategyInfo.new(strategy, option_fetcher)
end
def auth_strategies
@auth_strategies ||= {
http_basic: StrategyInfo.new(Rack::Auth::Basic, ->(settings) { [settings[:realm]] }),