Sha256: ae12a2b126312c1e53049adfba254f2575e0c490ac58dbeefb03cae0a70de381

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 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

2 entries across 2 versions & 1 rubygems

Version Path
sufia-models-6.2.0 lib/generators/sufia/models/templates/config/arkivo_constraint.rb
sufia-models-6.1.0 lib/generators/sufia/models/templates/config/arkivo_constraint.rb