Sha256: b64f15cd870843d46a0180412601780f587dc8e6a8e8c4d2021584857a7d5064

Contents?: true

Size: 309 Bytes

Versions: 27

Compression:

Stored size: 309 Bytes

Contents

module Grape
  module Middleware
    module Auth
      StrategyInfo = Struct.new(:auth_class, :settings_fetcher) do
        def create(app, options, &block)
          strategy_args = settings_fetcher.call(options)

          auth_class.new(app, *strategy_args, &block)
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/lib/grape/middleware/auth/strategy_info.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/lib/grape/middleware/auth/strategy_info.rb
grape-1.2.5 lib/grape/middleware/auth/strategy_info.rb
grape-1.2.4 lib/grape/middleware/auth/strategy_info.rb
grape-1.2.3 lib/grape/middleware/auth/strategy_info.rb
grape-1.2.2 lib/grape/middleware/auth/strategy_info.rb
grape-1.2.1 lib/grape/middleware/auth/strategy_info.rb
grape-1.2.0 lib/grape/middleware/auth/strategy_info.rb
grape-1.1.0 lib/grape/middleware/auth/strategy_info.rb
grape-1.0.3 lib/grape/middleware/auth/strategy_info.rb
grape-1.0.2 lib/grape/middleware/auth/strategy_info.rb
grape-1.0.1 lib/grape/middleware/auth/strategy_info.rb
grape-1.0.0 lib/grape/middleware/auth/strategy_info.rb
grape-0.19.2 lib/grape/middleware/auth/strategy_info.rb
grape-0.19.1 lib/grape/middleware/auth/strategy_info.rb
grape-0.19.0 lib/grape/middleware/auth/strategy_info.rb
grape-0.18.0 lib/grape/middleware/auth/strategy_info.rb
grape-0.17.0 lib/grape/middleware/auth/strategy_info.rb
grape-0.16.2 lib/grape/middleware/auth/strategy_info.rb
grape-0.16.1 lib/grape/middleware/auth/strategy_info.rb