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.6.1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.6.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.5.5 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.5.4 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.5.2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.5.3 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.5.1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.4.4 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.4.3 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.4.2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.4.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.3.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.2.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.2.0.rc3 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.2.0.rc2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.2.0.rc1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.1.2 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.1.1 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.1.0 lib/ddr/auth/auth_context_factory.rb
ddr-core-1.0.0 lib/ddr/auth/auth_context_factory.rb