Sha256: ed101a3928afc9c16306e60ad108d481ade2c6a7392f02d85a70681d5682d1d7

Contents?: true

Size: 215 Bytes

Versions: 76

Compression:

Stored size: 215 Bytes

Contents

module Ddr::Auth
  class AuthContextFactory

    def self.call(user = nil, env = nil)
      if env
        WebAuthContext.new(user, env)
      else
        DetachedAuthContext.new(user)
      end
    end

  end
end

Version data entries

76 entries across 76 versions & 2 rubygems

Version Path
ddr-core-1.17.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.16.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.15.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.14.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.13.2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.13.1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.13.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.12.2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.12.1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.12.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.11.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.10.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.9.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.8.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.7.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.6 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.5 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.4 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.3 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.2 lib/ddr/auth/auth_context_factory.rb