Sha256: 1b45a764c5f666975109093c547a7baf58dec3b725db3d5e20a2e9dd5afe2c71

Contents?: true

Size: 329 Bytes

Versions: 22

Compression:

Stored size: 329 Bytes

Contents

module Sufia
  class ArkivoConstraint
    def self.matches?(_request)
      # Add your own logic here to authorize trusted connections to
      # the API e.g., if your installation of Arkivo runs on a host
      # with the 10.0.0.3 IP address, you could use:
      # request.remote_ip == '10.0.0.3'
      false
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
sufia-7.4.1 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.4.0 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.3.1 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.3.0 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.3.0.rc3 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.3.0.rc2 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.3.0.rc1 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.2.0 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-models-6.7.0 lib/generators/sufia/models/templates/config/arkivo_constraint.rb
sufia-7.1.0 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.rc2 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.rc1 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.beta4 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.beta3 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.beta2 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-7.0.0.beta1 lib/generators/sufia/templates/config/arkivo_constraint.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/config/arkivo_constraint.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/config/arkivo_constraint.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/config/arkivo_constraint.rb